/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #000000;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%); */
    background: rgb(255, 255, 255);
    background-size: 400% 400%;
    /* animation: gradientShift 15s ease infinite; */
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

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

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

/* Header styles */
.header {
    background: #ffffff !important; /* Force white background */
    border: none;
    border-radius: 15px;
    box-shadow: none;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    color: rgb(0, 0, 0);
}



/*
.header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: rgb(0, 0, 0);
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: nowrap; 
}

.header-actions .btn,
.header-actions .btn-support,
.btn-home {
    color: rgba(8, 7, 7, 0.685);
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 8px;
}

.header-actions .btn.active,
.header-actions .btn-support.active,
.btn-home.active {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}
*/

  .logo {
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
  }
/* Center logo only inside login page container */
.login-container .btn-home {
    display: flex;
    justify-content: center;
    margin-bottom: 20px; /* optional spacing below logo */
  }
  
  .login-container .logo {
    height: 60px;  /* adjust as needed */
    width: auto;
  }
  
  .header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .btn-support,
  .btn-secondary {
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
  }
  
  .btn-secondary {
    background-color: #ff2c2c;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
  }
  


/* Login page styles */
.login-container {
    max-width: 600px;
    margin: 100px auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#logoutBtn{
    color: white;
}

.login-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.login-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #34495e;
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fdfdfd;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
    background: white;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.9rem 1.5rem;
    transition: all 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-home{
    background: none;
    border: none;
    color: #3498db;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    min-width: auto;
}

.btn-support {
    background: none;
    border: none;
    color: #3498db;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    min-width: auto;
    display: inline-flex;  
    align-items: center;   
    gap: 3px;
}

.btn-support:hover {
    color: #2980b9;
    text-decoration: underline;
    transform: none;
    background: none;
}

.btn-secondary {
    background-color:#ff2e2e;
    color: rgb(30, 30, 30);
}

.btn-secondary:hover {
    background-color: #ea4a4a;
    transform: translateY(-1px);
}

/* Dashboard styles */
.dashboard-content {
    width: 100%;
    max-width: 1200px;
    padding: 40px 30px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05); /* subtle glass effect */
    backdrop-filter: blur(15px); /* glassmorphism blur */
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 50px;
    color: white;
}

.welcome-section {
    text-align: center;
}

.welcome-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome-icon svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.welcome-icon svg:hover {
    transform: scale(1.2);
}

.welcome-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
    /* text-shadow: 0 2px 2px rgba(0,0,0,0.3); */
}

.welcome-section p {
    font-size: 1.25rem;
    color: #363535;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.dashboard-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.link-card {
    background: rgba(255, 255, 255, 0.1); /* subtle glass card */
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}
.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    background: rgba(255, 255, 255, 0.15);
}

.card-icon {
    margin-bottom: 20px;
}

.card-icon svg {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.link-card:hover .card-icon svg {
    transform: scale(1.2);
}

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

.link-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000000;;
}

.link-card p {
    font-size: 1rem;
    color: #303030;
    margin-bottom: 20px;
    line-height: 1.5;
}

