/* Admin Dashboard - Bright Glass-Morphism Theme */

/* Admin-specific glass card styling */
.admin-glass-card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(99, 102, 241, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Admin Header with Gradient */
.admin-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(168, 85, 247, 0.95) 100%);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    position: relative;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* Admin Navigation Bar */
.admin-nav {
    background: rgba(30, 41, 59, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(99, 102, 241, 0.5) !important;
}

/* Icon Circles */
.admin-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    animation: float 3s ease-in-out infinite;
}

.admin-icon-circle-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 1.5rem;
}

.icon-circle-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
}

.stat-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.25rem;
}

/* Stats Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px !important;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Table Styling */
.admin-table {
    background: rgba(255, 255, 255, 0.05) !important;
}

.admin-table thead {
    background: rgba(30, 41, 59, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.admin-table thead th {
    color: white !important;
    font-weight: 600;
    border: none !important;
    padding: 1rem !important;
}

.admin-table tbody tr {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.2s ease;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: scale(1.01);
}

.admin-table tbody td {
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 1rem !important;
    vertical-align: middle;
}

/* Unread Row Highlight */
.unread-row {
    background: rgba(251, 191, 36, 0.15) !important;
    border-left: 4px solid #fbbf24 !important;
}

.unread-row:hover {
    background: rgba(251, 191, 36, 0.25) !important;
}

/* Badge Styling */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 25px;
}

/* Buttons */
.btn-admin-primary {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-admin-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    color: white;
}

.btn-admin-secondary {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-admin-secondary:hover {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
    color: white;
}

/* Card Headers */
.admin-card-header {
    background: rgba(30, 41, 59, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* Form Elements */
.admin-form-control {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    padding: 0.75rem 1rem;
}

.admin-form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.admin-form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    color: white;
}

/* Login Page Specific */
.admin-login-card {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.4) !important;
}

.admin-login-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(168, 85, 247, 0.3) 50%, rgba(6, 182, 212, 0.3) 100%);
    position: relative;
}

.admin-login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.2) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

/* Message Content Box */
.message-content {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px;
}

.message-content p {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Response Templates */
.response-template {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.response-template:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.response-template h6, .response-template p {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Avatar Circle */
.avatar-circle {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: rgba(255, 255, 255, 1);
}

.breadcrumb-item.active {
    color: white;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Text Colors */
.admin-text-white {
    color: white !important;
}

.admin-text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.admin-text-dark {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Alert Boxes */
.admin-alert {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
}

/* Search and Filter */
.admin-search-input {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.admin-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.admin-search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    color: white;
}

/* Empty State */
.empty-state-icon i {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Print Styles */
@media print {
    .admin-header, 
    .admin-nav, 
    .card-footer, 
    .btn, 
    .badge.bg-warning,
    .badge.bg-success {
        display: none !important;
    }
    
    .admin-glass-card,
    .stat-card {
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .admin-card-header {
        background: #f8f9fa !important;
        color: #000 !important;
    }
    
    body {
        background: white !important;
    }
    
    * {
        color: #000 !important;
    }
}
