@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
/* Note: Some parts in here need to be deleted  */ 
:root {
    --primary-color: #007bff; /* A vibrant blue for primary actions */
    --secondary-color: #6c757d; /* Grey for secondary elements */
    --accent-color: #28a745; /* Green for success/highlights */
    --danger-color: #dc3545; /* Red for errors/warnings */
    --background-gradient-start: #2a2a72;
    --background-gradient-end: #009ffd;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-sidebar-bg: rgba(255, 255, 255, 0.1);
    --glass-card-bg: rgba(255, 255, 255, 0.1);
    --glass-profile-bg: rgba(255, 255, 255, 0.12);
    --text-color: #fff;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--background-gradient-start) 0%, var(--background-gradient-end) 74%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    overflow: hidden; 
    position: relative; 
}

/* --- Main Container for index.html, login pages, and under construction --- */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 1000px; /* Limit width for larger screens */
    height: 85vh;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
    padding: 40px;
    text-align: center;
    overflow-y: auto; /* Allow scrolling if content overflows */
}

.main-header {
    margin-bottom: 40px;
}

.main-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.main-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.login-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.glass-button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-color);
    padding: 15px 30px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none; /* For anchor tags styled as buttons */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.glass-button i {
    font-size: 1.3rem;
}

.admin-button {
    margin-top: 30px; /* Separate admin button */
    width: 100%; /* Full width for admin button on smaller screens */
    max-width: 300px; /* Limit width on larger screens */
}

/* --- Login Page Specific Styles --- */
.login-page {
    height: auto; /* Adjust height for content */
    min-height: 70vh; /* Ensure it's not too small */
    justify-content: flex-start; /* Align content to top */
    padding-top: 80px; /* Add some top padding */
}

.login-card {
    background: var(--glass-card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    text-align: left;
}

.login-card h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
}

.input-group input[type="text"],
.input-group input[type="password"],
.input-group input[type="email"],
.input-group input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.input-group input[type="text"]:focus,
.input-group input[type="password"]:focus,
.input-group input[type="email"]:focus,
.input-group input[type="number"] {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.recaptcha-info {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: -10px;
    margin-bottom: 20px;
    text-align: center;
}

.login-button {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    margin-top: 10px;
}

.message-box {
    margin-top: 20px;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
}

.message-box.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    opacity: 1;
}

.message-box.success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    opacity: 1;
}

/* --- Under Construction Page Specific Styles --- */
.under-construction {
    text-align: center;
    padding: 60px;
}

.construction-message i {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    animation: bounce 2s infinite;
}

.construction-message h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.construction-message p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* --- Dashboard Container --- */
.container {
    display: flex;
    width: 90%;
    height: 85vh;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
    overflow: hidden; /* Important for sidebar and content scrolling */
}

.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    padding: 30px 15px;
    background: var(--glass-sidebar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    transition: width var(--transition-speed) ease;
    position: relative;
    flex-shrink: 0; /* Prevent sidebar from shrinking */
}

.sidebar .logo {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sidebar .logo i {
    font-size: 36px;
    color: var(--text-color);
    opacity: 0.9;
}

.sidebar .logo span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    opacity: 0.9;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    margin-bottom: 8px;
    border-radius: 16px;
    transition: all 0.2s ease;
    position: relative;
}

.menu li:hover {
    background: rgba(255, 255, 255, 0.2);
}

.menu li.active {
    background: rgba(255, 255, 255, 0.25);
}

.menu li.active::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 0 4px 4px 0;
}

.menu a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.menu a i {
    font-size: 20px;
    margin-right: 14px;
    min-width: 22px;
    text-align: center;
}

