/* =========================================
   1) GLOBAL SETTINGS & VARIABLES
   ========================================= */
   :root {
    /* Colors & Fonts */
    --background: #ffffff;
    --neutral-white: #ffffff;
    --text-color: #333;
    --primary-color: #007bff;     
    --secondary-color: #ff7f50;
    --primary-blue: #2A4D8E;
    --secondary-red: #B31B1B;
    --background-grey: #F8F9FA;
    --text-dark: #2D3748;
    --text-light: #4A5568;
  
    /* Dashboard / Accent Variables */
    --background-color: #f7f9fc;
    --primary-hover: #0056b3;
    --dashboard-border-radius: 10px;
  
    /* Fonts */
    --font-main: 'Lato', sans-serif;
    --font-alt: 'Nunito', sans-serif;
  
    /* Misc */
    --transition-speed: 0.3s;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --border-radius: 8px;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background-color: var(--neutral-white);
    color: var(--text-dark);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
  }
  
  /* Headings */
  h1, h2, h3, h4 {
    font-weight: bold;
    margin: 10px 0;
  }
  h1 { font-size: 1.8em; color: #0b5394; }
  h2 { font-size: 1.6em; color: #0c68a0; }
  h3 { font-size: 1.4em; color: #0d7bbc; }
  h4 { font-size: 1.2em; color: #0e8fd8; }
  
  /* Lists */
  ul { margin: 10px 0; padding-left: 20px; list-style-type: disc; }
  li { margin: 5px 0; line-height: 1.5; }
  
  /* Basic Button */
  button {
    padding: 10px 15px;
    color: #fff;
    margin: 2px 4px;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform 0.2s ease;
  }
  button:hover {
    background-color: #e36743;
    transform: scale(1.05);
  }
  
  /* Keyframe Animations */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* =========================================
     2) SHARED COMPONENTS (Chat, File Upload, etc.)
     ========================================= */
  
  /* Container */
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: var(--neutral-white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
  }
  
  /* Title & Intro */
  h1#TITLE, h1 { text-align: center; }
  .intro { 
    text-align: center; 
    font-size: 1.1em; 
    color: #666; 
    margin-bottom: 20px; 
  }
  
  /* Chat Container */
  .chat-container {
    border: 1px solid #ddd;
    background-color: #f0f0f5;
    border-radius: 6px;
    padding: 10px;
    height: 40vh;
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  /* Chat Messages */
  .message {
    padding: 12px;
    border-radius: 5px;
    animation: fadeIn 0.5s forwards;
    word-wrap: break-word;
  }
  .user-message {
    background-color: #e6f7ff;
    align-self: flex-end;
    max-width: 80%;
    line-height: 1.5;
    border-radius: 8px;
  }
  .response-message {
    background-color: #c1c4c7;
    align-self: flex-start;
    max-width: 80%;
  }
  
  /* Loading Spinner */
  .loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 10px auto;
  }
  
  /* File Inputs */
  .file-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  .file-input-card {
    background: var(--neutral-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    transition: box-shadow 0.2s ease;
  }
  .file-input-card:hover { box-shadow: var(--shadow-md); }
  .file-input-label { display: block; margin-bottom: 0.25rem; }
  .label-text { 
    font-weight: 600; 
    color: var(--primary-blue); 
    margin-bottom: 0.25rem; 
  }
  .file-requirements { font-size: 0.875rem; color: var(--text-light); }
  .file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
  }
  .file-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
  }
  .file-input::-webkit-file-upload-button { visibility: hidden; }
  .file-input::before {
    content: 'Choose File';
    display: inline-block;
    background: var(--primary-blue);
    color: var(--neutral-white);
    padding: 0.5rem 1rem;
    border-radius: calc(var(--border-radius) - 2px);
    margin-right: 1rem;
    font-weight: 500;
    cursor: pointer;
  }
  .file-input:hover::before { background: #1a3d7a; }
  .file-name {
    font-size: 0.875rem;
    color: var(--text-light);
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
  }
  .file-name.file-selected { color: var(--primary-color); font-weight: 500; }
  
  /* User Prompt Section */
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
  }
  .form-group label { font-weight: 600; color: var(--text-dark); }
  .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f8f9fa;
    font-size: 1em;
    resize: vertical;
    line-height: 1.5;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
  }
  .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0,123,255,0.5);
  }
  
  /* Action Buttons */
  .form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  .form-actions button {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 12px;
  }
  #sendButton { background-color: var(--primary-color); }
  #sendButton:hover { background-color: #0056b3; transform: scale(1.05); }
  .reset-all { background-color: #d9534f; color: #fff; }
  .reset-all:hover { background-color: #c9302c; transform: scale(1.05); }
  
  /* =========================================
     3) LAYOUT: SIDEBAR & CHAT CONTENT
     ========================================= */
  .page-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--background-grey);
  }
  
  .sidebar {
    width: 280px;
    background-color: var(--neutral-white);
    border-right: 1px solid #e0e0e0;
    padding: 20px;
    overflow-y: auto;
  }
  
  .sidebar h3 {
    font-family: 'Georgia', serif;
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
  }
  .ellipsis-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary-hover);
  }
  
  .summary-menu {
    margin-top: 5px;
    display: none;
    flex-direction: column;
  }

  .summary-menu button {
    background-color: var(--primary-blue);
    color: var(--neutral-white);
    border: none;
    padding: 6px 10px;
    margin: 2px 0;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color var(--transition-speed);
  }

  .summary-menu button:hover {
    background-color: var(--primary-hover);
  }

  #sessionList { margin-bottom: 20px; }
  
  .chat-session-item {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafafa;
    transition: background-color 0.3s ease, border-color 0.3s ease;
  }
  .chat-session-item:hover { background-color: #e9f1f7; border-color: #c0d4ea; }
  .active-session { background-color: #d0eaff; border-color: #8ac1ff; }
  .delete-session-btn {
    background: none;
    border: none;
    color: #d9534f;
    font-size: 0.9rem;
    cursor: pointer;
  }
  
  .chat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
  }
  
  /* =========================================
     3) HOME PAGE (hero, info cards, etc.)
     ========================================= */

  /* ===== Accessibility Features ===== */
  .skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    padding: 8px;
    background: var(--primary-blue);
    color: white;
    z-index: 100;
    transition: top var(--transition-speed);
  }

  .skip-link:focus {
    top: 0;
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
  }

