/* Beer Tasting Notes - Main Stylesheet */

/* CSS Variables */
:root {
    /* Color Palette */
    --color-primary: #3498db;
    --color-primary-dark: #2980b9;
    --color-secondary: #34495e;
    --color-dark: #2c3e50;
    --color-success: #27ae60;
    --color-success-dark: #229954;
    --color-danger: #e74c3c;
    --color-danger-dark: #c0392b;
    --color-warning: #f39c12;
    --color-warning-dark: #d68910;
    --color-info: #3498db;
    --color-light: #ecf0f1;
    --color-border: #ddd;
    --color-text: #333;
    --color-text-secondary: #666;
    --color-text-muted: #999;
    --color-bg-light: #f4f4f4;
    --color-bg-section: #f9f9f9;
    --color-white: #fff;

    /* BJCP Score Colors */
    --score-poor: #c0392b;
    --score-fair: #e67e22;
    --score-good: #f39c12;
    --score-very-good: #27ae60;
    --score-excellent: #2ecc71;
    --score-outstanding: #16a085;

    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;

    /* Border Radius */
    --border-radius: 4px;
    --border-radius-lg: 6px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 6px 12px rgba(0, 0, 0, 0.4);

    /* Transitions */
    --transition-fast: all 0.2s ease;
}

/* Utility Classes */
.inline-form {
    display: inline;
}

.hidden {
    display: none;
}

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

.text-secondary {
    color: var(--color-text-secondary);
}

.mt-15 {
    margin-top: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.search-form {
    margin-bottom: 20px;
}

.search-input {
    width: 300px;
    display: inline-block;
    margin-right: 10px;
}

.search-input-wide {
    width: 350px;
    display: inline-block;
    margin-right: 10px;
}

.filter-select {
    width: 250px;
    display: inline-block;
    margin-right: 10px;
}

/* Stat Card Color Variants */
.stat-card-blue {
    background-color: var(--color-primary);
}

.stat-card-green {
    background-color: var(--color-success);
}

.stat-card-orange {
    background-color: var(--score-fair);
}

.stat-card-purple {
    background-color: #9b59b6;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Layout */
#wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#header {
    position: relative;
    background-color: #2c3e50;
    color: #fff;
    padding: 20px;
}

#header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

#header h1 a.logo-link {
    color: #fff !important;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
}

#header h1 a.logo-link:hover {
    color: #fff !important;
    opacity: 0.9;
}

.site-logo {
    width: 40px;
    height: 40px;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}

#header h1 a.logo-link:hover .site-logo {
    transform: scale(1.05);
}

#nav > ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.2s ease;
    position: relative;
}

#nav ul li a:hover {
    background-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#nav ul li a.active {
    background-color: #2980b9;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid #3498db;
}

#nav ul li a.active:hover {
    background-color: #3498db;
}

#nav ul li a.nav-highlight {
    background-color: #27ae60;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#nav ul li a.nav-highlight:hover {
    background-color: #1e8449;
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

#nav ul li a.nav-highlight.active {
    background-color: #1e8449;
    color: #fff;
    border-bottom: 3px solid #27ae60;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #34495e;
    list-style: none;
    margin: 0;
    padding: 10px 0 5px 0;
    min-width: 180px;
    border-radius: 3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.nav-dropdown-menu li {
    margin: 0;
}

.nav-dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-dropdown-menu li a:hover {
    background-color: #3498db;
    padding-left: 25px;
    color: #fff;
    border-left: 3px solid #2ecc71;
    font-weight: bold;
}

.nav-dropdown:hover > .nav-dropdown-menu {
    display: block;
}

#content {
    flex: 1;
    padding: 30px;
}

#footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 15px;
    margin-top: auto;
}

/* Typography */
h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
}

h3 {
    color: #34495e;
    margin-bottom: 15px;
    font-size: 20px;
}