.link-card .btn-primary {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: #efefef;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-card .btn-primary:hover {
    background: linear-gradient(135deg,#2ecc71,#3498db);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Table styles */
.content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.contain-all-content {
    width: 100%;
    min-height: 100vh;              /* Full viewport height */
    display: flex;
    justify-content: center;        /* Center horizontally */
    align-items: flex-start;        /* Start from top */
    padding: 40px 20px;
    background: white;
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: auto;
    position: relative;
    /* Add transition for smooth width/margin/padding changes when chatbot opens/closes */
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                margin-right 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .contain-all-content.center-vertical {
    align-items: center;
}

.table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    position: sticky;
    top: 0;
}

.data-table tr:hover {
    background-color: #f5f5f5;
}

.data-table tr:nth-child(even) {
    background-color: #fafafa;
}

.data-table tr:nth-child(even):hover {
    background-color: #f0f0f0;
}

/* Status badges */
.status-approved {
    background-color: #d4edda;
    color: #155724;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Loading and error states */
.loading {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    font-style: italic;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    border: 1px solid #f5c6cb;
    display: none;
}

.error-message.show {
    display: block;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .dashboard-links {
        grid-template-columns: 1fr;
    }
    
    .welcome-section h2 {
        font-size: 2rem;
    }
    
    .welcome-section p {
        font-size: 1rem;
    }
    
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
}

/* Chat Modal Styles */
.chat-modal {
    display: none;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: transparent;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    margin: 0;
}
.btn-login {
    margin-top: 15px;
    width: 160px;
    padding: 10px;
    /* background: linear-gradient(135deg, #156e0b, #16d265); */
    background:rgb(9, 91, 255) ;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease-in-out; /* smoother and applies to background & shadow */
}

.btn-login:hover {
    /* background: linear-gradient(135deg, #16d265, #156e0b); */
    background: #007bff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); /* subtle lift on hover */
    transform: translateY(-2px); /* slight lift effect */
}



.chat-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-modal-content {
    width: 100%;
    max-width: 1150px;
    height: calc(100vh - 250px);
    max-height: 800px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.chat-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chat-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.chat-header p {
    margin: 5px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

.chat-close-btn {
    display: none;

}

.chat-close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.chat-messages {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 80%;
    word-wrap: break-word;
}

.message.bot-message {
    align-self: flex-start;
    margin-right: auto;
}

.message.user-message {
    align-self: flex-end;
    margin-left: auto;
}

.message-content {
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 20px 20px 20px 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.message.user-message .message-content {
    background: #3498db;
    color: white;
    border-radius: 20px 20px 6px 20px;
}

.message-tail {
    position: absolute;
    width: 0;
    height: 0;
}

.bot-tail {
    left: -8px;
    top: 20px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #f8f9fa;
}

.user-tail {
    right: -8px;
    top: 20px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #3498db;
}

.message-content p {
    margin: 0;
    color: #333333;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message.user-message .message-content p {
    color: white;
}

.chat-input-container {
    padding: 20px 30px;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 15px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    outline: none;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.chat-input:focus {
    border-color: #33a9f7;
    box-shadow: 0 0 0 3px rgba(247, 194, 21, 0.1);
    background: white;
}

.chat-send-btn {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

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

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid #f7c215;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Modal animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive design for chat modal */
@media (max-width: 768px) {
    .chat-modal-content {
        width: 95%;
        height: 95%;
        max-height: none;
    }
    
    .chat-header {
        padding: 15px 20px;
    }
    
    .chat-header h3 {
        font-size: 20px;
    }
    
    .chat-messages {
        padding: 20px;
    }
    
    .chat-input-container {
        padding: 15px 20px;
    }
    
    .message {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 50px auto;
        padding: 1.5rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .header-actions .btn {
        width: 100%;
    }
    
    .chat-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .chat-header {
        padding: 12px 15px;
    }
    
    .chat-header h3 {
        font-size: 18px;
    }
    
    .chat-messages {
        padding: 15px;
    }
    
    .chat-input-container {
        padding: 12px 15px;
    }
}


/* Make thinking messages smaller */
.message.bot-message.avyott-message .message-content {
    padding: 8px 12px; /* Reduced from 16px 20px */
    font-size: 14px; /* Smaller text */
}

.message.bot-message.avyott-message .message-content p {
    font-size: 14px; /* Smaller text */
}

/* Make the loading spinner smaller */
.message.bot-message.avyott-message .loading-spinner {
    width: 16px; /* Reduced from 20px */
    height: 16px; /* Reduced from 20px */
    border-width: 2px; /* Reduced from 3px */
}

/* Fix extra padding on thinking messages caused by line-height */
.message.bot-message.avyott-message .message-content p {
    line-height: 20px;
    padding-top: 1px;
}
.loader1 {
    width: 28px;
    aspect-ratio: 2;
    --_g: no-repeat radial-gradient(circle closest-side, #000 90%, #0000);
    background: 
        var(--_g) 0%   50%,
        var(--_g) 50%  50%,
        var(--_g) 100% 50%;
    background-size: calc(100%/3) 50%;
    animation: l3 1s infinite linear;
}

.message.loading-message .loader1 {
    width: 40px;
    aspect-ratio: 2;
    --_g: no-repeat radial-gradient(circle closest-side, #000 90%, #0000);
    background: 
        var(--_g) 0%   50%,
        var(--_g) 50%  50%,
        var(--_g) 100% 50%;
    background-size: calc(100%/3) 50%;
    animation: l3 1s infinite linear;
}

@keyframes l3 {
    20% { background-position: 0% 0%, 50% 50%, 100% 50%; }
    40% { background-position: 0% 100%, 50% 0%, 100% 50%; }
    60% { background-position: 0% 50%, 50% 100%, 100% 0%; }
    80% { background-position: 0% 50%, 50% 50%, 100% 100%; }
}

@keyframes slideInFromRight {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideOutToRight {
    from { 
        transform: translateX(0); 
        opacity: 1; 
    }
    to { 
        transform: translateX(100%); 
        opacity: 0; 
    }
}


#avyott-chat-modal.chat-modal {
    position: fixed !important;
    right: 0 !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    backdrop-filter: blur(0);
    z-index: 10000 !important;
    pointer-events: auto !important;
    transform: translateX(100%) !important;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#avyott-chat-modal .chat-modal-content,
#avyott-chat-modal .chat-header,
#avyott-chat-modal .chat-messages,
#avyott-chat-modal .chat-input-container {
    position: relative !important;
    transform: none !important;
    transition: none !important;
}

#avyott-chat-modal.chat-modal.fullscreen {
    width: calc(100vw - 84px) !important;
    left: 42px !important;
    right: 42px !important;
    border-radius: 24px !important; 
}


#avyott-chat-modal.chat-modal:not(.fullscreen):not(.minimizing) {
    width: 420px !important;
    right: 0 !important;
    border-radius: 24px 24px 24px 24px !important;
    box-sizing: border-box !important;
}

#avyott-chat-modal.chat-modal.minimizing {
    width: auto !important;
    left: auto !important;
    right: 0 !important;
}

#avyott-chat-modal.chat-modal.minimizing:not(.fullscreen) {
    width: auto !important;
    left: auto !important;
}

#avyott-chat-modal.chat-modal:not(.fullscreen):not(.minimizing):not([style*="left"]) {
    left: auto;
}

#avyott-chat-modal.chat-modal.fullscreen.show {
    transform: translateX(0) !important;
    left: 42px !important;
    right: 42px !important;
}

body.chat-open {
    overflow: visible;
}

body.chat-open .contain-all-content {
    overflow-x: auto !important;
    overflow-y: auto !important;
    width: calc(100% - 420px) !important;
    margin-right: 420px !important;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), margin-right 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.chat-open .dashboard-content {
    width: 100% !important;
    max-width: 100% !important;
}

#avyott-chat-modal.chat-modal.show {
    transform: translateX(0) !important;
    display: block !important;
}

#avyott-chat-modal.chat-modal.show:not(.fullscreen) {
    right: 0 !important;
}

#avyott-chat-modal .chat-modal-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

#avyott-chat-modal.chat-modal.fullscreen .chat-modal-content {
    width: 100% !important;
    max-width: 100% !important;
}

#avyott-chat-modal .chat-header {
    margin-top: 0;
    padding-top: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#avyott-chat-modal .icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

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

#avyott-message-input:focus {
    border-color: #1E90FF;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.12);
}

#avyott-send-button:hover {
    background-color: #0066CC;
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(30, 144, 255, 0.45);
}

