/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --background-color: #f5f7fb;
    --text-color: #2c3e50;
    --sidebar-bg: #2c3e50;
    --card-bg: white;
    --border-color: #eee;
    --hover-color: #2980b9;
    --message-bot-bg: #f0f2f5;
    --message-user-bg: #3498db;
    --message-user-color: white;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
}

[data-theme="dark"] {
    --primary-color: #4dabf7;
    --secondary-color: #1a1a1a;
    --background-color: #121212;
    --text-color: #ffffff;
    --sidebar-bg: #1a1a1a;
    --card-bg: #2d2d2d;
    --border-color: #404040;
    --hover-color: #4dabf7;
    --message-bot-bg: #2d2d2d;
    --message-user-bg: #4dabf7;
    --message-user-color: white;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

.container {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    height: 100vh;
    max-width: 1800px;
    margin: 0 auto;
    background: var(--card-bg);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Sidebar Styles */
.sidebar {
    background: var(--sidebar-bg);
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Back to Landing Button */
.back-to-landing {
    margin-bottom: 1rem;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-3px);
}

.back-btn i {
    font-size: 0.8rem;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.menu-item:hover, .menu-item.active {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.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;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* User Info */
.user-info {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
}

.user-status {
    font-size: 0.8rem;
    color: #4CAF50;
}

.logout-btn {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
}

/* Main Content Styles */
.main-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left h2 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.header-left p {
    color: #666;
}

.header-right {
    display: flex;
    gap: 1rem;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.header-btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease;
}

.message.bot {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 70%;
    padding: 1rem;
    border-radius: 12px;
    line-height: 1.5;
}

.message.bot .message-content {
    background: var(--message-bot-bg);
    color: var(--text-color);
}

.message.user .message-content {
    background: var(--message-user-bg);
    color: var(--message-user-color);
}

.chat-input {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    background: var(--card-bg);
}

.input-tools {
    display: flex;
    gap: 0.5rem;
}

.tool-btn {
    padding: 0.75rem;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s;
}

.tool-btn:hover {
    background: var(--hover-color);
    color: white;
}

.chat-input textarea {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    resize: none;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    max-height: 120px;
    background: var(--card-bg);
    color: var(--text-color);
}

.chat-input textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.send-button {
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.send-button:hover {
    background: var(--hover-color);
    transform: scale(1.05);
}

.send-button:active {
    transform: scale(0.95);
}

.send-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.send-button:hover .send-icon {
    transform: translateX(2px);
}

@keyframes sendPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.send-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

[data-theme="dark"] .send-button {
    background: var(--primary-color);
}

[data-theme="dark"] .send-button:hover {
    background: var(--hover-color);
}

/* Content Sections */
.content-section {
    display: none;
    height: 100%;
    overflow-y: auto;
}

.content-section.active {
    display: block;
}

.section-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Timer Styles */
.timer-container {
    padding: 2rem;
    text-align: center;
}

.timer-display {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: 'Courier New', monospace;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.timer-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timer-btn:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.timer-btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

.timer-btn:hover:not(:disabled) {
    background: var(--hover-color);
    transform: translateY(-2px);
}

.timer-presets {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.preset-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.preset-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.timer-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-item {
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Notes Styles */
.notes-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    height: calc(100vh - 120px);
}

.notes-sidebar {
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    background: var(--card-bg);
}

.new-note-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.new-note-btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.note-item {
    padding: 1rem;
    background: var(--background-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.note-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.note-editor {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.note-title {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--card-bg);
    color: var(--text-color);
}

.note-title:focus {
    outline: none;
    border-color: var(--primary-color);
}

.note-content {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: none;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    background: var(--card-bg);
    color: var(--text-color);
}

.note-content:focus {
    outline: none;
    border-color: var(--primary-color);
}

.note-tools {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Progress Styles */
.progress-container {
    padding: 2rem;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.progress-chart {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.learning-goals {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.goals-list {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.goal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.goal-item:hover {
    background: var(--primary-color);
    color: white;
}

.goal-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.add-goal-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.add-goal-btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

/* Quick Actions */
.quick-actions {
    background: var(--card-bg);
    padding: 2rem;
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-btn {
    padding: 1rem;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.topic-tag {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.topic-tag:hover {
    background: var(--hover-color);
    transform: scale(1.05);
}

.learning-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Authentication Styles */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.auth-box {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.5s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.auth-header .logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.auth-header h1 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #666;
    font-size: 1.1rem;
}

.auth-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    position: relative;
}

.auth-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.auth-tab.active {
    color: var(--primary-color);
    background: white;
}

.auth-tab.active::after {
    width: 80%;
}

.auth-forms {
    position: relative;
    margin-bottom: 2rem;
}

.auth-form {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.auth-form.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    pointer-events: all;
}

.auth-form:not(.active) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 1rem;
    color: #666;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-button:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

.auth-button i {
    transition: transform 0.3s;
}

.auth-button:hover i {
    transform: translateX(5px);
}

.social-auth {
    text-align: center;
    margin-top: 2rem;
}

.social-auth p {
    color: #666;
    margin-bottom: 1rem;
    position: relative;
}

.social-auth p::before,
.social-auth p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #e9ecef;
}

.social-auth p::before {
    left: 0;
}

.social-auth p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 1rem;
}

.social-button {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.social-button:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.social-button.google:hover {
    border-color: #db4437;
    color: #db4437;
}

.social-button.github:hover {
    border-color: #333;
    color: #333;
}

/* Back to Landing Link in Auth */
.back-to-landing-auth {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.back-link:hover {
    color: var(--hover-color);
    transform: translateX(-5px);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1100;
    color: var(--text-color);
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification i {
    font-size: 1.25rem;
}

.notification.success {
    border-left: 4px solid #28a745;
}

.notification.success i {
    color: #28a745;
}

.notification.error {
    border-left: 4px solid #dc3545;
}

.notification.error i {
    color: #dc3545;
}

.notification.warning {
    border-left: 4px solid #ffc107;
}

.notification.warning i {
    color: #ffc107;
}

.notification.info {
    border-left: 4px solid var(--primary-color);
}

.notification.info i {
    color: var(--primary-color);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 250px 1fr;
    }
    
    .quick-actions {
        display: none;
    }
    
    .notes-container {
        grid-template-columns: 1fr;
    }
    
    .notes-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .message {
        margin-bottom: 0.5rem;
    }
    
    .timer-display {
        font-size: 3rem;
    }
    
    .timer-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .progress-stats {
        grid-template-columns: 1fr;
    }
    
    .auth-box {
        padding: 2rem;
        margin: 1rem;
    }
}

/* Resources Section */
.resources-container {
    padding: 2rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-card {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.resource-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resource-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.resource-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.resource-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.resource-btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

/* Settings Section */
.settings-container {
    padding: 2rem;
}

.settings-group {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.settings-group h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    color: var(--text-color);
    font-weight: 500;
}

.setting-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--background-color);
    color: var(--text-color);
}

.setting-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* --- Responsive Media Query for Mobile Phones --- */
@media (max-width: 600px) {
  body {
    padding: 0;
    margin: 0;
    background: #fff;
  }
  .navbar, .header, .top-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0.5rem;
    min-height: 48px;
  }
  .nav-links, .menu, .categories {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: stretch;
  }
  .main, .content, .products-grid, .movie-list, .calculator-body {
    width: 100vw;
    min-width: 0;
    padding: 0.5rem 0;
    margin: 0;
    box-sizing: border-box;
  }
  .card, .product-card, .movie-card, .calc-btn {
    width: 100%;
    min-width: 0;
    margin: 0.5rem 0;
    font-size: 1.1rem;
  }
  img, .product-image, .movie-poster {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .footer, .bottom-bar {
    font-size: 0.9rem;
    padding: 1rem 0.5rem;
    text-align: center;
  }
  .sidebar, .desktop-only {
    display: none !important;
  }
  button, .btn, input, select {
    min-height: 44px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
} 