/* Admin Page-Specific Styles
 * Combined CSS from various admin module pages
 * Extracted from: login.php, session_history.php, and other admin pages
 */

/* =======================
   Login Page
   ======================= */

/* Login-specific root variables - isolated to login page */
.login-page {
    --primary-teal: #008190;
    --primary-orange: #f38e3e;
}

.login-page body,
body.login-page {
    background: linear-gradient(135deg, #008190 0%, #00a0b0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #008190 0%, #00a0b0 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.login-header i {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.login-header h4 {
    margin: 0;
    font-weight: 600;
    font-size: 24px;
}

.login-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.login-body {
    padding: 40px 30px;
}

.login-body .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.login-body .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s;
}

.login-body .form-control:focus {
    border-color: #008190;
    box-shadow: 0 0 0 0.2rem rgba(0, 129, 144, 0.15);
}

.login-body .input-group-text {
    background: white;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #008190;
}

.login-body .input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.login-body .input-group:focus-within .input-group-text {
    border-color: #008190;
}

.btn-login {
    background: linear-gradient(135deg, #f38e3e 0%, #ff6b35 100%);
    border: none;
    color: white;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 142, 62, 0.4);
    background: linear-gradient(135deg, #ff6b35 0%, #f38e3e 100%);
    color: white;
}

/* =======================
   Session History Page
   ======================= */

.stats-card {
    border-radius: 15px;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.stats-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Gradient utilities */
.gradient-teal {
    background: linear-gradient(135deg, #008190 0%, #00a8bb 100%);
}

.gradient-orange {
    background: linear-gradient(135deg, #f38e3e 0%, #ff6b35 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* Filter Card */
.filter-card {
    border-radius: 15px;
    border: none;
    background: white;
}

.filter-card .form-control,
.filter-card .form-select {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.filter-card .form-control:focus,
.filter-card .form-select:focus {
    border-color: #008190;
    box-shadow: 0 0 0 0.2rem rgba(0, 129, 144, 0.15);
}

.filter-card .btn-primary {
    background: linear-gradient(135deg, #008190 0%, #00a8bb 100%);
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 129, 144, 0.3);
}

.filter-card .btn-outline-secondary {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    color: #666;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-card .btn-outline-secondary:hover {
    background: #f5f5f5;
    border-color: #008190;
    color: #008190;
}

/* Session Table Card */
.session-table-card {
    border-radius: 15px;
    border: none;
    overflow: hidden;
}

.session-table-card .table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 15px;
    border: none;
}

.session-table-card .table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.session-table-card .table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
}

.session-table-card .table tbody td {
    padding: 15px;
    vertical-align: middle;
    border: none;
}

.session-id-badge {
    background: linear-gradient(135deg, #008190 0%, #00a8bb 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

.participant-card {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
    border-left: 3px solid #008190;
}

/* Type badges */
.type-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.type-badge.chat {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    color: white;
}

.type-badge.voice {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
}

.type-badge.video {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

/* Status badge */
.status-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Action button */
.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    background: white;
    color: #008190;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #008190 0%, #00a8bb 100%);
    color: white;
    border-color: #008190;
    transform: scale(1.1);
}

/* Page header */
.page-header {
    background: linear-gradient(135deg, #008190 0%, #00a8bb 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 129, 144, 0.2);
}

.page-header h2 {
    margin: 0;
    font-weight: 700;
}

.page-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
}

/* Empty state */
.empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.empty-state h5 {
    color: #999;
    font-weight: 600;
}

.empty-state p {
    color: #bbb;
}

/* =======================
   Common Admin Utilities
   ======================= */

/* KYC Tabs styling */
.kyc-tabs .nav-pills .nav-link {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s;
    background: #f8f9fa;
    margin-right: 8px;
    margin-bottom: 8px;
}

.kyc-tabs .nav-pills .nav-link.active {
    background: #008190;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 129, 144, 0.3);
}

.kyc-tabs .nav-pills .nav-link:hover:not(.active) {
    background: #e9ecef;
}

/* Document preview */
.doc-preview {
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s;
}

.doc-preview:hover {
    border-color: #008190;
    background: #f0f8f9;
}

/* Session detail card */
.session-detail-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.session-detail-card .card-header {
    background: linear-gradient(135deg, #008190 0%, #00a8bb 100%);
    color: white;
    padding: 20px;
    border: none;
}

/* Chat container for session view */
.chat-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.chat-message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 15px;
    max-width: 80%;
}

.chat-message.student {
    background: #e3f2fd;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

.chat-message.counsellor {
    background: #e8f5e9;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

/* =======================
   Counsellor List Page
   ======================= */

/* Live status indicator */
.live-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    margin-right: 5px;
}

.live-indicator.online {
    background-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Counsellor avatar */
.counsellor-avatar {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Service badges */
.service-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    opacity: 0.8;
}

.service-badge.active {
    opacity: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* =======================
   View Student Page
   ======================= */

/* Custom Tab Styles */
.nav-pills.custom-pills .nav-link {
    background-color: #fff;
    color: #6c757d;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-pills.custom-pills .nav-link:hover {
    background-color: #f8f9fa;
    color: #008190;
}

.nav-pills.custom-pills .nav-link.active {
    background-color: #008190;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 129, 144, 0.2);
    border-color: #008190;
}

/* =======================
   Course FAQ Management
   ======================= */

.content-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

/* FAQ Table */
.faq-table {
    width: 100%;
    margin-top: 20px;
}

.faq-table thead {
    background: linear-gradient(135deg, #008190 0%, #00a0b0 100%);
    color: white;
}

.faq-table thead th {
    padding: 15px;
    font-weight: 600;
    border: none;
}

.faq-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background 0.3s;
}

.faq-table tbody tr:hover {
    background: #f8f9fa;
}

.faq-table tbody td {
    padding: 15px;
    vertical-align: middle;
}

.faq-question {
    font-weight: 600;
    color: #212529;
    margin-bottom: 5px;
}

.faq-answer {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Modern badges */
.badge-modern {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
}

/* Primary gradient button */
.btn-primary-gradient {
    background: linear-gradient(135deg, #008190 0%, #00a0b0 100%);
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 129, 144, 0.4);
    color: white;
}