/* ===== Hero Section (Smaller, White Background) ===== */
.hero-section {
  height: 30vh;             /* Reduce height */
  min-height: 150px;        /* Ensure it's not too small */
  background-color: white;  /* White background instead of image */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;            /* Adds spacing inside */
}

/* Hero Image (Centered, Smaller) */
.hero-image {
  max-width: 60%;           /* Ensure image isn't too large */
  max-height: 150px;        /* Control height */
  object-fit: contain;      /* Ensure it looks good */
}

/* Adjust for smaller screens */
@media (max-width: 768px) {
  .hero-section {
    height: 20vh;           /* Reduce height further */
    padding: 10px;
  }

  .hero-image {
    max-width: 70%;         /* Slightly larger image on small screens */
    max-height: 100px;
  }
}

  /* ===== Authentication Navigation ===== */
  .auth-nav {
    background: var(--neutral-white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
  }

  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    padding: 0 2rem;
  }

  .auth-btn {
    padding: 0.95rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition-speed);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .auth-btn.primary {
    background: var(--primary-blue);
    color: var(--neutral-white);
  }

  .auth-btn.secondary {
    background: var(--secondary-red);
    color: var(--neutral-white);
  }

  .auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  /* ===== Main Content ===== */
  .content-section {
    padding: 4rem 2rem;
    background: var(--background-grey);
  }

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

  .section-title {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
  }

  .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-red);
  }

  .highlighted-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--neutral-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
  }

  /* ===== Feature List ===== */
  .benefits {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
  }

  .benefit-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--neutral-white);
    border-left: 4px solid var(--primary-blue);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform var(--transition-speed);
  }

  .benefit-item:hover {
    transform: translateX(10px);
  }

  .icon {
    font-weight: 700;
    color: var(--secondary-red);
  }

  /* ===== USP Section ===== */
  .usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
  }

  .usp-card {
    background: var(--neutral-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed);
  }

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

  .usp-title {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 1rem;
  }

  /* ===== Footer ===== */
  .page-footer {
    background: var(--primary-blue);
    color: var(--neutral-white);
    padding: 2rem;
  }

  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
  }

  .footer-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-link {
    color: var(--neutral-white);
    text-decoration: none;
    transition: opacity var(--transition-speed);
  }

  .footer-link:hover {
    opacity: 0.8;
    text-decoration: underline;
  }

  @media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
  }
    
  /* =========================================
     4) SIGNUP PAGE
     ========================================= */
  #signupContainer {
    max-width: 400px;
    margin: 80px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  
  #signupContainer h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 600;
  }
  
  /* The signup form container */
  #signupForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  #signupForm .form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 8px;
  }
  #signupForm .form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
  }
  #signupForm input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    background: #fafafa;
    box-sizing: border-box;
  }
  #signupForm input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
  }
  
  /* The signup button */
  #signupButton {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  #signupButton:hover {
    background-color: #0056b3;
    transform: scale(1.03);
  }
  
  /* Signup success/error message */
  #signupMessage {
    margin-top: 15px;
    font-weight: bold;
    min-height: 1.2em; /* keep space if empty */
  }
  
  /* =========================================
     5) LOGIN PAGE
     ========================================= */
  #loginContainer {
    max-width: 400px;
    margin: 80px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  
  #loginContainer h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 600;
  }
  
  #loginForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  #loginForm .form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
  }
  #loginForm .form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
  }
  #loginForm input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    background: #fafafa;
    box-sizing: border-box;
  }
  #loginForm input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
  }
  
  /* The login button */
  #loginButton {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  #loginButton:hover {
    background-color: #0056b3;
    transform: scale(1.03);
  }
  
  /* Login success/error message */
  #loginMessage {
    margin-top: 15px;
    font-weight: bold;
    min-height: 1.2em;
  }
  
  /* =========================================
     6) PROFILE PAGE
     ========================================= */
  /* Profile icon styling */
  #profileIcon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover; 
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }
  
  /* Position the profile button in the top-right corner */
  #profileButton {
    position: fixed;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
  }
  
  #profilePage {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif; /* if you want a different font from global */
    color: #333;
  }
  
  #profilePage h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 24px;
  }
  
  #profilePage .profile-section {
    margin-bottom: 30px;
  }
  
  #profilePage .profile-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    color: #555;
  }
  
  #profilePage .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  #profilePage .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  #profilePage .form-group.full-width {
    flex: 100%;
  }
  
  #profilePage .form-group label {
    font-weight: bold;
  }
  
  #profilePage .form-group input,
  #profilePage .form-group textarea {
    width: 95%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background-color: #f9f9f9;
  }
  #profilePage textarea {
    width: 95%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;  
    }
  
  #profilePage button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    align-self: flex-end;
  }
  #profilePage button:hover {
    background-color: #0056b3;
  }
  
  /* =========================================
     7) FEEDBACK PAGE
     ========================================= */
  #feedbackButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
  }
  
  #feedbackIcon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  #feedbackIcon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  }
  
  .feedback-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    font-family: var(--font-main);
    color: #333;
  }
  
  .feedback-title {
    font-size: 2rem;
    color: #0b5394;
    margin-bottom: 10px;
  }
  
  .feedback-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
  }
  
  .feedback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .feedback-form .form-group {
    text-align: left;
  }
  
  .feedback-form .form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
  }
  
  .feedback-form textarea {
    width: 95%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
  }
  .feedback-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
  }
  
  /* Feedback form submit button */
  .btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  .btn-submit:hover {
    background-color: #0056b3;
    transform: scale(1.05);
  }
  
  .feedback-message {
    margin-top: 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
  }

