/* Classic Warm Theme: Cream + Charcoal + Tan */
:root {
    --primary-color: #6b5b43; /* Warm tan */
    --primary-light: #8b7355;
    --primary-dark: #5c4e35;
    --secondary-color: #a68b5b; /* Light tan */
    --accent-color: #c9a97c;   /* Soft tan accent */
    --dark-color: #3e3e3e;    /* Charcoal */
    --light-color: #faf8f3;   /* Cream */
    --success-color: #6b8e6b; /* Muted green */
    --warning-color: #c19a6b; /* Warm brown */
    --danger-color: #a65d4d;  /* Soft red-brown */
    --shadow-sm: 0 1px 3px rgba(62, 62, 62, 0.1);
    --shadow-md: 0 4px 6px rgba(62, 62, 62, 0.1);
    --shadow-lg: 0 10px 15px rgba(62, 62, 62, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: var(--dark-color);
    line-height: 1.7;
    background-color: var(--light-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color) !important;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--primary-dark);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--light-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.navbar-nav .nav-link {
    color: var(--light-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(250, 248, 243, 0.2);
    color: var(--light-color) !important;
}

/* Buttons */
.btn {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--light-color);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-outline-secondary {
    background-color: transparent;
    border-color: var(--dark-color);
    color: var(--dark-color);
}

.btn-outline-secondary:hover {
    background-color: var(--dark-color);
    color: var(--light-color);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Forms */
.form-control {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: var(--light-color);
    color: var(--dark-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(107, 91, 67, 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.form-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Cards */
.card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    background-color: var(--primary-color);
    color: var(--light-color);
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--primary-dark);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* Alerts */
.alert {
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.alert-success {
    background-color: rgba(107, 142, 107, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(166, 93, 77, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(193, 154, 107, 0.1);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.alert-info {
    background-color: rgba(107, 91, 67, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Badges */
.badge {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Tables */
.table {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: var(--dark-color);
}

.table thead th {
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
}

.table tbody tr:hover {
    background-color: rgba(107, 91, 67, 0.05);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--light-color);
}

.auth-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    margin: 0 1rem;
}

.auth-left {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-right {
    padding: 3rem;
}

/* Dashboard */
.dashboard-sidebar {
    background-color: #fff;
    min-height: calc(100vh - 76px);
    box-shadow: var(--shadow-sm);
    border-right: 1px solid #e0e0e0;
}

.sidebar-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
    background-color: rgba(107, 91, 67, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.dashboard-content {
    padding: 2rem;
    background-color: var(--light-color);
    min-height: calc(100vh - 76px);
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
    border: 1px solid #e0e0e0;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-card-icon.primary {
    background-color: rgba(107, 91, 67, 0.1);
    color: var(--primary-color);
}

.stat-card-icon.success {
    background-color: rgba(107, 142, 107, 0.1);
    color: var(--success-color);
}

.stat-card-icon.warning {
    background-color: rgba(193, 154, 107, 0.1);
    color: var(--warning-color);
}

.stat-card-icon.danger {
    background-color: rgba(166, 93, 77, 0.1);
    color: var(--danger-color);
}

/* Feedback Cards */
.feedback-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s ease;
}

.feedback-card:hover {
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background-color: var(--light-color);
    border-bottom: 1px solid #e0e0e0;
}

.hero-section h1 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: #fff;
}

.feature-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e0e0e0;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(107, 91, 67, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 3rem 0 2rem;
}

.footer h5 {
    color: var(--light-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer p {
    color: #ccc;
    margin-bottom: 1rem;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--light-color);
    text-decoration: underline;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    margin-right: 0.5rem;
    transition: background-color 0.2s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

/* Floating Feedback Bot Styles */
.feedback-bot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    font-family: Georgia, 'Times New Roman', Times, serif;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.feedback-bot.minimized {
    height: 50px;
    overflow: hidden;
}

.bot-header {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.bot-header span {
    font-weight: 600;
    font-size: 14px;
}

.minimize-btn {
    background: transparent;
    border: none;
    color: var(--light-color);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.minimize-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.bot-body {
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.bot-messages {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
    max-height: 300px;
}

.bot-message {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
}

.bot-message--info {
    background-color: rgba(107, 91, 67, 0.1);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.bot-message--success {
    background-color: rgba(107, 142, 107, 0.1);
    color: var(--success-color);
    border-left: 3px solid var(--success-color);
}

.bot-message--warning {
    background-color: rgba(193, 154, 107, 0.1);
    color: var(--warning-color);
    border-left: 3px solid var(--warning-color);
}

.bot-status {
    padding: 10px 15px;
    font-size: 12px;
    color: var(--dark-color);
    border-top: 1px solid #e0e0e0;
    background-color: var(--light-color);
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }

    .feature-card, .step-card {
        margin-bottom: 1.5rem;
    }

    .auth-left {
        display: none;
    }

    .dashboard-sidebar {
        min-height: auto;
    }

    .feedback-bot {
        width: 280px;
        right: 10px;
        bottom: 10px;
    }
}