h4 {
    color: #555;
    margin-bottom: 10px;
    font-size: 16px;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Buttons */
.btn {
    background-color: #3498db;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none !important;
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
    line-height: normal;
    vertical-align: middle;
}

.btn:hover {
    background-color: #2980b9;
    text-decoration: none !important;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    text-decoration: none !important;
    line-height: 1.5;
    vertical-align: middle;
}

.btn-small:hover {
    text-decoration: none !important;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Messages */
.error-message {
    background-color: #ffe6e6;
    color: #c0392b;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #c0392b;
}

.success-message {
    background-color: #e6f9e6;
    color: #27ae60;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #27ae60;
}

.success-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.success-actions .btn {
    flex: 1;
    min-width: 180px;
    text-align: center;
    padding: 12px 20px;
    font-size: 15px;
}

/* Inline error messages for form validation */
.error-inline {
    display: block;
    color: #c0392b;
    font-size: 12px;
    margin-top: 5px;
    font-weight: bold;
    animation: slideDown 0.3s ease;
}

.input-error {
    border-color: #c0392b !important;
    background-color: #ffe6e6 !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

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

.data-table th {
    background-color: #34495e;
    color: #fff;
    font-weight: bold;
}

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

/* Admin Sections */
.admin-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
}

.admin-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 20px 0;
}

.pagination-current {
    background-color: #2c3e50;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
}

/* Tasting Session */
.tasting-form {
    max-width: 100%;
}

.scoring-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.score-category {
    background-color: #fff;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.score-input {
    max-width: 150px;
}

.notes-input {
    flex: 1;
}

/* Style Information Banner */
.style-info-banner {
    background-color: #e8f4f8;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

.style-info-banner h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 20px;
}

.style-info-banner h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: bold;
}

.style-info-banner p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* Style Guidance */
.style-guidance {
    background-color: #e8f4f8;
    border-left: 4px solid #3498db;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.style-guidance p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #2c3e50;
}

.style-guidance strong {
    color: #2980b9;
}

.total-score {
    background-color: #3498db;
    color: #fff;
    padding: 15px;
    text-align: center;
    border-radius: 4px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.total-score h3 {
    color: #fff;
    margin: 0;
    font-size: 24px;
}

.total-score h3 #total-display {
    font-weight: bold;
    font-size: 32px;
    padding: 5px 15px;
    border-radius: 4px;
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Dynamic score colors for entire container */
.total-score.score-poor {
    background-color: #c0392b !important;
}

.total-score.score-fair {
    background-color: #e67e22 !important;
}

.total-score.score-good {
    background-color: #f39c12 !important;
}

.total-score.score-very-good {
    background-color: #27ae60 !important;
}

.total-score.score-excellent {
    background-color: #2ecc71 !important;
}

.total-score.score-outstanding {
    background-color: #16a085 !important;
}

/* Landing Hero */
.landing-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: #fff;
    padding: 60px 40px;
    text-align: center;
    margin: -20px -20px 30px -20px;
    border-radius: 0 0 8px 8px;
}

.landing-hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: bold;
    color: #fff !important;
}

/* Dashboard */
.dashboard {
    max-width: 100%;
}

.about-intro {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 20px 25px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-intro p {
    margin-bottom: 0;
    color: #2c3e50;
    font-size: 15px;
}

.stats-section {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 15px;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background-color: #3498db;
    color: #fff;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
}

.stat-card .stat-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff !important;
}

.stat-card .stat-label {
    font-size: 14px;
    color: #fff !important;
}