.profile {
    margin-top: auto;
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--glass-profile-bg);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info p {
    font-size: 12px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content {
    flex: 1;
    padding: 40px;
    overflow-y: auto; /* Allow content to scroll */
}

header {
    margin-bottom: 30px;
}

header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

header p {
    font-size: 16px;
    opacity: 0.8;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.card {
    background: var(--glass-card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.card-icon i {
    font-size: 22px;
}

.card-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-info p {
    font-size: 14px;
    opacity: 0.8;
}

.menu li::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0);
    transition: box-shadow 0.3s ease;
}

.menu li:hover::after {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* --- Tab Content Styles --- */
.tab-content-container {
    margin-top: 20px;
}

.tab-pane {
    display: none;
    padding: 20px 0;
}

.tab-pane.active {
    display: block;
}

.tab-pane h2 {
    font-size: 28px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

/* Specific card styles for dashboard */
.notification-card .card-info h3 { font-size: 1.2rem; }
.notification-card .card-info p { font-size: 0.9rem; }

.payment-card .card-info h3 { font-size: 1.2rem; }
.payment-card .card-info p { font-size: 0.9rem; }

.package-card .card-info h3 { font-size: 1.2rem; }
.package-card .card-info p { font-size: 0.9rem; }
.package-card .package-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-top: 10px;
}

.section-title {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.payment-form-container {
    background: var(--glass-card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    margin-top: 20px;
}

.payment-form .input-group-inline {
    display: flex;
    gap: 20px;
}

.payment-form .input-group-inline .input-group {
    flex: 1;
}

.settings-section {
    background: var(--glass-card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.settings-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-section .input-group {
    margin-bottom: 15px;
}

.small-button {
    padding: 8px 15px;
    font-size: 0.9rem;
    margin-top: 15px;
}


/* --- AI Helper Styles --- */
.ai-helper-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text-color);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 1000; 
}

.ai-helper-icon:hover {
    transform: scale(1.1);
    background-color: #0056b3; /* Darker blue on hover */
}

.ai-chat-modal {
    position: fixed;
    bottom: 100px; /* Above the icon */
    right: 30px;
    width: 350px;
    height: 450px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.ai-chat-modal.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.ai-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.close-chat-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.close-chat-btn:hover {
    opacity: 1;
}

.ai-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-message, .user-message {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 0.9rem;
}

.ai-message {
    background: rgba(255, 255, 255, 0.15);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-message {
    background: var(--primary-color);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.ai-chat-input {
    display: flex;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.ai-chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 0.95rem;
    outline: none;
}

.ai-chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.ai-chat-input button {
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    color: var(--text-color);
    font-size: 1.1rem;
    padding: 10px 15px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ai-chat-input button:hover {
    background-color: #0056b3;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .sidebar {
        width: var(--sidebar-collapsed-width);
    }
    .sidebar .logo span, .menu a span, .user-info {
        display: none;
    }
    .profile {
        justify-content: center;
    }
    .avatar {
        margin-right: 0;
    }
    .content {
        padding: 30px;
    }
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .main-header h1 {
        font-size: 2.8rem;
    }
    .glass-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px; /* Add padding to body on small screens */
        overflow-y: auto; /* Allow body scroll if content overflows */
    }
    .main-container, .container {
        width: 100%;
        height: auto;
        min-height: 90vh;
        border-radius: 15px;
        padding: 20px;
    }
    .sidebar {
        width: 100%;
        height: auto;
        padding: 20px 10px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
    }
    .sidebar .logo {
        margin-bottom: 0;
        flex-grow: 1;
        justify-content: flex-start;
    }
    .sidebar .logo span {
        display: block; /* Show logo text on small screens */
        font-size: 1.5rem;
    }
    .menu {
        flex-grow: 2;
    }
    .menu ul {
        display: flex;
        justify-content: space-around;
        width: 100%;
    }
    .menu li {
        margin-bottom: 0;
        flex: 1;
        text-align: center;
    }
    .menu li.active::before {
        left: 50%;
        top: auto;
        bottom: -10px;
        transform: translateX(-50%);
        width: 20px;
        height: 4px;
        border-radius: 4px 4px 0 0;
    }
    .menu a {
        flex-direction: column;
        padding: 8px 5px;
    }
    .menu a i {
        margin-right: 0;
        margin-bottom: 5px;
    }
    .menu a span {
        display: block; /* Show menu item text on small screens */
        font-size: 0.75rem;
    }
    .profile {
        display: none; /* Hide profile on very small screens or make it a dropdown */
    }
    .content {
        padding: 20px;
    }
    .card-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .main-header h1 {
        font-size: 2rem;
    }
    .main-header p {
        font-size: 1rem;
    }
    .login-buttons-container {
        flex-direction: column;
        gap: 15px;
    }
    .glass-button {
        width: 100%;
        max-width: none;
    }
    .login-card {
        padding: 30px 20px;
    }
    .login-card h2 {
        font-size: 1.8rem;
    }
    .ai-chat-modal {
        width: 90%;
        right: 5%;
        bottom: 90px;
        height: 70%;
    }
    .ai-helper-icon {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}