#avyott-send-button:active {
    transform: scale(0.96);
}

.contain-all-content {
    scrollbar-width: thin;
    scrollbar-color: #1E90FF #f0f0f0;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: auto;
    width: 100%;
}

.contain-all-content::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.contain-all-content::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 5px;
}

.contain-all-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1E90FF 0%, #0066CC 100%);
    border-radius: 5px;
    border: 2px solid #f0f0f0;
}

.contain-all-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0066CC 0%, #004499 100%);
}

.dashboard-content {
    pointer-events: auto;
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: fit-content;
}

body.chat-open .dashboard-content {
    width: 100%;
    min-width: fit-content;
}

#avyott-messages::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

#avyott-messages::-webkit-scrollbar-track {
    background: #f8f9fa;
}

#avyott-messages::-webkit-scrollbar-thumb {
    background: #1E90FF;
    border-radius: 3px;
}

#avyott-messages::-webkit-scrollbar-thumb:hover {
    background: #0066CC;
}

.message-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1024px) {
    #avyott-chat-modal {
        width: calc(100vw - 84px) !important; 
        left: 42px !important;
        right: 42px !important;
        max-width: 600px !important; 
    }
    
    #avyott-chat-modal.chat-modal:not(.fullscreen):not(.minimizing) {
        width: calc(100vw - 84px) !important;
        max-width: 420px !important;
        left: auto !important;
        right: 0 !important;
    }
    
    #avyott-chat-modal.chat-modal.fullscreen {
        width: calc(100vw - 84px) !important;
        left: 42px !important;
        right: 42px !important;
        max-width: none !important;
    }
    
    body.chat-open .contain-all-content {
        width: calc(100% - 420px) !important;
        margin-right: 420px !important;
        transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), margin-right 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

