    :root {
        --primary: #2ECC71;
        --primary-dark: #27AE60;
        --secondary: #34495E;
        --background: #F8F9FA;
        --surface: #FFFFFF;
        --text-main: #2C3E50;
        --text-muted: #7F8C8D;
        --danger: #E74C3C;
        --border: #E0E0E0;
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
        --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
        --radius: 12px;
    }

    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        font-family: 'Tajawal', 'Cairo', sans-serif;
    }

    body {
        background-color: var(--background);
        color: var(--text-main);
        line-height: 1.6;
        direction: rtl;
    }

    .container {
        max-width: 800px;
        margin: 0 auto;
        padding: 2rem 1rem;
    }

    header {
        text-align: center;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid var(--primary);
    }

    h1 {
        color: var(--primary-dark);
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    h2 {
        color: var(--secondary);
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Flash Messages */
    .alert {
        padding: 1rem;
        border-radius: var(--radius);
        margin-bottom: 1.5rem;
        font-weight: bold;
        text-align: center;
        animation: fadeIn 0.5s ease-out;
    }

    .alert-success {
        background: #D5F5E3;
        color: #1E8449;
    }

    .alert-danger {
        background: #FADBD8;
        color: #B03A2E;
    }

    .alert-info {
        background: #D6EAF8;
        color: #2874A6;
    }

    /* Buttons */
    .btn {
        display: inline-block;
        padding: 0.75rem 1.5rem;
        border-radius: var(--radius);
        text-decoration: none;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
        font-size: 1rem;
    }

    .btn-primary {
        background: var(--primary);
        color: white;
        box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    }

    .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
    }

    .btn-danger {
        background: var(--danger);
        color: white;
    }

    .btn-danger:hover {
        background: #C0392B;
        transform: translateY(-2px);
    }

    /* Base Card */
    .card {
        background: var(--surface);
        border-radius: var(--radius);
        padding: 1.5rem;
        box-shadow: var(--shadow-md);
        margin-bottom: 2rem;
    }

    /* Form Styles */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: var(--secondary);
    }

    .form-control {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        font-size: 1rem;
        transition: border-color 0.3s ease;
    }

    .form-control:focus {
        outline: none;
        border-color: var(--primary);
    }

    /* Modal */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        backdrop-filter: blur(4px);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .modal-overlay.active {
        display: flex;
        opacity: 1;
    }

    .modal-content {
        background: var(--surface);
        padding: 2rem;
        border-radius: var(--radius);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        width: 90%;
        max-width: 400px;
        text-align: center;
        transform: scale(0.9);
        transition: transform 0.3s ease;
    }

    .modal-overlay.active .modal-content {
        transform: scale(1);
    }

    .modal-actions {
        display: flex;
        gap: 1rem;
        justify-content: center;
        margin-top: 1.5rem;
    }

    .modal-actions form {
        margin: 0;
    }

    .btn-outline {
        background: transparent;
        border: 2px solid var(--secondary);
        color: var(--secondary);
    }

    .btn-outline:hover {
        background: var(--secondary);
        color: white;
    }

    /* Member List */
    .member-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .member-item {
        background: var(--surface);
        padding: 1.25rem 1rem;
        border-radius: var(--radius);
        box-shadow: var(--shadow-sm);
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid transparent;
        position: relative;
        overflow: hidden;
    }

    .member-item:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
        border-color: var(--border);
    }

    .member-item.completed {
        background: #E8F8F5;
        border-color: var(--primary);
        cursor: default;
    }

    .member-item.completed:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .member-name {
        font-size: 1.1rem;
        font-weight: bold;
        color: var(--secondary);
    }

    .check-icon {
        display: none;
        font-size: 1.5rem;
        color: var(--primary);
        margin-top: 0.5rem;
        animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .member-item.completed .check-icon {
        display: block;
    }

    /* Admin Dashboard Elements */
    .admin-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 1rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 1rem;
        text-align: right;
        border-bottom: 1px solid var(--border);
    }

    .admin-table th {
        background: #f1f2f6;
        color: var(--secondary);
    }

    /* Animations */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes bounceIn {
        0% {
            transform: scale(0);
        }

        50% {
            transform: scale(1.2);
        }

        100% {
            transform: scale(1);
        }
    }

    /* Mobile Compatibility Enhancements */
    @media (max-width: 600px) {
        .container {
            padding: 1rem 0.5rem;
        }

        h1 {
            font-size: 2rem;
        }

        .member-grid {
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 0.75rem;
        }

        .member-item {
            padding: 1rem 0.5rem;
        }

        .member-name {
            font-size: 1rem;
        }
    }

    /* Dark Mode Implementation */
    [data-theme="dark"] {
        --background: #121212;
        --surface: #1E1E1E;
        --text-main: #E0E0E0;
        --text-muted: #A0A0A0;
        --border: #333333;
        --primary-dark: #2ECC71;
        /* Keep bright for contrast in dark mode */
        --secondary: #E0E0E0;
    }

    [data-theme="dark"] .card {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    [data-theme="dark"] .member-item {
        background: var(--surface);
    }

    [data-theme="dark"] .member-item.completed {
        background: #1B3B24;
        border-color: var(--primary);
    }

    [data-theme="dark"] .admin-table th {
        background: #2C2C2C;
        color: var(--text-main);
    }

    [data-theme="dark"] .form-control {
        background: #2C2C2C;
        color: var(--text-main);
        border-color: #444;
    }

    [data-theme="dark"] .form-control:focus {
        background: #333;
    }

    [data-theme="dark"] .modal-content {
        background: var(--surface);
    }

    [data-theme="dark"] .btn-outline {
        border-color: var(--text-muted);
        color: var(--text-muted);
    }

    [data-theme="dark"] .btn-outline:hover {
        background: var(--text-muted);
        color: #121212;
    }

    [data-theme="dark"] .alert-success {
        background: #1B3B24;
        color: #82E0AA;
    }

    [data-theme="dark"] .alert-danger {
        background: #4A1915;
        color: #F1948A;
    }

    [data-theme="dark"] .alert-info {
        background: #15395A;
        color: #85C1E9;
    }