/* Container */
.ar-form-wrapper {
    max-width: 800px;
    margin: 40px 0; /* Top/bottom spacing only */
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Headline */
.ar-ambition-form h2 {
    margin-bottom: 25px;
    font-size: 1.8em;
    color: #222;
    text-align: center;
}

/* Form field wrapper */
.ar-field {
    margin-bottom: 25px;
}

/* Label styling */
.ar-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Input elements */
.ar-field input[type="text"],
.ar-field input[type="url"],
.ar-field input[type="date"],
.ar-field textarea,
.ar-field select {
    width: 100%;
    padding: 10px 14px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.ar-field textarea {
    height: 100px;
    resize: vertical;
}

/* Checkbox inline */
.ar-field input[type="checkbox"] {
    margin-right: 6px;
    vertical-align: middle;
}

.ar-field label input[type="checkbox"] {
    display: inline;
    width: auto;
}

/* Submit button */
.ar-actions {
    text-align: center;
}

.ar-actions button {
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    font-size: 1em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ar-actions button:hover {
    background: #005f8d;
}

/* Success message */
.ar-success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    margin: 0 auto 25px;
    max-width: 800px;
    border-left: 4px solid #28a745;
    border-radius: 6px;
}

/* Select styling */
.ar-field select {
    background-color: #fff;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg fill="gray" height="12" viewBox="0 0 24 24" width="12" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Responsive styles */
@media screen and (max-width: 600px) {
    .ar-form-wrapper {
        padding: 20px;
    }

    .ar-actions button {
        width: 100%;
    }


}

body {
    background: white !important;
}

/* Ambition Card Container */
.ar-ambition-compact {
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    font-size: 1em;
}

/* Title & Status */
.ar-ambition-compact .line-1 {
    font-weight: 600;
    color: #2a2a2a;
    font-size: 1.1em;
    margin-bottom: 10px;
}
.ar-ambition-compact .line-1 strong {
    color: #3b5998;
}

/* Description */
.ar-ambition-compact .line-2 {
    font-size: 0.95em;
    color: #333;
    line-height: 1.6;
}

/* Status badge */
.ar-status {
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.75em;
    color: #fff;
    background: gray;
    display: inline-block;
    margin-left: 8px;
}
.ar-status.Pending { background: #ff9900; }
.ar-status.InProgress { background: #32CD32; }
.ar-status.Completed { background: #3b5998; }

/* My Ambition badge */
.ar-owned-badge {
    background-color: #ff9900;
    color: #fff;
    font-weight: 600;
    font-size: 0.75em;
    padding: 3px 6px;
    border-radius: 6px;
    margin-left: 8px;
    display: inline-block;
}

/* Ambition Detail Box */
.ar-main-ambition-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Detail rows */
.ar-detail-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
    font-size: 0.95em;
}
.ar-detail-label {
    font-weight: bold;
    width: 120px;
    flex-shrink: 0;
    color: #333;
}
.ar-main-ambition-box .ar-tag {
    margin-right: 6px;
}

/* Actions wrapper */
.ar-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* Filters block */
.ar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
}
.ar-filters input[type="text"],
.ar-filters select {
    padding: 4px 8px;
    font-size: 0.85em;
    border-radius: 4px;
    border: 1px solid #ccc;
    height: 32px;
    max-width: 180px;
    flex-shrink: 1;
}
.ar-filters button {
    padding: 6px 12px;
    font-size: 0.85em;
    background-color: #3b5998;
    color: #fff;
    border: none;
    border-radius: 4px;
    height: 34px;
    cursor: pointer;
    flex-shrink: 0;
}
.ar-filters button:hover {
    background-color: #ff9900;
}

.ar-ambition-activities {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
}

.activity-list {
    list-style: none;
    padding: 0;
}

.activity-item {
    padding: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.ar-ambition-activities {
    margin-top: 30px;
    padding: 20px;
    background: #f8f8f8;
    border-left: 4px solid #0073aa;
}

.activity-list {
    list-style: none;
    padding: 0;
}

.activity-item {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.activity-comment {
    margin-top: 5px;
    font-style: italic;
    color: #555;
}

.activity-link a {
    color: #0073aa;
    font-size: 0.95em;
}

/* === Harmonized Button Styles === */
button,
input[type="submit"],
.ar-group-button,
.ar-fav-btn,
.ar-edit-button,
.ar-delete-button,
.ar-actions button {
    background-color: #3b5998;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 0.95em;
    border-radius: 6px;
    cursor: pointer;
    height: 40px;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

/* Hover effect */
button:hover,
input[type="submit"]:hover,
.ar-group-button:hover,
.ar-fav-btn:hover,
.ar-edit-button:hover,
.ar-delete-button:hover,
.ar-actions button:hover,
.ar-filters button:hover {
    background-color: #ff9900;
    color: #fff;
}

#sortable-plan-list .activity-entry {
    background: #f4f4f4;
    border: 1px solid #ccc;
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 6px;
    cursor: move;
}

.ar-activity-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1.5fr 2fr;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.ar-activity-title {
    font-weight: 600;
    color: #3b5998;
}

.ar-activity-row input,
.ar-activity-row select,
.ar-activity-row textarea {
    font-size: 0.85em;
    padding: 6px;
    width: 100%;
    box-sizing: border-box;
}

.ar-activity-row textarea {
    resize: vertical;
    height: 50px;
}

.ar-ambition-compact .ar-ambition-info em {
    color: #b00;
    font-style: italic;
}

.ar-ambition-compact strong {
    color: #333;
}

.ar-ambition-deleted {
    background: #fceaea;
    border: 1px solid #e3bebe;
    padding: 10px;
    margin-bottom: 10px;
}

.ar-modal-confirm {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.ar-modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}
.ar-modal-content button {
  margin: 10px;
}
