/* Global Styles */
:root {
    --primary-color: #8E44AD;
    --secondary-color: #3498DB;
    --accent-color: #F39C12;
    --dark-color: #2C3E50;
    --light-color: #f4f4f4;
    --danger-color: #E74C3C;
    --success-color: #3498DB;
    --warning-color: #F39C12;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --header-height: 70px;
    --footer-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Amiri', 'Scheherazade New', serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #2C3E50;
    direction: rtl;
    text-align: right;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Structure */
.page-wrapper {
    width: 100%;
    flex: 1 0 auto; /* This makes the content area expand to push footer down */
}

main {
    width: 100%;
}

.main-content {
    padding: 20px 0;
    width: 100%;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: #9B59B6;
}

/* Header Styles */
.main-header {
    background-color: white;
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    position: relative;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo i {
    margin-left: 10px;
    font-size: 1.8rem;
}

.main-nav {
    flex: 1;
    margin: 0 20px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    margin-right: 20px;
}

.main-nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.main-nav ul li a:hover {
    background-color: var(--light-color);
}

.main-nav ul li a i {
    margin-left: 5px;
}

.user-menu {
    display: flex;
    align-items: center;
}

.user-menu .btn {
    margin-left: 10px;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background-color: transparent;
    border: none;
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.dropdown-toggle:hover {
    background-color: var(--light-color);
}

.dropdown-toggle i {
    margin-left: 8px;
    font-size: 1.2rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 180px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 10px 0;
    z-index: 101;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
}

.dropdown-menu a {
    display: block;
    padding: 8px 15px;
    color: var(--dark-color);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--light-color);
}

.dropdown-menu a i {
    margin-left: 8px;
    width: 20px;
    text-align: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* Footer Styles - Modern Sticky Footer */
.main-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 20px 0;
    width: 100%;
    flex-shrink: 0; /* Prevents the footer from shrinking */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    padding: 5px 15px;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.05);
}

.footer-logo:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.footer-logo i {
    margin-left: 10px;
    font-size: 1.8rem;
    color: var(--accent-color);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.9;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 500px;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #8E44AD 0%, #3498DB 100%);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.login-page .page-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.login-page .main-footer {
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-danger {
    background-color: var(--danger-color);
}

.btn-success {
    background-color: var(--success-color);
}

.btn-warning {
    background-color: var(--warning-color);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--dark-color);
    border: 1px solid #ddd;
}

.btn-outline-light:hover {
    background-color: var(--light-color);
}

.btn-light {
    background-color: var(--primary-color);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn i {
    margin-left: 5px;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
}

.alert-danger {
    background-color: #ffebee;
    color: var(--danger-color);
    border: 1px solid #ffcdd2;
}

.alert-success {
    background-color: #e3f2fd;
    color: var(--success-color);
    border: 1px solid #bbdefb;
}

/* Dashboard Cards */
.welcome-section {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 30px;
}

.welcome-section h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.welcome-section p {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.welcome-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.2rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    margin: 20px 0;
    border: 1px dashed #dee2e6;
}

.empty-state p {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: #6c757d;
}

/* Steps Section */
.how-it-works {
    margin: 40px 0;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.step {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: flex-start;
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.step-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(142, 68, 173, 0.1);
    border-radius: 50%;
}

.step-content h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.step-content p {
    color: #6c757d;
}

/* Features Section */
.features-section {
    margin: 40px 0;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.feature {
    flex: 1;
    min-width: 200px;
    text-align: center;
    background-color: white;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature p {
    color: #6c757d;
}

/* Dashboard Section */
.dashboard-section {
    margin: 30px 0;
}

.dashboard-section h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.dashboard-section h2 i {
    margin-left: 10px;
}

.card-actions {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.badge-pending {
    background-color: #FFF3CD;
    color: #856404;
}

.badge-active {
    background-color: #D4EDDA;
    color: #155724;
}

.badge-completed {
    background-color: #D1ECF1;
    color: #0C5460;
}

.badge-cancelled {
    background-color: #F8D7DA;
    color: #721C24;
}

/* Gift Assignments */
.gift-assignment, .gift-receiving {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.gift-assignment:last-child, .gift-receiving:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.gift-assignment h3, .gift-receiving h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.gift-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.status-pending {
    color: var(--warning-color);
}

.status-purchased {
    color: var(--secondary-color);
}

.status-delivered {
    color: var(--success-color);
}

/* Admin Styles */
.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.admin-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.admin-card:hover {
    transform: translateY(-5px);
}

.admin-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.admin-card h3 {
    margin-bottom: 10px;
}

.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: var(--light-color);
    font-weight: 600;
}

table tr:hover {
    background-color: #f9f9f9;
}

/* Forms */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-title {
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    text-align: right;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

/* Checkbox group */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-left: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }
    
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .main-footer {
        flex-shrink: 0;
        width: 100%;
    }
    
    .header-content {
        flex-wrap: wrap;
        padding: 5px 0;
    }
    
    .logo {
        flex: 1;
    }
    
    .menu-toggle {
        display: block;
        order: 3;
        background: none;
        border: none;
        font-size: 1.5rem;
        padding: 5px;
        margin-right: 5px;
        cursor: pointer;
    }
    
    .main-nav {
        order: 4;
        width: 100%;
        margin: 10px 0 0;
        display: none;
        background-color: white;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        padding: 10px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    .main-nav ul li {
        margin: 0;
        width: 100%;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 12px 15px;
        width: 100%;
        text-align: right;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .main-nav ul li:last-child a {
        border-bottom: none;
    }
    
    .user-menu {
        order: 2;
        margin-right: auto;
    }
    
    .dropdown {
        position: static;
    }
    
    .dropdown-menu {
        position: absolute;
        right: 10px;
        top: 100%;
        width: 180px;
        max-width: calc(100% - 20px);
    }
    
    /* Form and content fixes */
    .form-container {
        padding: 20px 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .gift-actions {
        flex-direction: column;
    }
    
    .gift-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Card layout fixes */
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    /* Table fixes */
    .table-container {
        overflow-x: auto;
    }
    
    table {
        min-width: 600px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    body {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }
    
    .main-footer {
        padding: 15px 0;
    }
    
    .header-content {
        justify-content: space-between;
    }
    
    .logo a {
        font-size: 1.2rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .dropdown-toggle {
        padding: 5px 8px;
        font-size: 0.9rem;
    }
    
    .user-menu .btn {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .welcome-section h1 {
        font-size: 1.5rem;
    }
}

/* Invitation Link Styles */
.invitation-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
}

.invitation-section h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.invitation-link {
    display: flex;
    margin-bottom: 10px;
}

.invitation-link input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 14px;
}

.invitation-link button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-right: -1px;
}

.mt-2 {
    margin-top: 10px;
}

.d-block {
    display: block;
}

.mt-1 {
    margin-top: 5px;
}

.session-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-right: 4px solid #8E44AD;
}

.session-info h2 {
    margin-top: 0;
    color: #8E44AD;
    font-size: 1.4rem;
}

.session-details {
    margin-top: 10px;
    font-size: 0.9rem;
}

.session-details p {
    margin: 5px 0;
}

/* Gift Assignment Styles */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.start-assignment-form {
    margin-bottom: 15px;
}

.assignments-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.assignments-table th, 
.assignments-table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #ddd;
}

.assignments-table th {
    background-color: var(--light-color);
    font-weight: 600;
}

.my-assignment {
    margin: 30px 0;
}

.my-assignment h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.my-assignment h2 i {
    margin-left: 10px;
}

.my-assignment .card {
    border: 1px solid #e9ecef;
}

.my-assignment .card-header {
    background-color: var(--primary-color);
}

.my-assignment .card-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.my-assignment form {
    margin-top: 20px;
}

/* Session View Page Styles */
.session-details {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin: 30px 0;
}

.session-details h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 15px;
}

.session-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border-right: 4px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.session-info p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.session-info p strong {
    color: var(--dark-color);
    display: inline-block;
    min-width: 120px;
}

/* Invitation Section */
.invitation-section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.invitation-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.invitation-section h3:before {
    content: '\f0e0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 10px;
    color: var(--accent-color);
}

.invitation-link {
    display: flex;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
}

.invitation-link input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
    background-color: #f8f9fa;
}

.invitation-link button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-right: -1px;
    padding: 12px 20px;
}

/* Admin Actions */
.admin-actions {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.admin-actions h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

.admin-actions h2:before {
    content: '\f085';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 10px;
    color: var(--accent-color);
}

.admin-actions h3 {
    color: var(--dark-color);
    margin: 25px 0 15px;
    font-size: 1.3rem;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.start-assignment-form {
    margin-bottom: 20px;
    width: 100%;
}

.start-assignment-form button {
    padding: 20px 30px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    background-color: #27ae60;
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.start-assignment-form button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.start-assignment-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    background-color: #2ecc71;
}

.start-assignment-form button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.start-assignment-form button i {
    margin-left: 15px;
    font-size: 1.5rem;
}

.start-assignment-form small {
    display: block;
    color: #6c757d;
    margin-top: 10px;
    text-align: center;
    font-size: 0.95rem;
}

/* Assignments Table */
.assignments-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.assignments-table th, 
.assignments-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #e9ecef;
}

.assignments-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.assignments-table tr:last-child td {
    border-bottom: none;
}

.assignments-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.assignments-table tr:hover {
    background-color: #f1f1f1;
}

/* My Assignment Section */
.my-assignment {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.my-assignment h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.my-assignment h2 i {
    margin-left: 10px;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.my-assignment .card {
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.my-assignment .card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
}

.my-assignment .card-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.my-assignment .card-body {
    padding: 20px;
    background-color: white;
}

.my-assignment .card-body p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.my-assignment .card-body p strong {
    color: var(--dark-color);
    display: inline-block;
    min-width: 120px;
}

.my-assignment form {
    margin-top: 20px;
}

.my-assignment form button {
    padding: 12px 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 250px;
    transition: all 0.3s ease;
}

.my-assignment form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.my-assignment form button i {
    margin-left: 10px;
}

/* Participants Section */
.participants-section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.participants-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.participants-section h2:before {
    content: '\f500';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 10px;
    color: var(--accent-color);
}

.participants-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.participants-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

.participants-list li:last-child {
    border-bottom: none;
}

.participants-list li:before {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 10px;
    color: var(--primary-color);
}

.participants-list li .btn-small {
    padding: 5px 10px;
    font-size: 0.9rem;
}

.add-participant {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.add-participant h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.add-participant form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.add-participant .form-group {
    flex: 1;
    min-width: 250px;
    margin-bottom: 0;
}

.add-participant button {
    height: 45px;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.status-pending {
    background-color: #FFF3CD;
    color: #856404;
    border: 1px solid #ffeeba;
}

.status-active {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-purchased {
    background-color: #CCE5FF;
    color: #004085;
    border: 1px solid #b8daff;
}

.status-delivered {
    background-color: #D1ECF1;
    color: #0C5460;
    border: 1px solid #bee5eb;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .session-details {
        padding: 20px 15px;
    }
    
    .session-info p strong {
        min-width: 100px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .start-assignment-form button,
    .my-assignment form button {
        max-width: 100%;
    }
    
    .add-participant form {
        flex-direction: column;
    }
    
    .add-participant .form-group {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .add-participant button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .session-details h1 {
        font-size: 1.5rem;
    }
    
    .session-info p {
        font-size: 1rem;
    }
    
    .session-info p strong {
        min-width: auto;
        margin-left: 5px;
    }
    
    .invitation-link {
        flex-direction: column;
    }
    
    .invitation-link input {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
    
    .invitation-link button {
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        width: 100%;
        margin-right: 0;
    }
}

/* Button Sizes */
.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* Utility Classes */
.mt-1 {
    margin-top: 5px;
}

.mt-2 {
    margin-top: 10px;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary-color);
}

.text-success {
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-warning {
    color: var(--warning-color);
}

/* Section Dividers */
.session-details > div {
    position: relative;
    margin-bottom: 40px;
}

.session-details > div:after {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(to right, rgba(0,0,0,0.05), rgba(0,0,0,0.1), rgba(0,0,0,0.05));
    margin: 40px 0 0;
} 