/* =========================================
   Dashboard PAGE - Updated for Responsiveness
   ========================================= */

/* Dashboard Header */
.dashboard-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.user-info {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

/* Updated User Avatar Styling */
.user-avatar {
  width: 100px;               /* Increased size for better visibility */
  height: 100px;              /* Matches width for a perfect circle */
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
  border: 2px solid var(--primary-blue); /* Uses your primary blue variable */
  box-shadow: var(--shadow-sm);
}

.user-details h1 {
  margin: 0;
  font-size: 24px;
  color: var(--primary-blue);
}

.user-details p {
  margin: 4px 0 0;
  font-size: 16px;
  color: var(--text-color);
}

/* Logout Button in Header */
.logout-btn {
  background-color: #d9534f;
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  padding: 10px 16px;
  font-size: 16px;
  cursor: pointer;
  transition: background var(--transition-speed);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logout-btn:hover,
.logout-btn:focus {
  background-color: #c9302c;
  outline: none;
}

/* Main Dashboard Container */
.dashboard-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
}

/* Primary Features Section (Main Features) */
.primary-features {
  margin: 20px auto;
  padding: 20px;
  text-align: center;
}

/* Grid container for primary features */
.primary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 1fr);
  gap: 20px;
}

/* Primary feature buttons */
.primary-features button {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover, #0056b3));
  font-size: 20px;
  padding: 30px;
  border: none;
  border-radius: var(--dashboard-border-radius, 10px);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-speed), background var(--transition-speed);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.primary-features button:hover,