@media (max-width: 768px) {
    #avyott-chat-modal {
        width: calc(100vw - 84px) !important; 
        left: 42px !important;
        right: 42px !important;
        border-radius: 24px !important; 
        border: 3px solid #1E90FF !important; 
        max-height: calc(100vh - 120px) !important; 
    }
    
    #avyott-toggle-size {
        display: none !important;
    }
    
    #avyott-chat-modal.chat-modal:not(.fullscreen):not(.minimizing) {
        width: calc(100vw - 84px) !important;
        max-width: calc(100vw - 84px) !important;
        left: 42px !important;
        right: 42px !important;
    }
    
    #avyott-chat-modal.chat-modal.fullscreen {
        width: calc(100vw - 84px) !important;
        left: 42px !important;
        right: 42px !important;
    }
    
    body.chat-open .contain-all-content {
        width: 0 !important;
        margin-right: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), margin-right 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    #avyott-chat-modal .chat-header {
        padding: 14px 18px !important;
    }
    
    #avyott-messages {
        padding: 18px !important;
        max-height: calc(100vh - 250px) !important; 
        overflow-y: auto !important;
    }
    
    #avyott-chat-modal .chat-input-container {
        padding: 14px 18px !important;
    }
    
    #avyott-message-input {
        padding: 11px 15px !important;
        font-size: 15px !important;
    }
    
    #avyott-send-button {
        width: 42px !important;
        height: 42px !important;
    }
}

@media (max-width: 480px) {
    #avyott-chat-modal {
        width: calc(100vw - 84px) !important; 
        left: 42px !important;
        right: 42px !important;
        max-height: calc(100vh - 100px) !important; 
        border-radius: 20px !important; 
    }
    
    #avyott-chat-modal.chat-modal:not(.fullscreen):not(.minimizing) {
        width: calc(100vw - 84px) !important;
        left: 42px !important;
        right: 42px !important;
    }
    
    #avyott-chat-modal.chat-modal.fullscreen {
        width: calc(100vw - 84px) !important;
        left: 42px !important;
        right: 42px !important;
    }
    
    
    body.chat-open .contain-all-content {
        width: 0 !important;
        margin-right: 0 !important;
        overflow: hidden !important;
        transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), margin-right 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    #avyott-chat-modal .chat-header h3 {
        font-size: 17px !important;
    }
    
    #avyott-chat-modal .chat-header p {
        font-size: 12px !important;
    }
    
    #avyott-messages {
        padding: 14px !important;
        gap: 14px !important;
        max-height: calc(100vh - 230px) !important; 
    }
    
    #avyott-chat-modal .message-content {
        font-size: 13px !important;
        padding: 10px 14px !important;
        max-width: 90% !important;
    }
    
    #avyott-chat-modal .chat-input-container {
        padding: 12px 14px !important;
    }
    
    #avyott-message-input {
        padding: 10px 14px !important;
        font-size: 14px !important;
    }
}
