/* Admin Panel Styles */

/* Root Variables */
:root {
    --primary-color: #8b5a3c;
    --primary-dark: #6b4226;
    --secondary-color: #fdf7f7;
    --accent-color: #e8d5d5;
    --navy-blue: #1e3a8a;
    --navy-light: #3b82f6;
    --navy-dark: #1e40af;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f8f9fa, #e8f4f8, #fdf7f7);
    min-height: 100vh;
}

/* Access Modal Styles */
.access-modal {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    backdrop-filter: blur(20px);
}

.access-modal .modal-header {
    background: linear-gradient(135deg, var(--navy-blue), var(--primary-color));
    color: white;
    border: none;
    padding: 2rem 2rem 1rem 2rem;
    position: relative;
    overflow: hidden;
}

.access-modal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hearts-access" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23hearts-access)"/></svg>');
    opacity: 0.3;
}

.access-modal .modal-title {
    position: relative;
    z-index: 2;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.access-modal .modal-title i {
    margin-right: 0.5rem;
    color: #ffd700;
}

.access-modal .modal-body {
    padding: 2rem;
    text-align: center;
}

.access-icon {
    margin-bottom: 1.5rem;
}

.access-icon i {
    font-size: 4rem;
    color: var(--navy-blue);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 90, 60, 0.1));
    padding: 1.5rem;
    border-radius: 50%;
    border: 3px solid rgba(59, 130, 246, 0.2);
}

.access-modal h4 {
    font-family: 'Playfair Display', serif;
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.access-modal .text-muted {
    margin-bottom: 2rem;
    font-size: 1rem;
}

.access-form {
    margin-bottom: 2rem;
}

.access-form .form-control {
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.access-form .form-control:focus {
    outline: none;
    border-color: var(--navy-blue);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
    transform: translateY(-2px);
}

.access-modal .modal-footer {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8), rgba(255, 255, 255, 0.8));
    border: none;
    padding: 1.5rem 2rem;
    justify-content: center;
}

.access-modal .btn-primary {
    background: linear-gradient(135deg, var(--navy-blue), var(--primary-color));
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.access-modal .btn-primary:hover {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy-light));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.4);
}

.access-modal .btn-primary i {
    margin-right: 0.5rem;
}

.access-modal .btn-outline-secondary {
    border: 2px solid rgba(108, 117, 125, 0.3);
    color: var(--text-dark);
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 1rem;
}

.access-modal .btn-outline-secondary:hover {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.1), rgba(73, 80, 87, 0.1));
    border-color: rgba(108, 117, 125, 0.5);
    transform: translateY(-3px) scale(1.05);
    color: var(--text-dark);
}

.access-modal .btn-outline-secondary i {
    margin-right: 0.5rem;
}

/* Admin Header */
.admin-header {
    background: linear-gradient(135deg, var(--navy-blue), var(--primary-color));
    color: white;
    padding: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hearts-header" x="0" y="0" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23hearts-header)"/></svg>');
    opacity: 0.3;
}

.admin-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.admin-title i {
    color: #ffd700;
    margin-right: 0.5rem;
}

.admin-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 2;
}

.admin-header .btn {
    margin-left: 0.5rem;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.admin-header .btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.admin-header .btn i {
    margin-right: 0.5rem;
}

/* Stats Section */
.stats-section {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card.attending {
    border-color: rgba(40, 167, 69, 0.3);
}

.stat-card.attending .stat-icon {
    background: linear-gradient(135deg, var(--success-color), #20c997);
}

.stat-card.not-attending {
    border-color: rgba(220, 53, 69, 0.3);
}

.stat-card.not-attending .stat-icon {
    background: linear-gradient(135deg, var(--danger-color), #e74c3c);
}

.stat-card.pending {
    border-color: rgba(255, 193, 7, 0.3);
}

.stat-card.pending .stat-icon {
    background: linear-gradient(135deg, var(--warning-color), #fd7e14);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--navy-blue), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.stat-icon i {
    font-size: 2rem;
    color: white;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-content h3 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--navy-blue), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.stat-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Table Section */
.table-section {
    padding: 2rem 0 4rem 0;
}

.table-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.table-header {
    background: linear-gradient(135deg, var(--navy-blue), var(--primary-color));
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.table-header h3 i {
    color: #ffd700;
    margin-right: 0.5rem;
}

.table-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    z-index: 2;
}

.search-box input {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    width: 250px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
    background: white;
}

.form-select {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
    background: white;
}

/* Table Styles */
.table-responsive {
    padding: 0;
}

.table {
    margin: 0;
    background: transparent;
}

.table thead th {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 90, 60, 0.1));
    color: var(--navy-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: none;
    padding: 1.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr {
    transition: all 0.3s ease;
    border: none;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 90, 60, 0.05));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table tbody td {
    padding: 1.25rem 1rem;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}

/* Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge.attending {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
    color: var(--success-color);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-badge.not-attending {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(231, 76, 60, 0.1));
    color: var(--danger-color);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-badge.pending {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(253, 126, 20, 0.1));
    color: #e67e22;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-action {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-confirm {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: white;
}

.btn-confirm:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-reject {
    background: linear-gradient(135deg, var(--danger-color), #e74c3c);
    color: white;
}

.btn-reject:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.status-completed {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.1), rgba(73, 80, 87, 0.1));
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.status-completed i {
    font-size: 1rem;
}

/* Table Footer */
.table-footer {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8), rgba(255, 255, 255, 0.8));
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.pagination-info {
    color: var(--text-light);
    font-weight: 500;
}

.per-page-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.per-page-control label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.per-page-control .form-select {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    background-color: white;
    color: var(--text-dark);
    min-width: 70px;
}

.per-page-control .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 90, 60, 0.25);
}

.pagination {
    margin: 0;
}

.pagination .page-link {
    border: 2px solid rgba(59, 130, 246, 0.2);
    color: var(--navy-blue);
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, var(--navy-blue), var(--primary-color));
    color: white;
    border-color: var(--navy-blue);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--navy-blue), var(--primary-color));
    border-color: var(--navy-blue);
    color: white;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.loading-spinner i {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.loading-spinner p {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

/* Mobile Cards */
.mobile-cards-container {
    padding: 1rem;
}

.mobile-rsvp-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

.mobile-rsvp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.mobile-rsvp-card .card-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 90, 60, 0.1));
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-rsvp-card .card-title h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--navy-blue);
    margin: 0 0 1rem 0;
}