.primary-features button:focus {
  transform: scale(1.05);
  outline: none;
}


/* Secondary Features Section (Other Features) */
.secondary-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
  margin-top: 30px;
}
.secondary-features button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  padding: 10px;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--transition-speed), transform var(--transition-speed);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 70px;
}
.secondary-features button i {
  font-size: 28px;
}
.secondary-features button span {
  font-weight: 500;
}
.secondary-features button:hover,
.secondary-features button:focus {
  background-color: var(--primary-hover, #0056b3);
  transform: scale(1.03);
  outline: none;
}
/* Responsive Design */
@media (max-width: 1024px) {
  .primary-features {
    flex-direction: column;    /* Stack primary buttons on smaller screens */
    align-items: center;
  }

  .primary-features button {
    max-width: 100%;
  }

  .secondary-features {
    flex-direction: column;    /* Stack secondary buttons */
    align-items: center;
  }

  .secondary-features button {
    max-width: 100%;
  }
}
/* =========================================
   contact
   ========================================= */
   .contact-card {
    background: #ffffff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
    border: 3px solid #007bff;
}

.contact-card h2 {
    margin: 10px 0;
    color: #007bff;
}

.contact-card p {
    margin: 5px 0;
    font-size: 1rem;
}

.contact-card a {
    color: #ff7f50;
    text-decoration: none;
    font-weight: bold;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* =========================================
   Responsive Media Queries
   ========================================= */
@media (max-width: 768px) {
  .dashboard-header {
    padding: 15px;
  }
  .user-avatar {
    width: 80px;
    height: 80px;
    margin-right: 10px;
  }
  .user-details h1 {
    font-size: 20px;
  }
  .user-details p {
    font-size: 14px;
  }
  .logout-btn {
    padding: 8px 12px;
    font-size: 14px;
  }
  .primary-features button {
    font-size: 18px;
    padding: 25px;
    max-width: 350px;
  }
  .secondary-features {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    padding: 15px;
  }
  .secondary-features button {
    font-size: 16px;
    padding: 15px;
    min-height: 100px;
  }
  @media (max-width: 768px) {
    .primary-grid {
      grid-template-columns: 1fr;  /* Stack buttons on smaller screens */
    }
  }
}

@media (max-width: 480px) {
  .dashboard-container {
    padding: 10px;
  }
  .primary-features button {
    font-size: 16px;
    padding: 20px;
    max-width: 300px;
  }
  .secondary-features {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }
  .secondary-features button {
    font-size: 14px;
    padding: 10px;
    min-height: 80px;
  }
}


  /* =========================================
     9) RESPONSIVE MEDIA QUERIES
     ========================================= */
/* =========================================
   5) RESPONSIVE MEDIA QUERIES
   ========================================= */
   @media (max-width: 1024px) {
    .page-wrapper { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid #e0e0e0; }
  }
  
  @media (max-width: 768px) {
    .auth-buttons { text-align: center; margin-bottom: 15px; }
    .form-actions { flex-direction: column; }
    .chat-container { height: 30vh; }
    .file-input-wrapper { flex-direction: column; align-items: stretch; }
    .file-input::before { width: 100%; text-align: center; margin-right: 0; margin-bottom: 0.5rem; }
    .file-name { max-width: 100%; text-align: center; }
  }
  
  @media (max-width: 480px) {
    .container { width: 95%; padding: 15px; }
    .file-input::before { content: 'Upload'; padding: 0.4rem 0.8rem; }
    .form-actions button { width: 100%; }
    #profilePage .form-row { flex-direction: column; }
    #profilePage button { width: 100%; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
  }
  



