:root {
    /* Premium Palette */
    --primary-red: #BF1534;
    --dark-red: #A61B34;
    --black: #0D0D0D;
    --bg-light: #EDEDED;
    --surface-grey: #DEDFE3;
    --white: #FFFFFF;

    /* Functional Colors */
    --primary-color: var(--primary-red);
    --secondary-color: var(--dark-red);
    --background-dark: var(--black);
    --background-light: var(--bg-light);
    --text-color: var(--black);
    --text-light: #F5F5F5;
    --border-color: #D1D1D1;

    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--background-light);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 15px;
}

/* Layout */
.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 25px;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.sidebar h2 {
    margin-bottom: 40px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 15px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: #888;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar a:hover,
.sidebar a.active {
    background-color: var(--primary-red);
    color: var(--white);
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(191, 21, 52, 0.3);
}

.main-content {
    flex: 1;
    padding: 30px;
    background-color: var(--background-light);
    overflow-y: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--black);
}

/* Login Page */
.login-body {
    background-color: var(--background-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
}

.login-container {
    background-color: var(--white);
    padding: 50px;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    color: var(--text-color);
    border-top: 5px solid var(--primary-red);
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h1 {
    color: var(--primary-red);
    margin-bottom: 10px;
    font-weight: 800;
    font-size: 2rem;
}

.login-header p {
    color: #666;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 2px solid #eee;
    border-radius: 8px;
    background-color: #f9f9f9;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(191, 21, 52, 0.1);
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
    width: 100%;
    box-shadow: 0 4px 10px rgba(191, 21, 52, 0.2);
}

.btn-primary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(191, 21, 52, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.alert {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 8px;
    background-color: #fff5f5;
    border-left: 4px solid var(--primary-red);
    color: var(--primary-red);
    font-weight: 500;
}

/* Dashboard Hero Premium */
.dashboard-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: var(--white);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 6px solid var(--primary-red);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(191, 21, 52, 0.05));
    pointer-events: none;
}

.hero-content h2 {
    margin: 0 0 10px 0;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-content p {
    margin: 0;
    opacity: 0.7;
    font-size: 1.1rem;
    font-weight: 400;
}

.hero-time {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.hero-date {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-clock {
    font-size: 2.5rem;
    font-weight: 300;
    font-family: 'Courier New', monospace;
    letter-spacing: -1px;
    color: var(--primary-red);
    text-shadow: 0 0 20px rgba(191, 21, 52, 0.3);
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-red);
    /* Top border instead of left */
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card h3 {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--black);
}

.stat-card .icon {
    font-size: 2rem;
    opacity: 0.1;
    position: absolute;
    right: 20px;
    top: 20px;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Tables */
.table-container {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    background-color: #f8f8f8;
    color: var(--black);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 18px;
    border-bottom: 2px solid #eee;
}

td {
    padding: 18px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #fafafa;
}

/* Premium Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
}

.status-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: currentColor;
}

.status-pending {
    background: #fff8e1;
    color: #f57f17;
    border-color: #ffe082;
}

.status-in_progress {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #90caf9;
}

.status-approved {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #a5d6a7;
}

.status-rejected {
    background: #ffebee;
    color: #c62828;
    border-color: #ef9a9a;
}

.status-closed {
    background: #f5f5f5;
    color: #616161;
    border-color: #e0e0e0;
}

/* Specific Background Colors (Premium Pastels) */
.bg-pink {
    background-color: #ffebee;
}

/* Very light red */
.bg-blue {
    background-color: #e3f2fd;
}

/* Very light blue */
.bg-yellow {
    background-color: #fff8e1;
}

/* Very light yellow */
.bg-grey {
    background-color: #f5f5f5;
}

/* Ticket Detail Form (Professional Document Style) */
.ticket-form-container {
    background: var(--white);
    border-radius: 16px;
    /* Premium rounded corners */
    box-shadow: var(--shadow-lg);
    max-width: 1000px;
    margin: 20px auto;
    overflow: hidden;
    border: 1px solid #ccc;
    /* Distinct border */
}

.ticket-header {
    background-color: var(--black);
    color: var(--white);
    padding: 25px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 5px solid var(--primary-red);
}

.ticket-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-row {
    display: flex;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.form-row:last-child {
    border-bottom: none;
}

.form-label {
    background-color: #f8f9fa;
    padding: 15px 20px;
    width: 200px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    border-right: 1px solid #eee;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    flex: 1;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    min-width: 200px;
    border-right: 1px solid #eee;
    color: #333;
    font-weight: 500;
}

.form-input:last-child {
    border-right: none;
}

.form-input input,
.form-input select,
.form-input textarea {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    color: #333;
    padding: 0;
}

.section-title {
    padding: 15px 20px;
    font-weight: 800;
    background-color: var(--black);
    color: var(--white);
    font-size: 1rem;
    border-bottom: 2px solid var(--primary-red);
    border-top: 2px solid var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -1px;
    /* Overlap borders */
}

/* Updates Section - Log Style */
.updates-row {
    display: flex;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.updates-label,
.updates-spec-label {
    background-color: #f8f9fa;
    width: 150px;
    padding: 12px 15px;
    font-weight: 600;
    color: #555;
    border-right: 1px solid #eee;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.updates-date-val {
    background-color: #fff;
    width: 180px;
    padding: 12px 15px;
    border-right: 1px solid #eee;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    font-family: 'Courier New', monospace;
}

.updates-content-val {
    background-color: #fff;
    flex: 1;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    color: #333;
}

/* Public Request Form Fixes */
.public-request-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    box-shadow: var(--shadow-lg);
    border-top: 6px solid var(--primary-red);
    margin: 20px;
    /* Add margin for mobile */
}

.public-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive Grid */
    gap: 20px;
}

.public-request-container .btn-primary:hover {
    background-color: var(--dark-red);
}

/* Knowledge Base (Premium) */
.kb-container {
    max-width: 1200px;
    margin: 0 auto;
}

.kb-header {
    text-align: center;
    margin-bottom: 50px;
}

.kb-header h1 {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 10px;
}

.kb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.kb-category-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-red);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kb-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.kb-category-title {
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kb-article-list {
    list-style: none;
}

.kb-article-item {
    margin-bottom: 15px;
}

.kb-article-link {
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.kb-article-link:hover {
    color: var(--primary-red);
}

.kb-article-link i {
    color: #ccc;
    margin-top: 3px;
    transition: color 0.2s;
}

.kb-article-link:hover i {
    color: var(--primary-red);
}

/* KB Article Detail */
.kb-article-container {
    max-width: 900px;
    margin: 0 auto;
}

.kb-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    margin-bottom: 30px;
    font-weight: 500;
    transition: color 0.2s;
}

.kb-back-link:hover {
    color: var(--primary-red);
}

.article-content {
    background: var(--white);
    border-radius: 16px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
}

.article-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.article-category-badge {
    background: #f0f0f0;
    color: #555;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 15px;
}

.article-title {
    font-size: 2.2rem;
    color: var(--black);
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    color: #999;
    font-size: 0.9rem;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-feedback {
    margin-top: 60px;
    text-align: center;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
}

/* Print Styles (Premium Executive Design) */
@media print {

    /* Hide UI Elements */
    .sidebar,
    .header,
    .btn,
    .alert,
    .updates-input,
    form[action*="new_update_specifics"],
    form[action*="add_comment"],
    .section-title+div[style*="text-align: right"],
    .form-row:last-child button {
        display: none !important;
    }

    /* Reset Layout */
    .wrapper {
        display: block;
        background: white;
    }

    .main-content {
        padding: 0;
        margin: 0;
        background-color: white;
        overflow: visible;
    }

    body {
        background-color: white;
        color: #333;
        font-family: 'Inter', sans-serif;
        font-size: 11pt;
    }

    /* Ticket Container - Clean Minimalist */
    .ticket-form-container {
        box-shadow: none;
        border: none;
        max-width: 100%;
        width: 100%;
        margin: 0;
    }
}

/* AI Model Cards (Premium) */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.model-card {
    background: var(--white);
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 15px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}

.model-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.model-card.active {
    border-color: var(--primary-red);
    background-color: #fff5f5;
}

.model-card.active::after {
    content: '\eb7b';
    /* bx-check-circle */
    font-family: 'boxicons';
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--primary-red);
    font-size: 1.2rem;
}

.model-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #666;
}

.model-card.active .model-icon {
    background: var(--primary-red);
    color: white;
}

.model-info h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black);
}

.model-info small {
    color: #888;
    font-size: 0.8rem;
}

.model-delete {
    position: absolute;
    bottom: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.2s;
}

.model-card:hover .model-delete {
    opacity: 1;
}



/* Premium Icon Styles */
.sidebar a i {
    margin-right: 10px;
    font-size: 1.2rem;
    vertical-align: middle;
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card .icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    opacity: 0.1;
    color: var(--black);
    transition: all 0.3s ease;
}

.stat-card:hover .icon {
    transform: translateY(-50%) scale(1.1);
    opacity: 0.15;
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Reply Box (Premium Redesign) */
.reply-section {
    margin-top: 40px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    padding: 30px;
}

.reply-box {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.reply-box:focus-within {
    box-shadow: 0 4px 12px rgba(191, 21, 52, 0.1);
    border-color: #f8d7da;
}

.reply-header {
    background: #fcfcfc;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reply-title {
    font-weight: 700;
    color: #444;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reply-toolbar {
    display: flex;
    gap: 15px;
    align-items: center;
}

.reply-textarea {
    width: 100%;
    border: none;
    padding: 20px;
    font-size: 1rem;
    color: #333;
    min-height: 150px;
    resize: vertical;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.reply-footer {
    padding: 15px 20px;
    background: #fff;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-upload-btn {
    border: 1px solid #ddd;
    color: #666;
    background-color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.file-upload-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.file-upload-input {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

/* Comment Thread Styles */
.comment-thread {
    margin-bottom: 30px;
}

.comment-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    animation: fadeIn 0.5s ease;
    align-items: center;
    /* Fix: Center avatar vertically */
}

.comment-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #888;
}

.comment-author {
    font-weight: 700;
    color: var(--black);
    font-size: 1rem;
}

.comment-body {
    color: #444;
    line-height: 1.6;
}

.comment-attachment {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.comment-attachment a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    background: #fff5f5;
    padding: 8px 15px;
    border-radius: 6px;
    transition: background 0.2s;
}

.comment-attachment a:hover {
    background: #ffebee;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero & Auth Styles */
.hero-bg {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/img/back-helpdesk-page.png') no-repeat center center/cover;
    opacity: 0.2;
    z-index: 0;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: #666;
    font-size: 0.95rem;
}

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

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 10;
}

.form-control-icon {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control-icon:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
    outline: none;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border-radius: 10px;
    margin-top: 10px;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin: 0 10px;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* AI Agent Redesign Styles */
.ai-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.ai-tab-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-tab-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.ai-tab-btn.active {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 4px 10px rgba(191, 21, 52, 0.2);
}

.ai-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.ai-tab-content.active {
    display: block;
}

/* Minimalist Thinking Timer */
.thinking-overlay {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: auto;
    height: auto;
    background: white;
    z-index: 9999;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #eee;
    animation: slideUp 0.3s ease;
}

.thinking-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.thinking-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.thinking-text {
    display: flex;
    flex-direction: column;
}

.timer-display {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    font-family: 'Courier New', monospace;
    line-height: 1;
}

.timer-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Chat Enhancements */
.chat-bubble-user {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.chat-bubble-ai {
    background: white;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.generation-time {
    font-size: 0.75rem;
    color: #999;
    text-align: right;
    margin-top: 5px;
    font-style: italic;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        width: 100%;
        padding: 15px;
    }

    .mobile-only {
        display: block !important;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header>div {
        width: 100%;
        justify-content: space-between;
    }

    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-label {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .form-input {
        border-right: none;
    }

    .updates-row {
        flex-direction: column;
    }

    .updates-label,
    .updates-date-val {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

/* Utility Classes */
.text-justify {
    text-align: justify;
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}



/* Landing Page Redesign - Premium Refinements */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    /* Start hidden */
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

/* Navbar - Glassmorphism */
.landing-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.landing-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--black);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Hero Section - Animated Gradient */
/* Hero Section - Animated Gradient */
/* Hero Section - Animated Gradient */
.landing-hero {
    display: flex;
    align-items: stretch;
    /* Stretch children to full height */
    justify-content: space-between;
    padding: 0;
    /* Remove ALL padding for full bleed */
    background: linear-gradient(-45deg, #f8f9fa, #e9ecef, #dfe4ea, #f1f2f6);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 85vh;
    position: relative;
    overflow: hidden;
}

/* ... (keyframes omitted) ... */

.hero-image {
    flex: 1.2;
    /* Give more space to image */
    display: flex;
    justify-content: flex-end;
    /* Align to right edge */
    align-items: stretch;
    /* Stretch slider */
    position: relative;
    perspective: 1000px;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    /* Full vertical height */
    max-width: 100%;
    border-radius: 0;
    /* Fully flat/integrated */
    overflow: hidden;
    box-shadow: none;
    /* No shadow for seamless integration */
    margin-left: 40px;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    padding: 80px 0 80px 40px;
    /* Add padding back to text only */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center text vertically */
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--black);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 45px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
}

/* Hero Slider */


.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    /* Fallback */
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
    /* Slow zoom effect */
}

.slide.active img {
    transform: scale(1.1);
}

/* Slider Dots */
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    width: 25px;
    border-radius: 5px;
}

/* Premium Card Hover Effect */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image:hover img {
    transform: rotateY(-2deg) rotateX(2deg) scale(1.02);
}

.landing-section {
    padding: 100px 40px;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 1.15rem;
    color: #666;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1300px;
    /* Increased slightly to fit 4 cols better */
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-top: 4px solid var(--primary-red);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--primary-red);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--black);
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
}

/* Mobile Responsiveness for Feature Grid */
@media (max-width: 1100px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Client Access - Parallax & Depth */
.client-access-section {
    background: url('/assets/img/back-helpdesk-page.png') no-repeat center center/cover;
    background-attachment: fixed;
    color: white;
    padding: 100px 40px;
    text-align: center;
    position: relative;
}

.client-access-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    /* Dark overlay */
    z-index: 1;
}

.client-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 60px;
    border-radius: 24px;
    max-width: 850px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.contact-bar {
    background: var(--primary-red);
    color: white;
    padding: 60px 40px;
    text-align: center;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.05) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 50px;
    transition: background 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer {
    background: #0a0a0a;
    color: #888;
    padding: 60px 40px;
    text-align: center;
    font-size: 0.95rem;
    border-top: 1px solid #222;
}

/* Mobile Responsiveness for Landing */
@media (max-width: 900px) {
    .landing-hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
        min-height: auto;
    }

    .hero-content {
        margin-bottom: 50px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .landing-navbar {
        padding: 15px 20px;
    }

}

.user-role {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.user-toggle:hover {
    background: #f0f0f0;
}

/* Modern Dropdowns */
.notification-dropdown,
.user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background: white;
    width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    animation: slideDown 0.2s ease-out forwards;
}

.user-dropdown-menu {
    width: 200px;
}

.user-dropdown-menu.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 700;
    color: var(--black);
    background: #fafafa;
    font-size: 0.9rem;
}

.dropdown-body {
    max-height: 350px;
    overflow-y: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary-red);
}

.dropdown-item.logout {
    color: var(--danger-color);
    border-top: 1px solid #f0f0f0;
}

.dropdown-item.logout:hover {
    background: #fff5f5;
}

/* Sidebar Refinements */
.sidebar {
    background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.05);
}

.sidebar h2 {
    font-weight: 800;
    letter-spacing: 1px;
}

.sidebar a {
    border-radius: 10px;
    margin-bottom: 5px;
    border: 1px solid transparent;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(191, 21, 52, 0.1);
    /* Low opacity red */
    color: var(--primary-red);
    border-color: rgba(191, 21, 52, 0.2);
    box-shadow: none;
    transform: translateX(5px);
}

.sidebar a.active {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 4px 15px rgba(191, 21, 52, 0.3);
}

/* Main Content Adjustment */
.main-content {
    background: #f4f6f9;
    /* Slightly cooler grey */
}

/* Landing Page Menu Refinements */
.landing-navbar {
    gap: 30px;
}

.landing-nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.landing-nav-link {
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.landing-nav-link:hover {
    color: var(--primary-red);
}

.landing-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.landing-nav-link:hover::after {
    width: 100%;
}

.btn-cta {
    background: var(--primary-red);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(191, 21, 52, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-cta:hover {
    background: #a3122d;
    /* Darker red */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 21, 52, 0.4);
    color: white;
}

/* FAQ Section */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.faq-question {
    padding: 25px 30px;
    font-weight: 700;
    color: var(--black);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    font-size: 1.1rem;
    user-select: none;
}

.faq-question i {
    color: var(--primary-red);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.5rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fcfcfc;
    color: #555;
    line-height: 1.7;
}

.faq-answer p {
    padding: 0 30px 30px 30px;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

@media (max-width: 900px) {
    .landing-nav-links {
        display: none;
        /* Hide links on mobile for now */
    }
}

/* Hero Buttons Alignment */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-buttons .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 220px;
    width: auto !important;
    /* Override global 100% width */
}

.hero-buttons .btn-primary {
    background: var(--primary-red);
    color: white;
    border: 2px solid var(--primary-red);
    box-shadow: 0 4px 15px rgba(191, 21, 52, 0.3);
}

.hero-buttons .btn-primary:hover {
    background: #a3122d;
    border-color: #a3122d;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(191, 21, 52, 0.4);
}

.hero-buttons .btn-secondary {
    background: transparent;
    color: var(--black);
    border: 2px solid var(--black);
}

.hero-buttons .btn-secondary:hover {
    background: var(--black);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* Bubble Chat Bot Styles */
.bubble-bot-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(191, 21, 52, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
}

.bubble-bot-icon:hover {
    transform: scale(1.1);
    background: #a3122d;
}

.bubble-chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.bubble-chat-header {
    background: var(--primary-red);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
}

.bubble-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-message.bot {
    background: white;
    color: var(--black);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.chat-message.user {
    background: var(--primary-red);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    box-shadow: 0 2px 5px rgba(191, 21, 52, 0.2);
}

.chat-message.loading {
    color: #888;
    font-style: italic;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.bubble-chat-footer {
    padding: 20px;
    background: white;
    border-top: 1px solid #f0f0f0;
}

.chat-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: #f8f9fa;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    padding-right: 50px;
    /* Space for button */
}

.chat-input-wrapper:focus-within {
    background: white;
    border-color: var(--primary-red);
    box-shadow: 0 4px 12px rgba(191, 21, 52, 0.15);
    transform: translateY(-1px);
}

#bubble-chat-input,
#chatInput {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    color: #333;
    border-radius: 50px;
}

#bubble-send-btn,
#sendChatBtn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-red);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 6px rgba(191, 21, 52, 0.3);
    font-size: 1.2rem;
    padding: 0;
}

#bubble-send-btn:hover,
#sendChatBtn:hover {
    background: #a3122d;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 10px rgba(191, 21, 52, 0.4);
}

#bubble-send-btn:active,
#sendChatBtn:active {
    transform: translateY(-50%) scale(0.95);
}

#sendChatBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: translateY(-50%);
}

@media (max-width: 480px) {
    .bubble-chat-window {
        width: 90%;
        right: 5%;
        bottom: 100px;
        height: 60vh;
    }
}
/* Database Tools & General Card Styles */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 5px;
}

.card-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: rgba(191, 21, 52, 0.2);
}

/* Utilities */
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 3rem; }
.mr-3 { margin-right: 1rem; }
.p-3 { padding: 1rem; }

.bg-primary { background-color: var(--primary-red) !important; }
.bg-info { background-color: #17a2b8 !important; }
.bg-dark { background-color: var(--black) !important; }
.bg-light { background-color: #f8f9fa !important; }

.text-white { color: white !important; }
.text-dark { color: var(--black) !important; }
.text-muted { color: #6c757d !important; }
.text-decoration-none { text-decoration: none !important; }

.rounded-circle { border-radius: 50% !important; }
.h-100 { height: 100% !important; }
.w-100 { width: 100% !important; }

.small { font-size: 0.85rem; }

/* Premium Card Styles for AI Agent */
.card-premium {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-premium:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header-premium {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 700;
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header-premium h5 {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header-premium i {
    color: var(--primary-red);
    font-size: 1.3rem;
}
