.objectives_container {
    margin: 20px auto;
    max-width: 900px;
    padding: 0 20px;
}

.objective-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.objective-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.objective-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.objective-title-row h3 {
    margin: 0;
    font-size: 1.3rem;
}

.objective-title-row h3 a {
    color: #1e293b;
    text-decoration: none;
}

.objective-title-row h3 a:hover {
    color: #02b6fd;
}

.objective-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-not_started {
    background: #f1f5f9;
    color: #64748b;
}

.status-in_progress {
    background: #fef3c7;
    color: #d97706;
}

.status-completed {
    background: #dcfce7;
    color: #16a34a;
}

.status-overdue {
    background: #fee2e2;
    color: #dc2626;
}

.objective-description {
    color: #475569;
    margin: 0 0 12px 0;
    font-size: 0.95rem;
}

.objective-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #64748b;
}

.objective-deadline {
    display: flex;
    align-items: center;
    gap: 5px;
}

.objective-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #02b6fd 0%, #0891b2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
    min-width: 45px;
}

.objective-tasks {
    margin-bottom: 15px;
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.task-item:last-child {
    border-bottom: none;
}

.task-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #02b6fd;
}

.task-title {
    font-size: 0.95rem;
    color: #334155;
}

.task-title.completed {
    text-decoration: line-through;
    color: #94a3b8;
}

.task-deadline {
    font-size: 0.8rem;
    color: #94a3b8;
}

.objective-actions {
    display: flex;
    gap: 10px;
}

/* Detail View */
.objective-detail {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.objective-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.objective-detail-header h1 {
    margin: 0;
    color: #1e293b;
    font-size: 1.8rem;
}

.objective-detail-description {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.objective-detail-description h3 {
    margin: 0 0 8px 0;
    color: #475569;
    font-size: 1rem;
}

.objective-detail-description p {
    margin: 0;
    color: #334155;
    line-height: 1.5;
}

.objective-detail-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.meta-value {
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 600;
}

.objective-progress-large {
    margin-bottom: 25px;
}

.objective-progress-large .progress-bar {
    height: 12px;
}

.objective-tasks-section {
    margin-bottom: 25px;
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tasks-header h3 {
    margin: 0;
    color: #1e293b;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-item-large {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.task-item-large:hover {
    background: #f1f5f9;
}

.task-item-large .task-toggle {
    flex: 1;
}

.task-item-large .task-title {
    font-size: 1rem;
}

.task-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.task-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-actions .btn-small,
.task-actions .btn-danger.btn-small {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.task-meta .task-deadline {
    font-size: 0.85rem;
}

.task-position {
    font-size: 0.85rem;
    color: #94a3b8;
    background: white;
    padding: 2px 8px;
    border-radius: 10px;
}

.objective-detail-actions {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    align-items: center;
}

.objective-detail-actions form {
    margin: 0;
}

.btn-small {
    background: #02b6fd;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-small:hover {
    background: #0891b2;
}

.btn-danger {
    background: #dc2626;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
}

.btn-secondary:hover {
    background: #cbd5e1;
}