.mobile-rsvp-card .card-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mobile-rsvp-card .card-body {
    padding: 1.5rem;
}

.mobile-rsvp-card .card-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-rsvp-card .info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-rsvp-card .info-item:hover {
    background: rgba(248, 249, 250, 0.8);
    transform: translateX(5px);
}

.mobile-rsvp-card .info-item i {
    color: var(--navy-blue);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.mobile-rsvp-card .info-item a {
    color: var(--navy-blue);
    font-weight: 500;
}

.mobile-rsvp-card .info-item span {
    color: var(--text-dark);
    font-weight: 500;
}

.mobile-rsvp-card .message-item {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 90, 60, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.mobile-rsvp-card .email-status-item {
    background: linear-gradient(135deg, rgba(139, 90, 60, 0.05), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(139, 90, 60, 0.1);
}

.mobile-rsvp-card .email-status-item span {
    font-weight: 600;
    color: var(--primary-color);
}

.mobile-rsvp-card .email-status-item .email-status-badge {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    padding: 2px 6px;
}

.mobile-rsvp-card .card-footer {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8), rgba(255, 255, 255, 0.8));
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-rsvp-card .action-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mobile-rsvp-card .btn-action {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.mobile-rsvp-card .status-completed {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-title {
        font-size: 2rem;
    }
    
    .admin-subtitle {
        font-size: 1rem;
    }
    
    .admin-header .btn {
        margin: 0.25rem;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
    }
    
    .stat-icon i {
        font-size: 1.5rem;
    }
    
    .stat-content h3 {
        font-size: 2.5rem;
    }
    
    .table-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .table-controls {
        justify-content: center;
    }
    
    .search-box input {
        width: 100%;
        max-width: 300px;
    }
    
    /* Hide table on mobile, show cards */
    .table-responsive {
        display: none !important;
    }
    
    .mobile-cards-container {
        display: block !important;
    }
    
    .table thead th {
        padding: 1rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .table tbody td {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-action {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .table-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .pagination-controls {
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .admin-header {
        padding: 1.5rem 0;
    }
    
    .admin-title {
        font-size: 1.8rem;
    }
    
    .stats-section {
        padding: 2rem 0;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-content h3 {
        font-size: 2rem;
    }
    
    .table-header {
        padding: 1.5rem;
    }
    
    .table-header h3 {
        font-size: 1.5rem;
    }
    
    .table thead th {
        padding: 0.75rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .table tbody td {
        padding: 0.75rem 0.25rem;
        font-size: 0.85rem;
    }
    
    .status-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .btn-action {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
    
    .table-footer {
        padding: 1rem 1.5rem;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .per-page-control {
        justify-content: center;
    }
    
    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Email Status Styles */
.email-sent-status,
.email-read-status {
    display: flex;
    justify-content: center;
    align-items: center;
}

.email-status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.email-status-badge.sent {
    background: #d4edda;
    color: #155724;
}

.email-status-badge.read {
    background: #cce5ff;
    color: #004085;
}

.email-status-badge.failed {
    background: #f8d7da;
    color: #721c24;
}

.email-status-badge.not-sent {
    background: #f8f9fa;
    color: #6c757d;
}

.email-status-badge.loading {
    background: #fff3cd;
    color: #856404;
}

.email-status-badge.error {
    background: #f8d7da;
    color: #721c24;
}

.email-status-badge.unread {
    background: #f8f9fa;
    color: #6c757d;
}

.email-status-badge.read {
    background: #cce5ff;
    color: #004085;
}

.read-status {
    font-size: 11px;
    color: #28a745;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
}

.btn-resend {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
}

.btn-resend:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-resend:active {
    transform: translateY(0);
}

.btn-resend:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Mobile email status styles */
@media (max-width: 991.98px) {
    .email-sent-status,
    .email-read-status {
        justify-content: flex-start;
    }
    
    .email-status-badge {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .btn-resend {
        font-size: 11px;
        padding: 5px 10px;
        margin-top: 8px;
        width: 100%;
        justify-content: center;
    }
}