/* CTA Box */
.cta-box {
    background-color: #f8f9fa;
    border: 2px solid #3498db;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.cta-message {
    text-align: center;
    font-size: 16px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.btn-primary-cta {
    background-color: #27ae60;
    color: #fff !important;
    font-weight: bold;
}

.btn-primary-cta:hover {
    background-color: #229954;
    color: #fff !important;
}

/* Features Section */
.features-section {
    margin-bottom: 40px;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.feature-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 25px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.feature-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Recent Activity Section */
.recent-activity-section {
    margin-bottom: 40px;
}

.recent-activity-section h2 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.section-intro {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.activity-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.activity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.activity-score {
    margin-bottom: 12px;
}

.activity-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.activity-brewery {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #999;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.activity-style {
    font-style: italic;
}

@media (max-width: 1024px) {
    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .activity-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-section {
    margin-bottom: 30px;
}

/* Charts Section */
.charts-section {
    margin-bottom: 30px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.chart-container {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.chart-container h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 16px;
    text-align: center;
}

.chart-description {
    color: #7f8c8d;
    font-size: 12px;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.4;
    font-style: italic;
}

.chart-container canvas {
    max-height: 280px;
}

/* Responsive charts for smaller screens */
@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Sessions Table */
.sessions-table {
    width: 100%;
}

.session-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

.session-header h3 {
    margin: 0;
    color: #2c3e50;
}

.session-score {
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.session-score .score-value {
    font-size: 20px;
}

.session-score .score-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* BJCP Score Rankings */
.score-poor {
    background-color: #c0392b;
}

.score-fair {
    background-color: #e67e22;
}

.score-good {
    background-color: #f39c12;
}

.score-very-good {
    background-color: #27ae60;
}

.score-excellent {
    background-color: #2ecc71;
}

.score-outstanding {
    background-color: #16a085;
}

/* Score Badge for tables */
.score-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 3px;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.session-info {
    margin-bottom: 15px;
}

.session-info p {
    margin-bottom: 5px;
}

.session-scores {
    margin-top: 15px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.score-chart-container {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-breakdown {
    flex: 1;
    border-collapse: collapse;
}

.score-breakdown th,
.score-breakdown td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.score-breakdown th {
    background-color: #34495e;
    color: #fff;
}

/* Responsive: Stack chart and table on smaller screens */
@media (max-width: 768px) {
    .session-scores {
        flex-direction: column;
    }

    .score-chart-container {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px dashed #ddd;
}

.empty-state p {
    margin-bottom: 15px;
    color: #666;
}

/* Profile */
.profile-container {
    max-width: 600px;
}

.profile-info {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.profile-info p {
    margin-bottom: 10px;
}

.profile-actions {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.profile-actions h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Change Password */
.password-tips {
    background-color: #e8f4f8;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #b8dae8;
    margin-top: 30px;
}

.password-tips h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.password-tips ul {
    list-style: disc;
    padding-left: 25px;
    margin: 0;
}

.password-tips li {
    margin-bottom: 8px;
    color: #555;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Password Validation Styles */
.password-requirements {
    margin-top: 10px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.password-requirements p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #555;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    padding: 4px 0;
    font-size: 13px;
    transition: color 0.2s ease;
}

.requirement {
    color: #dc3545;
}

.requirement-met {
    color: #28a745;
    font-weight: 500;
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-bar-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

.strength-weak {
    background-color: #dc3545;
    color: #dc3545;
}

.strength-fair {
    background-color: #ffc107;
    color: #ffc107;
}

.strength-good {
    background-color: #17a2b8;
    color: #17a2b8;
}

.strength-strong {
    background-color: #28a745;
    color: #28a745;
}

.strength-text {
    font-size: 12px;
    font-weight: 500;
}

.validation-message {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    font-weight: 500;
}

.success-text {
    color: #28a745;
}

.error-text {
    color: #dc3545;
}

.btn-secondary {
    background-color: #95a5a6;
    margin-left: 10px;
    color: #fff !important;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    color: #fff !important;
}

/* About Page */
.about-container {
    max-width: 100%;
}

.about-section {
    background-color: #f9f9f9;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.about-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.about-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-section a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.about-section a:hover {
    text-decoration: underline;
}

.scoring-categories {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.scoring-categories li {
    padding: 10px;
    margin-bottom: 8px;
}

/* Score Rankings Display */
.score-rankings {
    margin: 20px 0;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-label {
    color: #555;
    font-size: 14px;
}

.disclaimer {
    background-color: #fff9e6;
    border-color: #f39c12;
}

.disclaimer h3 {
    border-bottom-color: #f39c12;
    color: #d68910;
}

/* About Page - Table of Contents */
.about-toc {
    background-color: #e8f4f8;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

.about-toc h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

.about-toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.about-toc li {
    margin-bottom: 0;
}

.about-toc a {
    color: #3498db;
    text-decoration: none;
    font-weight: normal;
    transition: color 0.2s;
}

.about-toc a:hover {
    color: #2980b9;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .about-toc ul {
        grid-template-columns: 1fr;
    }
}

/* About Page - Section Icons */
.section-icon {
    font-size: 24px;
    margin-right: 10px;
}

/* About Page - Stats Highlight */
.stats-highlight {
    background-color: #fff;
    border: 2px solid #3498db;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.stats-highlight h4 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

@media (max-width: 640px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}

/* About Page - Features List */
.features-list {
    margin-top: 20px;
}

.feature-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
    border-left: 3px solid #3498db;
}

.feature-icon-small {
    font-size: 28px;
    flex-shrink: 0;
}

.feature-content h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 16px;
}

.feature-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* About Page - Use Cases Section */
.use-cases-section {
    background-color: #f0f8ff;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.use-case-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #ddd;
    transition: transform 0.2s, box-shadow 0.2s;
}

.use-case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.use-case-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.use-case-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 16px;
}

.use-case-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .use-case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .use-case-grid {
        grid-template-columns: 1fr;
    }
}

/* About Page - Highlight Section */
.highlight-section {
    background-color: #f0f8ff;
    border-color: #3498db;
}

.contribution-list {
    margin: 20px 0;
}

.contribution-item {
    padding: 10px;
    margin-bottom: 8px;
    background-color: #fff;
    border-left: 3px solid #27ae60;
    border-radius: 4px;
    color: #2c3e50;
}

/* About Page - Creator Section */
.creator-section {
    background-color: #fef9e7;
    border-color: #f39c12;
}

.creator-section h3 {
    border-bottom-color: #f39c12;
}

/* About Page - CTA Inline */
.cta-inline {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.cta-inline .btn {
    margin: 0 5px;
}

/* User Management */
.users-table {
    font-size: 13px;
}

.users-table .actions-cell {
    white-space: nowrap;
}

.users-table .current-user {
    background-color: #e8f4f8;
}

.badge {
    background-color: #3498db;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
}

.role-badge {
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.admin-badge {
    background-color: #e74c3c;
    color: #fff;
}

.user-badge {
    background-color: #95a5a6;
    color: #fff;
}

/* Session Detail Page */
.session-detail-container {
    max-width: 1000px;
    margin: 0 auto;
}

.session-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #3498db;
}

.header-content h2 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.brewery-name {
    font-size: 18px;
    color: #7f8c8d;
    font-weight: 500;
}

.session-detail-info {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 25px;
    border: 1px solid #ddd;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-weight: bold;
    color: #555;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #2c3e50;
    font-size: 15px;
}

.bjcp-link {
    display: inline-block;
    margin-left: 8px;
    text-decoration: none;
    font-size: 16px;
    transition: transform 0.2s;
}

.bjcp-link:hover {
    transform: scale(1.2);
}

.style-description {
    background-color: #e8f4f8;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 25px;
    border-left: 4px solid #3498db;
}

.style-description h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.style-description p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.style-specs {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.spec-item {
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 3px;
    font-weight: bold;
    color: #2c3e50;
    border: 1px solid #3498db;
}

.spec-item-with-color {
    position: relative;
    padding-right: 45px;
}

.beer-color-stripe {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 24px;
    border-radius: 3px;
    border: 1px solid #ccc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.session-scores-detail {
    margin-bottom: 30px;
}

.session-scores-detail h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.scores-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.scores-detail-table {
    flex: 1;
}

.scores-detail-table .score-breakdown {
    width: 100%;
}

.total-row {
    background-color: #f0f0f0;
    font-weight: bold;
}

.total-row td {
    border-top: 2px solid #2c3e50;
}

.tasting-notes {
    margin-bottom: 30px;
}

.tasting-notes h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

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

.note-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.note-item h4 {
    margin-bottom: 10px;
    color: #3498db;
    font-size: 16px;
}

.note-item p {
    color: #555;
    line-height: 1.6;
}

.note-item em {
    color: #95a5a6;
}

.session-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.session-actions form {
    display: inline;
}

/* Responsive adjustments for session detail */
@media (max-width: 768px) {
    .session-detail-header {
        flex-direction: column;
        gap: 15px;
    }

    .scores-layout {
        flex-direction: column;
    }

    .score-chart-container {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .notes-grid {
        grid-template-columns: 1fr;
    }
}

.btn-success {
    background-color: #27ae60;
}

.btn-success:hover {
    background-color: #229954;
}

.btn-warning {
    background-color: #f39c12;
}

.btn-warning:hover {
    background-color: #d68910;
}

.btn-info {
    background-color: #3498db;
}

.btn-info:hover {
    background-color: #2980b9;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    margin-top: 0;
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
    #nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .form-row {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .session-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet and smaller (max-width: 1024px) */
@media (max-width: 1024px) {
    #wrapper {
        max-width: 100%;
    }

    #content {
        padding: 15px;
    }

    .dashboard {
        max-width: 100%;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row .form-group {
        width: 100%;
    }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    /* Header & Navigation */
    #header {
        padding: 15px;
    }

    #header h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .site-logo {
        width: 32px;
        height: 32px;
    }

    #header h1 a.logo-link {
        gap: 10px;
    }

    #nav > ul {
        flex-direction: column;
        gap: 10px;
    }

    #nav ul li a {
        display: block;
        padding: 10px;
        text-align: center;
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        background-color: rgba(0, 0, 0, 0.2);
        margin-top: 5px;
        box-shadow: none;
    }

    .success-actions {
        flex-direction: column;
        gap: 10px;
    }

    .success-actions .btn {
        width: 100%;
        min-width: auto;
    }

    .nav-dropdown:hover > .nav-dropdown-menu,
    .nav-dropdown-menu:hover {
        display: block;
    }

    .nav-dropdown-menu li {
        border-left: none;
        padding-left: 0;
    }

    /* Landing Hero */
    .landing-hero {
        padding: 40px 20px;
        margin: -15px -15px 20px -15px;
    }

    .landing-hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .btn-large {
        padding: 12px 25px;
        font-size: 14px;
    }

    /* Content */
    #content {
        padding: 10px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    /* Tables - Make them scrollable */
    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .data-table thead,
    .data-table tbody,
    .data-table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    .data-table th,
    .data-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    /* Action buttons in tables */
    .actions-cell .btn {
        padding: 6px 10px;
        font-size: 11px;
        margin: 2px 0;
        display: block;
        width: 100%;
    }

    .actions-cell form {
        display: block !important;
        margin: 2px 0;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-number {
        font-size: 28px;
    }

    /* Charts */
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .chart-container {
        padding: 15px;
    }

    .chart-container canvas {
        max-height: 250px;
    }

    /* Forms */
    .form-container {
        padding: 20px 15px;
    }

    .tasting-form .form-group {
        margin-bottom: 15px;
    }

    .scoring-section {
        padding: 15px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="url"],
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Score badges */
    .score-badge {
        padding: 4px 8px;
        font-size: 11px;
    }

    /* Search forms */
    form[method="get"] input[type="text"] {
        width: 100% !important;
        margin-bottom: 10px;
        margin-right: 0 !important;
    }

    form[method="get"] .btn {
        margin: 5px 5px 5px 0;
    }

    /* Admin sections */
    .admin-section {
        padding: 15px;
    }

    .admin-form {
        padding: 15px;
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
        padding: 15px 0;
    }

    .pagination .btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .pagination-current {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Modals */
    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 20px;
    }

    /* Spider chart */
    #spider-chart {
        max-width: 100%;
        height: 300px !important;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    #header h1 {
        font-size: 18px;
    }

    .landing-hero h1 {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    h2 {
        font-size: 18px;
    }

    h3 {
        font-size: 16px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* Make table more compact on very small screens */
    .data-table th,
    .data-table td {
        padding: 6px 4px;
        font-size: 11px;
    }

    /* Buttons */
    .btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    .btn-small {
        padding: 6px 10px;
        font-size: 11px;
    }

    /* Charts even smaller */
    .chart-container canvas {
        max-height: 220px;
    }

    .chart-description {
        font-size: 11px;
    }

    /* Form inputs */
    .form-group label {
        font-size: 13px;
    }

    /* Spider chart smaller */
    #spider-chart {
        height: 250px !important;
    }
}

/* ============================================
   BEER FLAWS SECTION
   ============================================ */

.flaws-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-top: 30px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.flaws-section h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.flaws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.flaw-checkbox {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 12px;
    border-radius: 4px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flaw-checkbox:hover {
    border-color: #3498db;
    background-color: #f0f8ff;
}

.flaw-checkbox input[type="checkbox"] {
    display: none;
}

.flaw-checkbox input[type="checkbox"]:checked + .flaw-name {
    color: #fff;
}

.flaw-checkbox input[type="checkbox"]:checked ~ .flaw-name::before {
    content: "✓ ";
    font-weight: bold;
}

.flaw-checkbox:has(input[type="checkbox"]:checked) {
    background-color: #e74c3c;
    border-color: #c0392b;
}

.flaw-checkbox:has(input[type="checkbox"]:checked) .flaw-name {
    color: #fff;
}

.flaw-checkbox:has(input[type="checkbox"]:checked) .flaw-description {
    color: rgba(255, 255, 255, 0.9);
}

.flaw-name {
    font-weight: bold;
    font-size: 15px;
    color: #2c3e50;
    margin-bottom: 5px;
    transition: color 0.2s ease;
}

.flaw-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    transition: color 0.2s ease;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .flaws-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .flaws-section {
        padding: 15px;
        margin-top: 20px;
    }
}

/* Flaws Display (Session Detail Page) */
.flaws-detected {
    background-color: #fff5f5;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
    border-left: 4px solid #e74c3c;
}

.flaws-detected h3 {
    color: #c0392b;
    margin-bottom: 10px;
}

.flaws-detected .section-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.flaws-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.flaw-badge {
    background-color: #e74c3c;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .flaws-detected {
        padding: 15px;
        margin-bottom: 20px;
    }

    .flaw-badge {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* ============================================
   SELECT2 CUSTOM STYLING
   ============================================ */

/* Select2 wrapper */
.select2-container {
    display: block !important;
    position: relative;
}

.select2-container .select2-selection--single {
    position: relative;
    overflow: hidden;
}

/* Select2 container */
.select2-container--default .select2-selection--single {
    height: auto !important;
    min-height: 38px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.6;
    padding: 8px 30px 8px 8px;
    color: #333;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    position: absolute;
    top: 0;
    right: 1px;
    width: 30px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Dropdown */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #3498db;
    color: #fff;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #2c3e50;
    color: #fff;
}

.select2-dropdown {
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif;
}

/* Search box in dropdown */
.select2-search--dropdown .select2-search__field {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
}

.select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: #3498db;
}

/* Results */
.select2-results__option {
    padding: 8px;
    font-size: 14px;
}

/* Focus state */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3498db;
    outline: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .select2-container--default .select2-selection--single {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 40px 10px 10px;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 44px;
    }

    .select2-search--dropdown .select2-search__field {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 12px;
    color: #666;
}

.language-switcher .current-locale {
    font-weight: bold;
    color: #e67e22;
}

.language-switcher .locale-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.language-switcher .locale-link:hover {
    color: #e67e22;
}

.language-switcher .locale-separator {
    margin: 0 5px;
    color: #999;
}

@media (max-width: 768px) {
    .language-switcher {
        position: static;
        text-align: right;
        margin: 10px 20px 0 0;
    }
}
