  /* ===== VARIABLES ===== */
  :root {
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --secondary: #ec4899;
    --light-bg: #f9fafb;
    --light-text: #1f2937;
    --light-border: #e5e7eb;
    --light-hover: #f0f4ff;
    --dark-bg: #1f2937;
    --dark-secondary: #374151;
    --dark-text: #f3f4f6;
    --dark-border: #4b5563;
    --dark-hover: #2d3748;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 0.75rem;
  }

  [data-theme="dark"] {
    --primary: #818cf8;
    --primary-dark: #6366f1;
  }

  /* ===== BASE STYLES ===== */
  * { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    transition: var(--transition-normal);
  }

  body {
    font-family: 'Segoe UI', 'Poppins', sans-serif;
    background: var(--light-bg);
    display: flex;
    height: 100vh;
    color: var(--light-text);
    overflow: hidden;
  }

  body[data-theme="dark"] {
    background: var(--dark-bg);
    color: var(--dark-text);
  }

  /* ===== SIDEBAR STYLES ===== */
  .sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid var(--light-border);
    display: flex;
    flex-direction: column;
    padding: 25px 15px;
    box-shadow: var(--shadow-sm);
    overflow-y: auto;
    z-index: 10;
    transition: transform 0.3s ease;
  }

  body[data-theme="dark"] .sidebar {
    background: var(--dark-secondary);
    border-right: 1px solid var(--dark-border);
  }

  .sidebar h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 35px;
    color: var(--primary);
    text-align: center;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .sidebar h1 i {
    font-size: 20px;
  }

  .user-profile {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 12px;
    background: var(--light-hover);
    border-radius: 12px;
  }

  body[data-theme="dark"] .user-profile {
    background: var(--dark-hover);
  }

  .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
  }

  .user-info {
    flex: 1;
  }

  .user-info .name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 2px;
  }

  .user-info .role {
    font-size: 12px;
    color: #666;
  }

  body[data-theme="dark"] .user-info .role {
    color: #aaa;
  }

  .menu-button {
    background: none;
    border: none;
    text-align: left;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--light-text);
    width: 100%;
  }

  body[data-theme="dark"] .menu-button {
    color: var(--dark-text);
  }

  .menu-button:hover {
    background: var(--light-hover);
  }

  body[data-theme="dark"] .menu-button:hover {
    background: var(--dark-hover);
  }

  .menu-button.active {
    background: var(--primary);
    color: white;
  }

  .menu-button.active:hover {
    background: var(--primary-dark);
  }

  .menu-button i {
    font-size: 18px;
    width: 24px;
    text-align: center;
  }

  .chat-history {
    margin-top: 30px;
  }

  .chat-history h3 {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
    padding: 0 12px;
  }

  body[data-theme="dark"] .chat-history h3 {
    color: #aaa;
  }

  .chat-item {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  body[data-theme="dark"] .chat-item {
    background: var(--dark-hover);
  }

  .chat-item:hover {
    background: #e6e6e6;
    transform: translateY(-2px);
  }

  body[data-theme="dark"] .chat-item:hover {
    background: #2d3748;
  }

  .chat-item i {
    color: var(--primary);
    font-size: 16px;
  }

  .theme-toggle {
    margin-top: auto;
    display: flex;
    justify-content: center;
    padding: 15px 0;
  }

  .theme-toggle button {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
  }

  body[data-theme="dark"] .theme-toggle button {
    color: #aaa;
  }

  .theme-toggle button:hover {
    background: var(--light-hover);
    color: var(--primary);
  }

  body[data-theme="dark"] .theme-toggle button:hover {
    background: var(--dark-hover);
    color: var(--primary);
  }

  /* ===== MAIN CONTENT STYLES ===== */
  .chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;  /* Yeni eklendi */
    overflow: hidden;
  }
  

  .header-bar {
    padding: 15px 25px;
    border-bottom: 1px solid var(--light-border);
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
  }

  body[data-theme="dark"] .header-bar {
    background: var(--dark-secondary);
    border-bottom: 1px solid var(--dark-border);
  }

  .header-bar .title {
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .header-bar .title i {
    color: var(--primary);
  }

  .auth-buttons {
    display: flex;
    gap: 10px;
  }

  .auth-buttons button {
    background: transparent;
    border: 1px solid var(--primary);
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--primary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
  }

  .auth-buttons button:hover {
    background: var(--primary);
    color: white;
  }

  .auth-buttons button:last-child {
    background: var(--primary);
    color: white;
  }

  .auth-buttons button:last-child:hover {
    background: var(--primary-dark);
  }

  /* ===== TAB CONTENT STYLES ===== */
  .tab-content {
    display: none;
    padding: 25px;
    overflow-y: auto;
    flex: 1;
  }
  
  .tab-content.active {
    display: flex;
    flex-direction: column;
  }
  /* ===== CHATBOT TAB STYLES ===== */
  .chat-body {
    flex: 1;
    padding: 25px;
    background: var(--light-bg);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  body[data-theme="dark"] .chat-body {
    background: var(--dark-bg);
  }

  .message {
    max-width: 70%;
    padding: 16px 20px;
    border-radius: 18px;
    font-size: 15px;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.4s ease-out;
    position: relative;
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.5;
  }

  .message.user {
    align-self: flex-end;
    background-color: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
  }

  .message.assistant {
    align-self: flex-start;
    background-color: white;
    color: var(--light-text);
    border-bottom-left-radius: 4px;
  }

  body[data-theme="dark"] .message.assistant {
    background-color: var(--dark-secondary);
    color: var(--dark-text);
  }

  .message-actions {
    position: absolute;
    right: 10px;
    bottom: -28px;
    display: flex;
    gap: 8px;
  }

  .message-action {
    font-size: 12px;
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  body[data-theme="dark"] .message-action {
    background: var(--dark-secondary);
  }

  .message-action:hover {
    background: var(--primary);
    color: #fff;
  }

  .message-action i {
    font-size: 10px;
  }

  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 5px;
  }

  .suggestion-chip {
    background: white;
    border: 1px solid var(--light-border);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--light-text);
  }

  body[data-theme="dark"] .suggestion-chip {
    background: var(--dark-secondary);
    border: 1px solid var(--dark-border);
    color: var(--dark-text);
  }

  .suggestion-chip:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
  }

  .chat-input {
    display: flex;
    background: #fff;
    padding: 15px 25px;
    border-top: 1px solid var(--light-border);
    position: relative;
  }

  body[data-theme="dark"] .chat-input {
    background: var(--dark-secondary);
    border-top: 1px solid var(--dark-border);
  }

  .chat-input-wrapper {
    display: flex;
    flex: 1;
    position: relative;
    align-items: center;
    border: 1px solid var(--light-border);
    border-radius: 24px;
    background: var(--light-bg);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
  }

  body[data-theme="dark"] .chat-input-wrapper {
    border: 1px solid var(--dark-border);
    background: var(--dark-bg);
  }

  .chat-input-wrapper:focus-within {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
    border-color: var(--primary);
  }

  .chat-input input {
    flex: 1;
    padding: 14px 20px;
    font-size: 15px;
    border: none;
    border-radius: 24px;
    outline: none;
    background: transparent;
    color: var(--light-text);
  }

  .chat-input textarea {
    flex: 1;
    padding: 12px 20px;
    font-size: 15px;
    border: none;
    border-radius: 24px;
    outline: none;
    background: transparent;
    color: var(--light-text);
    resize: none;
    height: auto;
    min-height: 44px; /* Bu önemli */
    max-height: 120px;
    overflow-y: auto;
    line-height: 1.4;
    font-family: inherit;
    box-sizing: border-box;
  }
    
  body[data-theme="dark"] .chat-input textarea {
    color: var(--dark-text);
  }
  

  body[data-theme="dark"] .chat-input input {
    color: var(--dark-text);
  }

  .chat-input button {
    background: var(--primary);
    border: none;
    padding: 10px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 6px;
  }

  .chat-input button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
  }

  /* ===== TIMER TAB STYLES ===== */
  .exam-tabs {
    display: flex;
    justify-content: center;
    margin: 20px 0 30px;
    gap: 15px;
  }

  .exam-tabs button {
    padding: 12px 25px;
    background: white;
    border: 1px solid var(--primary);
    border-radius: 12px;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
  }

  body[data-theme="dark"] .exam-tabs button {
    background: var(--dark-secondary);
  }

  .exam-tabs button:hover {
    background: var(--light-hover);
    transform: translateY(-2px);
  }

  body[data-theme="dark"] .exam-tabs button:hover {
    background: var(--dark-hover);
  }

  .exam-tabs button.active {
    background: var(--primary);
    color: white;
  }

  .countdown {
    font-size: 32px;
    font-weight: bold;
    margin-top: 20px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    color: var(--primary);
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
  }

  body[data-theme="dark"] .countdown {
    background: var(--dark-secondary);
  }

  .countdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
  }

  .countdown-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--light-text);
  }

  body[data-theme="dark"] .countdown-title {
    color: var(--dark-text);
  }

  .time-unit {
    display: inline-block;
    background: var(--light-bg);
    padding: 12px 15px;
    border-radius: 12px;
    margin: 0 5px;
    min-width: 90px;
  }

  body[data-theme="dark"] .time-unit {
    background: var(--dark-bg);
  }

  .time-value {
    font-size: 40px;
    color: var(--primary);
  }

  .time-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    font-weight: 500;
  }

  body[data-theme="dark"] .time-label {
    color: #aaa;
  }

  /* ===== PLANNER TAB STYLES ===== */
  .planner-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
  }

  .planner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .planner-header h2 {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .planner-header h2 i {
    color: var(--primary);
  }

  .planner-actions {
    display: flex;
    gap: 10px;
  }

  .planner-btn {
    padding: 10px 16px;
    background: white;
    border: 1px solid var(--light-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--light-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
  }

  body[data-theme="dark"] .planner-btn {
    background: var(--dark-secondary);
    border: 1px solid var(--dark-border);
    color: var(--dark-text);
  }

  .planner-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
  }

  .planner-btn.primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }

  .planner-btn.primary:hover {
    background: var(--primary-dark);
  }

  .timetable {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }

  body[data-theme="dark"] .timetable {
    background: var(--dark-secondary);
  }

  .timetable-header {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    background: var(--primary);
    color: white;
    font-weight: 600;
  }

  .timetable-header-cell {
    padding: 12px;
    text-align: center;
    font-size: 14px;
  }

  .timetable-body {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    grid-auto-rows: 70px;
    flex: 1;
    overflow-y: auto;
  }

  .time-cell {
    padding: 10px;
    border-right: 1px solid var(--light-border);
    border-bottom: 1px solid var(--light-border);
    font-size: 12px;
    font-weight: 500;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
  }

  body[data-theme="dark"] .time-cell {
    border-right: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
    color: #aaa;
    background: var(--dark-hover);
  }

  .schedule-cell {
    padding: 8px;
    border-right: 1px solid var(--light-border);
    border-bottom: 1px solid var(--light-border);
    position: relative;
    transition: all 0.2s ease;
  }

  body[data-theme="dark"] .schedule-cell {
    border-right: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
  }

  .schedule-cell:hover {
    background: var(--light-hover);
  }

  body[data-theme="dark"] .schedule-cell:hover {
    background: var(--dark-hover);
  }

  .task {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    padding: 6px;
    font-size: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
  }

  .task:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-sm);
  }

  .task.math {
    background: rgba(236, 72, 153, 0.1);
    border-left-color: var(--secondary);
  }

  .task.physics {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success);
  }

  .task.english {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: var(--warning);
  }

  .task-title {
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--light-text);
  }

  body[data-theme="dark"] .task-title {
    color: var(--dark-text);
  }

  .task-time {
    font-size: 10px;
    color: #666;
  }

  body[data-theme="dark"] .task-time {
    color: #aaa;
  }

  /* ===== MODAL STYLES ===== */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .modal-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  .modal {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
  }

  body[data-theme="dark"] .modal {
    background: var(--dark-secondary);
  }

  .modal-overlay.show .modal {
    transform: translateY(0);
  }

  .modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--light-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  body[data-theme="dark"] .modal-header {
    border-bottom: 1px solid var(--dark-border);
  }

  .modal-header h3 {
    font-size: 18px;
    font-weight: 600;
  }

  .modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
  }

  body[data-theme="dark"] .modal-close {
    color: #aaa;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--light-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }

  body[data-theme="dark"] .modal-footer {
    border-top: 1px solid var(--dark-border);
  }

  .btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .btn-secondary {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
  }

  body[data-theme="dark"] .btn-secondary {
    background: var(--dark-hover);
    border: 1px solid var(--dark-border);
    color: var(--dark-text);
  }

  .btn-primary {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: white;
  }

  .btn:hover {
    transform: translateY(-2px);
  }

  .btn-secondary:hover {
    background: #e2e8f0;
  }

  .btn-primary:hover {
    background: var(--primary-dark);
  }

  /* ===== SCORE CALCULATOR STYLES ===== */
  .score-calculator {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
  }

  .calculator-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
  }

  .calculator-header i {
    font-size: 24px;
    color: var(--primary);
  }

  .calculator-header h2 {
    font-size: 22px;
    font-weight: 600;
  }

  .exam-selector {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
  }

  body[data-theme="dark"] .exam-selector {
    background: var(--dark-secondary);
  }

  .exam-type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
  }

  .exam-type-tab {
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
  }

  body[data-theme="dark"] .exam-type-tab {
    border: 1px solid var(--dark-border);
  }

  .exam-type-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }

  .calculator-form {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-md);
  }

  body[data-theme="dark"] .calculator-form {
    background: var(--dark-secondary);
  }

  .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
  }

  .form-col {
    flex: 1;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--light-text);
  }

  body[data-theme="dark"] .form-group label {
    color: var(--dark-text);
  }

  .form-control {
    padding: 12px 16px;
    border: 1px solid var(--light-border);
    border-radius: 8px;
    font-size: 15px;
    width: 100%;
    background: var(--light-bg);
    transition: all 0.2s ease;
    color: var(--light-text);
  }

  body[data-theme="dark"] .form-control {
    border: 1px solid var(--dark-border);
    background: var(--dark-bg);
    color: var(--dark-text);
  }

  .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
    outline: none;
  }

  .results {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-border);
  }

  body[data-theme="dark"] .results {
    border-top: 1px solid var(--dark-border);
  }

  .result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--light-border);
  }

  body[data-theme="dark"] .result-item {
    border-bottom: 1px dashed var(--dark-border);
  }

  .result-item:last-child {
    border-bottom: none;
    font-weight: bold;
  }

  .result-label {
    color: #666;
  }

  body[data-theme="dark"] .result-label {
    color: #aaa;
  }

  .result-value {
    font-weight: 600;
    color: var(--primary);
  }

  /* ===== SETTINGS TAB STYLES ===== */
  .settings-container {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
  }

  body[data-theme="dark"] .settings-container {
    background: var(--dark-secondary);
  }

  .settings-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-border);
  }

  body[data-theme="dark"] .settings-header {
    border-bottom: 1px solid var(--dark-border);
  }

  .settings-header i {
    font-size: 24px;
    color: var(--primary);
  }

  .settings-header h2 {
    font-size: 22px;
    font-weight: 600;
  }

  .settings-group {
    margin-bottom: 25px;
  }

  .settings-group h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--light-text);
  }

  body[data-theme="dark"] .settings-group h3 {
    color: var(--dark-text);
  }

  .settings-group h3 i {
    color: var(--primary);
  }

  .color-options {
    display: flex;
    gap: 15px;
    margin-top: 10px;
  }

  .color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.2s ease;
  }

  .color-option.active {
    border-color: white;
    box-shadow: 0 0 0 2px var(--primary);
    transform: scale(1.1);
  }

  .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
  }

  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
  }

  .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }

  input:checked + .slider {
    background-color: var(--primary);
  }

  input:focus + .slider {
    box-shadow: 0 0 1px var(--primary);
  }

  input:checked + .slider:before {
    transform: translateX(26px);
  }

  .toggle-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .toggle-label {
    font-weight: 500;
    color: var(--light-text);
  }

  body[data-theme="dark"] .toggle-label {
    color: var(--dark-text);
  }

  /* ===== AI TIPS STYLES ===== */
  .ai-tips {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    margin-top: 20px;
    border-left: 4px solid var(--primary);
    max-width: 800px;
    margin: 20px auto 0;
    width: 100%;
  }

  body[data-theme="dark"] .ai-tips {
    background: var(--dark-secondary);
  }

  .ai-tips-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
  }

  .ai-tips-header i {
    color: var(--primary);
    font-size: 20px;
  }

  .ai-tips-title {
    font-size: 16px;
    font-weight: 600;
  }

  .ai-tips-content {
    font-size: 14px;
    line-height: 1.6;
  }

  .ai-tips-actions {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
  }

  /* ===== PROGRESS TRACKER STYLES ===== */
  .progress-tracker {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    margin-top: 20px;
    max-width: 800px;
    margin: 20px auto 0;
    width: 100%;
  }

  body[data-theme="dark"] .progress-tracker {
    background: var(--dark-secondary);
  }

  .progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }

  .progress-title {
    font-size: 16px;
    font-weight: 600;
  }

  .progress-date {
    font-size: 14px;
    color: #666;
  }

  body[data-theme="dark"] .progress-date {
    color: #aaa;
  }

  .progress-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .progress-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
  }

  .progress-subject {
    font-weight: 500;
  }

  .progress-percentage {
    color: var(--primary);
    font-weight: 600;
  }

  .progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
  }

  body[data-theme="dark"] .progress-bar {
    background: var(--dark-hover);
  }

  .progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.5s ease;
  }

  .progress-fill.math {
    background: var(--secondary);
  }

  .progress-fill.physics {
    background: var(--success);
  }

  .progress-fill.english {
    background: var(--warning);
  }

  /* ===== NOTIFICATION SYSTEM STYLES ===== */
  .notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    z-index: 1000;
  }

  .notification {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-bottom: 10px;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
  }

  body[data-theme="dark"] .notification {
    background: var(--dark-secondary);
  }

  @keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }

  .notification-header {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--light-border);
  }

  body[data-theme="dark"] .notification-header {
    border-bottom: 1px solid var(--dark-border);
  }

  .notification-title {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .notification-title i {
    color: var(--primary);
  }

  .notification-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #666;
  }

  body[data-theme="dark"] .notification-close {
    color: #aaa;
  }

  .notification-body {
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.5;
  }

  .notification-actions {
    padding: 10px 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }

  .notification-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .notification-primary {
    background: var(--primary);
    color: white;
    border: none;
  }

  .notification-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
  }

  /* ===== ADMIN PANEL STYLES ===== */
  .admin-container {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .admin-header h2 {
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .admin-header h2 i {
    color: var(--primary);
  }

  .admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
  }

  .stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
  }

  body[data-theme="dark"] .stat-card {
    background: var(--dark-secondary);
  }

  .stat-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  body[data-theme="dark"] .stat-title {
    color: #aaa;
  }

  .stat-title i {
    color: var(--primary);
  }

  .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
  }

  .admin-tabs {
    display: flex;
    border-bottom: 1px solid var(--light-border);
    margin-bottom: 20px;
  }

  body[data-theme="dark"] .admin-tabs {
    border-bottom: 1px solid var(--dark-border);
  }

  .admin-tab {
    padding: 12px 20px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
  }

  .admin-tab.active {
    color: var(--primary);
  }

  .admin-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
  }

  .admin-tab-content {
    display: none;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
  }

  body[data-theme="dark"] .admin-tab-content {
    background: var(--dark-secondary);
  }

  .admin-tab-content.active {
    display: block;
  }

  .admin-table {
    width: 100%;
    border-collapse: collapse;
  }

  .admin-table th, .admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-border);
  }

  body[data-theme="dark"] .admin-table th, body[data-theme="dark"] .admin-table td {
    border-bottom: 1px solid var(--dark-border);
  }

  .admin-table th {
    font-weight: 600;
    color: #666;
  }

  body[data-theme="dark"] .admin-table th {
    color: #aaa;
  }

  .admin-table tr:hover {
    background: var(--light-hover);
  }

  body[data-theme="dark"] .admin-table tr:hover {
    background: var(--dark-hover);
  }

  .admin-table .actions {
    display: flex;
    gap: 8px;
  }

  .admin-table .action-btn {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .admin-table .view-btn {
    background: var(--light-hover);
    color: var(--primary);
    border: 1px solid var(--primary);
  }

  body[data-theme="dark"] .admin-table .view-btn {
    background: var(--dark-hover);
  }

  .admin-table .edit-btn {
    background: var(--light-hover);
    color: var(--warning);
    border: 1px solid var(--warning);
  }

  body[data-theme="dark"] .admin-table .edit-btn {
    background: var(--dark-hover);
  }

  .admin-table .delete-btn {
    background: var(--light-hover);
    color: var(--danger);
    border: 1px solid var(--danger);
  }

  body[data-theme="dark"] .admin-table .delete-btn {
    background: var(--dark-hover);
  }

  .admin-table .action-btn:hover {
    transform: translateY(-2px);
  }

  .admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .admin-form-row {
    display: flex;
    gap: 15px;
  }

  .admin-form-col {
    flex: 1;
  }

  .admin-form-group {
    margin-bottom: 15px;
  }

  .admin-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
  }

  .admin-form-control {
    padding: 12px 16px;
    border: 1px solid var(--light-border);
    border-radius: 8px;
    font-size: 15px;
    width: 100%;
    background: var(--light-bg);
    transition: all 0.2s ease;
  }

  body[data-theme="dark"] .admin-form-control {
    border: 1px solid var(--dark-border);
    background: var(--dark-bg);
    color: var(--dark-text);
  }

  .admin-form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
    outline: none;
  }

  .admin-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
  }

  /* ===== RESPONSIVE STYLES ===== */
  @media (max-width: 768px) {
    .sidebar {
      position: fixed;
      left: -280px;
      height: 100vh;
      z-index: 100;
    }
    
    .sidebar.show {
      left: 0;
    }
    
    .mobile-toggle {
      display: block !important;
    }
    
    .form-row {
      flex-direction: column;
    }

    .timetable-header, .timetable-body {
      grid-template-columns: 60px repeat(7, 1fr);
    }

    .time-unit {
      min-width: 70px;
      padding: 8px 10px;
    }

    .time-value {
      font-size: 30px;
    }

    .admin-stats {
      grid-template-columns: 1fr;
    }

    .admin-form-row {
      flex-direction: column;
    }
  }

  .mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    margin-right: 15px;
    cursor: pointer;
    color: var(--light-text);
  }

  body[data-theme="dark"] .mobile-toggle {
    color: var(--dark-text);
  }

  /* ===== LOADING ANIMATION ===== */
  .loading-dots {
    display: flex;
    gap: 5px;
    align-items: center;
  }

  .loading-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: bounce 1.5s infinite ease-in-out;
  }

  .loading-dot:nth-child(1) {
    animation-delay: 0s;
  }

  .loading-dot:nth-child(2) {
    animation-delay: 0.2s;
  }

  .loading-dot:nth-child(3) {
    animation-delay: 0.4s;
  }

  @keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
  }

  /* ===== PLANNER SELECTOR STYLES ===== */
  .planner-selector {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .planner-selector select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--light-border);
    background: white;
    color: var(--light-text);
    font-size: 14px;
    min-width: 200px;
  }

  body[data-theme="dark"] .planner-selector select {
    background: var(--dark-secondary);
    border: 1px solid var(--dark-border);
    color: var(--dark-text);
  }

  .planner-selector button {
    padding: 10px 15px;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .planner-selector button:hover {
    background: var(--primary-dark);
  }

.chat-input {
  border: none; /* İsteğe bağlı olarak kenarlığı kaldırır */
  border-radius: 15px; /* Köşeleri yuvarlatır */
  padding: 10px 15px; /* İç boşluk */
  outline: none; /* Odaklandığında mavi çerçeveyi kaldırır */
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}


/* 1) Planner tab’ındaki üç kart için dark mode override */
body[data-theme="dark"] #planner .grid > div {
  background-color: var(--dark-secondary) !important;
  border: 1px solid var(--dark-border) !important;
}

/* 2) Kart içindeki <p> etiketlerinin rengini koyu modda beyaz yap */
body[data-theme="dark"] #planner .grid > div p {
  color: var(--dark-text) !important;
}