/* styles.css */

* {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Gradient animations */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient {
    background: linear-gradient(-45deg, #dc2626, #ef4444, #f87171, #fca5a5);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

/* Smooth fade in */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Glassmorphism */
.glass {
    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);
}

/* Smooth scroll indicator */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.bounce-animation {
    animation: bounce 2s infinite;
}

/* Hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Mobile menu animation */
.mobile-menu {
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu.closed {
    transform: translateX(100%);
}

/* Partner logos grayscale effect */
.partner-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========================================
   CHATBOT STYLES - COMPLETE SECTION
   ======================================== */

#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.6);
}

.chat-toggle-btn:active {
    transform: scale(0.95);
}

.chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chat-window.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
}

.chat-header {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

/* Registration Form Styles */
.registration-form-container {
    position: absolute;
    top: 56px; /* Below header */
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    flex-direction: column;
    z-index: 10;
    padding: 20px;
    overflow-y: auto;
}

.registration-form-container.hidden {
    display: none;
}

.registration-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.registration-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    text-align: center;
}

.registration-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
    text-align: center;
}

.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-field input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-field input:focus {
    outline: none;
    border-color: #dc2626;
}

.submit-registration-btn {
    width: 100%;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.submit-registration-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.submit-registration-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.registration-note {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

/* Chat Interface */
.chat-interface {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.chat-interface.hidden {
    display: none;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f9fafb;
    min-height: 0;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.message {
    margin-bottom: 12px;
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-content {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    word-wrap: break-word;
    line-height: 1.4;
}

.bot-message .message-content {
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 12px 12px 12px 4px;
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border-radius: 12px 12px 4px 12px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    max-width: 70px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

.chat-input-container {
    display: flex;
    padding: 12px;
    background: white;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    outline: none;
    font-size: 14px;
}

.chat-input:focus {
    border-color: #dc2626;
}

.chat-input:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border: none;
    margin-left: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.05);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    #chatbot-container {
        bottom: 10px;
        right: 10px;
    }

    .chat-toggle-btn {
        width: 56px;
        height: 56px;
    }

    .chat-window {
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
        right: 10px;
        bottom: 76px;
    }
}
/* ========================================
   ADMIN DASHBOARD STYLES
   ======================================== */

/* Admin Login Page */
.admin-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.admin-login-container {
    background: white;
    padding: 48px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.admin-login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.admin-login-logo img {
    height: 50px;
    margin-bottom: 16px;
}

.admin-login-logo h2 {
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.admin-login-subtitle {
    color: #6b7280;
    font-size: 14px;
}

.admin-login-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.admin-login-input:focus {
    outline: none;
    border-color: #dc2626;
}

.admin-login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* Admin Dashboard Layout */
.admin-wrapper {
    padding-top: 100px;
    padding-bottom: 40px;
    min-height: 100vh;
    background: #f3f4f6;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.admin-header {
    background: white;
    padding: 24px 32px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.admin-logout-btn {
    padding: 10px 20px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.admin-logout-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

/* Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.admin-stat-value {
    font-size: 40px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 8px;
}

.admin-stat-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Content Card */
.admin-content-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
}

.admin-message-count {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

/* Table Styles */
.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    color: #111827;
    font-size: 14px;
}

.admin-table tr:hover {
    background: #f9fafb;
}

.admin-view-btn {
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s;
}

.admin-view-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.admin-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Empty State */
.admin-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.admin-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #9ca3af;
}

.admin-empty-text {
    font-size: 16px;
}

/* View Chat Page */
.admin-back-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #dc2626;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.admin-back-btn:hover {
    background: #b91c1c;
    transform: translateX(-4px);
}

.admin-back-btn svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.admin-user-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.admin-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.admin-info-item {
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.admin-info-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.admin-info-value {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
}

.admin-session-id {
    font-size: 12px;
    word-break: break-all;
}

/* Chat Messages */
.admin-chat-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

.admin-chat-message {
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid #e5e7eb;
}

.admin-msg-user {
    background: #fef2f2;
    border-left-color: #dc2626;
}

.admin-msg-assistant {
    background: #f9fafb;
    border-left-color: #3b82f6;
}

.admin-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.admin-message-type {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.admin-type-user {
    color: #dc2626;
}

.admin-type-assistant {
    color: #3b82f6;
}

.admin-message-time {
    font-size: 12px;
    color: #6b7280;
}

.admin-message-content {
    color: #374151;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .admin-header h1 {
        font-size: 22px;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-table-container {
        overflow-x: scroll;
    }
    
    .admin-table {
        min-width: 800px;
    }
}