/* Project Management System - Modern Arabic UI */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #662c91;
    --primary-dark: #4a1f6b;
    --primary-light: #8e4bb8;
    --secondary-color: #f8f9fa;
    --accent-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--light-color);
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--light-color);
}

.logo img {
    height: 40px;
    margin-left: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Sidebar */
.sidebar {
    background: var(--light-color);
    width: 280px;
    height: calc(100vh - 80px);
    position: fixed;
    right: 0;
    top: 80px;
    box-shadow: var(--shadow);
    overflow-y: auto;
    z-index: 999;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--secondary-color);
    border-right-color: var(--primary-color);
    color: var(--primary-color);
}

.sidebar-menu i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-right: 280px;
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

/* Cards */
.card {
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--secondary-color);
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--light-color);
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.stats-card.success {
    background: linear-gradient(135deg, var(--accent-color), #20c997);
}

.stats-card.warning {
    background: linear-gradient(135deg, var(--warning-color), #ffb347);
}

.stats-card.danger {
    background: linear-gradient(135deg, var(--danger-color), #e74c3c);
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 44, 145, 0.25);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.25rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--accent-color);
    color: var(--light-color);
}

.btn-success:hover {
    background: #218838;
}

.btn-warning {
    background: var(--warning-color);
    color: var(--dark-color);
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-danger {
    background: var(--danger-color);
    color: var(--light-color);
}

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

.btn-secondary {
    background: #6c757d;
    color: var(--light-color);
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table th,
.table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--secondary-color);
    font-weight: 600;
    color: var(--primary-color);
}

.table tbody tr:hover {
    background: rgba(102, 44, 145, 0.05);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-align: center;
}

.badge-primary { background: var(--primary-color); color: var(--light-color); }
.badge-success { background: var(--accent-color); color: var(--light-color); }
.badge-warning { background: var(--warning-color); color: var(--dark-color); }
.badge-danger { background: var(--danger-color); color: var(--light-color); }
.badge-secondary { background: #6c757d; color: var(--light-color); }

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: var(--accent-color);
    color: #155724;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: var(--danger-color);
    color: #721c24;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: var(--warning-color);
    color: #856404;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: var(--info-color);
    color: #0c5460;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.login-card {
    background: var(--light-color);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    margin-bottom: 2rem;
}

.login-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

/* Progress Bar */
.progress {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    background: var(--light-color);
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-right: 0;
        padding: 1rem;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .login-card {
        margin: 1rem;
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Project Details Specific Styles */
.work-scope {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.work-scope h3 {
    color: #662c91;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.work-scope p {
    color: #6c757d;
    margin-bottom: 1rem;
}

.tasks-list {
    margin-top: 1rem;
}

.tasks-list h4 {
    color: #495057;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.task-item:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.task-name {
    font-weight: 500;
    color: #212529;
}

.task-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.task-item.status-pending .task-status {
    background: #fff3cd;
    color: #856404;
}

.task-item.status-in_progress .task-status {
    background: #cce5ff;
    color: #004085;
}

.task-item.status-completed .task-status {
    background: #d4edda;
    color: #155724;
}

.task-item.status-archived .task-status {
    background: #e2e3e5;
    color: #383d41;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #662c91, #8e4bb8);
    transition: width 0.3s ease;
}

.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.text-muted {
    color: #6c757d !important;
    font-style: italic;
}

/* Work Scope Header */
.work-scope-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.work-scope-header h3 {
    margin: 0;
}

/* Task Item Enhanced */
.task-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.task-info {
    flex: 1;
}

.task-name {
    font-weight: 600;
    color: #212529;
    display: block;
    margin-bottom: 0.25rem;
}

.task-description {
    color: #6c757d;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.task-dates {
    display: flex;
    gap: 1rem;
}

.task-dates small {
    color: #6c757d;
    font-size: 0.75rem;
}

.task-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

/* Card Header with Button */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
}

.card-header h2 {
    margin: 0;
    color: #495057 !important;
}

/* Modal RTL Support */
.modal-content {
    direction: rtl;
}

.modal-header .btn-close {
    margin: 0;
}

/* Form Controls RTL */
.form-label {
    font-weight: 500;
    color: #495057;
}

.form-control, .form-select {
    text-align: right;
}

/* Button Spacing */
.btn + .btn {
    margin-right: 0.5rem;
}

/* Modern Work Scope Cards */
.work-scope-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.work-scope-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.work-scope-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f3f4;
}

.scope-info h4 {
    color: #662c91;
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.scope-description {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Tasks Grid */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

/* Task Cards */
.task-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
    position: relative;
}

.task-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.task-card.status-pending {
    border-left: 4px solid #ffc107;
}

.task-card.status-in_progress {
    border-left: 4px solid #007bff;
}

.task-card.status-completed {
    border-left: 4px solid #28a745;
    background: #f8fff9;
}

.task-card.status-archived {
    border-left: 4px solid #6c757d;
    opacity: 0.7;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.task-title {
    color: #212529;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    margin-left: 0.5rem;
}

.task-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.task-status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.task-status-badge.status-in_progress {
    background: #cce5ff;
    color: #004085;
}

.task-status-badge.status-completed {
    background: #d4edda;
    color: #155724;
}

.task-status-badge.status-archived {
    background: #e2e3e5;
    color: #383d41;
}

.task-description {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.task-dates {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.8rem;
}

.task-dates i {
    margin-left: 0.5rem;
    color: #662c91;
}

.task-action-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Stats Cards Enhancement */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 44, 145, 0.2);
    transition: transform 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
}

.stats-card.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.stats-card.info {
    background: linear-gradient(135deg, #17a2b8, #007bff);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.2);
}

.stats-card.warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Card Header Enhancement */
.card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.card-header h2 {
    color: #495057 !important;
    font-size: 1.25rem;
}

.card-header i {
    color: #662c91;
    margin-left: 0.5rem;
}

/* New Task List Styles */
.tasks-list-simple {
    margin-top: 1rem;
}

.task-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    border-left: 4px solid #dee2e6;
    transition: all 0.2s ease;
}

.task-row:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.task-row.status-pending {
    border-left-color: #ffc107;
}

.task-row.status-in_progress {
    border-left-color: #007bff;
}

.task-content {
    flex: 1;
}

.task-main-info {
    margin-bottom: 0.5rem;
}

.task-name {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 0.25rem 0;
}

.task-desc {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.task-details {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.task-dates {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.task-dates i {
    color: #662c91;
}

.task-status-label {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.task-status-label.status-pending {
    background: #fff3cd;
    color: #856404;
}

.task-status-label.status-in_progress {
    background: #cce5ff;
    color: #004085;
}

.task-actions {
    margin-right: 1rem;
}

.empty-state-simple {
    text-align: center;
    padding: 2rem 1rem;
}

.empty-state-simple p {
    margin-bottom: 1rem;
}

/* Completed Tasks Styles */
.completed-scope {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.completed-scope:last-child {
    border-bottom: none;
}

.scope-title {
    color: #662c91;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.completed-tasks-list {
    margin-top: 1rem;
}

.completed-task-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: #f8fff9;
    border: 1px solid #d4edda;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.completed-task-row .task-info {
    flex: 1;
}

.completed-task-row .task-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #155724;
    margin: 0 0 0.25rem 0;
}

.completed-task-row .task-desc {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0 0 0.25rem 0;
}

.completed-task-row .task-dates {
    font-size: 0.75rem;
    color: #6c757d;
}

.completed-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: #d4edda;
    color: #155724;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.completed-badge i {
    color: #28a745;
}

/* Project and Work Scope Selection Cards */
.project-selection-card,
.work-scope-selection-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef;
}

.project-selection-card:hover,
.work-scope-selection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.project-selection-card .card-title,
.work-scope-selection-card .card-title {
    color: #662c91;
    font-weight: 600;
}

.project-selection-card .card-text,
.work-scope-selection-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
