/* Unified WardWalk.info CSS - Simplified and Optimized */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #ffcc99 0%, #ff6600 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== MAIN LAYOUT CONTAINERS ===== */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.databank-layout .main-container {
    height: 100vh;
    overflow: hidden;
}

.walking-view .main-container {
    justify-content: flex-start;
    align-items: stretch;
    max-width: none;
}

/* ===== TOP BAR & NAVIGATION ===== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 20px;
}

/* Unified Icon Button Styles */
.notification-bell,
.home-button,
.walk-back-button,
.databank-back-button {
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.notification-bell:hover .bell-icon,
.home-button:hover .home-icon,
.walk-back-button:hover .walk-back-icon,
.databank-back-button:hover .databank-back-icon {
    transform: scale(1.1);
}

.bell-icon,
.home-icon,
.walk-back-icon,
.databank-back-icon {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

.bell-icon i,
.home-icon i,
.walk-back-icon i,
.databank-back-icon i {
    font-size: 1.5rem;
    color: #28a745;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #2d662d, #004400);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.notification-badge.show {
    opacity: 1;
    transform: scale(1);
}

/* ===== ACCOUNT SECTION ===== */
.account-section {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    min-height: 50px;
    text-decoration: none;
    color: inherit;
}

.account-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: inherit;
}

.account-section.logged-in {
    justify-content: space-between;
    padding: 8px;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    padding: 0 8px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.profile-link:hover {
    background: rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
}

.logout-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logout-link:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    text-decoration: none;
    transform: scale(1.05);
}

.logout-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.account-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.account-icon.logged-in {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.account-icon.anonymous {
    background: #28a745;
    color: white;
}

.account-icon.not-logged-in {
    background: #6c757d;
    color: white;
}

.account-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.account-username {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.account-status {
    font-size: 0.75rem;
    color: #666;
}

.account-status.anonymous { color: #28a745; }
.account-status.member { color: #667eea; }
.account-status.organiser { color: #e67e22; }

/* ===== CONTENT CARDS ===== */
.content-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
}

.walking-view .content-card {
    width: 95vw;
    max-width: none;
    margin: 0 auto;
}

.standard-page .content-card {
    max-width: 1200px;
}

/* ===== TITLES & HEADINGS ===== */
.site-title,
.page-title,
.menu-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4a5568;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.menu-title {
    font-size: 2.2rem;
}

/* ===== ANIMATED TEXT CONTAINER (HOME PAGE) ===== */
.text-container {
    height: 80px;
    position: relative;
    margin-bottom: 25px;
    overflow: hidden;
}

.text-snippet {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s ease-out;
    font-size: 1.2rem;
    color: #333;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.text-snippet.slide-in {
    opacity: 1;
    transform: translateX(0);
}

.text-snippet.slide-out {
    opacity: 0;
    transform: translateX(-100%);
}

/* ===== MENU OPTIONS & BUTTONS ===== */
.menu-options {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    margin-top: 40px;
}

.menu-options.show {
    opacity: 1;
    transform: translateY(0);
}

.menu-btn {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.menu-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.menu-btn i {
    margin-right: 10px;
}

/* Menu Button Color Variants */
.btn-about { background: linear-gradient(90deg, #66cc66, #009900); }
.btn-walk { background: linear-gradient(90deg, #70d070, #00aa00); }
.btn-databank { background: linear-gradient(90deg, #5cbf5c, #008800); }
.btn-polling { background: linear-gradient(90deg, #52b352, #007700); }
.btn-map { background: linear-gradient(90deg, #4db84d, #006600); }
.btn-chat { background: linear-gradient(90deg, #339933, #005500); }
.btn-register { background: linear-gradient(90deg, #1a661a, #003300); }
.btn-admin { 
    background: linear-gradient(90deg, #2d662d, #004400); 
    border: 2px solid rgba(255, 255, 255, 0.2); 
}

/* ===== UNIFIED BUTTON STYLES ===== */
.btn-primary,
.btn-secondary {
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #218838, #1aa179);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #545b62);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

.btn-primary:hover,
.btn-secondary:hover {
    color: white;
    text-decoration: none;
}

.walk-dark-green-btn {
    background: linear-gradient(90deg, #2d662d, #004400) !important;
    border: none !important;
    color: white !important;
}

.walk-dark-green-btn:hover {
    background: linear-gradient(90deg, #1a4a1a, #002200) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    color: white !important;
}

.walk-dark-green-btn:disabled {
    background: linear-gradient(90deg, #6c757d, #5a6268) !important;
    opacity: 0.6;
    transform: none !important;
    box-shadow: none !important;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 1rem 1rem 1rem;
    margin-bottom: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .mt-auto {
    margin-top: auto !important;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #28a745;
}

/* ===== FORMS ===== */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 12px 16px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    outline: none;
}

/* ===== ALERTS ===== */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    box-shadow: 0 4px 15px rgba(212, 237, 218, 0.3);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    box-shadow: 0 4px 15px rgba(248, 215, 218, 0.3);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    box-shadow: 0 4px 15px rgba(255, 243, 205, 0.3);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    box-shadow: 0 4px 15px rgba(209, 236, 241, 0.3);
}

/* ===== TABLES ===== */
.table-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin: 2rem 0;
    overflow-x: auto;
}

.table {
    margin-bottom: 0;
    width: 100%;
}

.table thead th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 2px solid #28a745;
    color: #4a5568;
    font-weight: 600;
    padding: 1rem;
}

.table tbody tr:hover {
    background-color: rgba(40, 167, 69, 0.05);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* ===== CARD GRIDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    color: #4a5568;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card .icon {
    font-size: 2.5rem;
    color: #28a745;
    margin-bottom: 1rem;
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.status-pending {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.status-inactive {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

/* ===== BREADCRUMB NAVIGATION ===== */
.breadcrumb-nav {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.breadcrumb {
    margin-bottom: 0;
    background: none;
}

.breadcrumb-item a {
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: #218838;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #4a5568;
    font-weight: 600;
}

/* ===== WALK SPECIFIC STYLES ===== */
.walk-clicker-group {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.walk-clicker-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.walk-clicker-group h5 {
    color: #4a5568;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.walk-clicker-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    max-width: 100%;
    justify-content: center;
}

.walk-clicker-btn {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 8px 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 65px;
    justify-content: space-between;
    color: #007bff;
    font-family: inherit;
    font-size: inherit;
}

.walk-clicker-btn:hover,
.walk-clicker-btn.walk-clicked {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: #0056b3;
}

.walk-clicker-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.walk-clicker-btn i {
    font-size: 1.2rem;
    color: inherit;
}

.walk-clicker-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.1;
    color: inherit;
}

.walk-clicker-count {
    font-size: 1rem;
    font-weight: bold;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
}

.walk-clicker-btn:hover .walk-clicker-count,
.walk-clicker-btn.walk-clicked .walk-clicker-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Walk Button Variants */
.walk-voting-yes {
    background: linear-gradient(135deg, #d4edda, #c3e6cb) !important;
    border-color: #28a745 !important;
    color: #28a745 !important;
}

.walk-voting-yes:hover,
.walk-voting-yes.walk-clicked {
    background: linear-gradient(135deg, #28a745, #218838) !important;
    color: white !important;
    border-color: #218838 !important;
}

.walk-voting-yes .walk-clicker-count {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.walk-voting-no {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb) !important;
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

.walk-voting-no:hover,
.walk-voting-no.walk-clicked {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
    border-color: #c82333 !important;
}

.walk-voting-no .walk-clicker-count {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.walk-voting-abstain {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    border-color: #6c757d !important;
    color: #6c757d !important;
}

.walk-voting-abstain:hover,
.walk-voting-abstain.walk-clicked {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
    color: white !important;
    border-color: #5a6268 !important;
}

.walk-voting-abstain .walk-clicker-count {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.walk-resource-btn {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7) !important;
    border-color: #ffc107 !important;
    color: #856404 !important;
}

.walk-resource-btn:hover,
.walk-resource-btn.walk-clicked {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
    color: white !important;
    border-color: #e0a800 !important;
}

.walk-resource-btn .walk-clicker-count {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.walk-resource-btn:hover .walk-clicker-count,
.walk-resource-btn.walk-clicked .walk-clicker-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Walk Statistics */
.walk-summary-horizontal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.walk-stat-item-horizontal,
.walk-stat-item {
    text-align: center;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 8px;
    border: 2px solid rgba(40, 167, 69, 0.2);
}

.walk-stat-item-horizontal {
    padding: 10px;
}

.walk-stat-item {
    padding: 15px;
    border-radius: 10px;
}

.walk-summary-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.walk-stat-value {
    display: block;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 5px;
}

.walk-stat-item-horizontal .walk-stat-value {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.walk-stat-item .walk-stat-value {
    font-size: 1.8rem;
}

.walk-stat-label {
    color: #666;
    font-weight: 500;
}

.walk-stat-item-horizontal .walk-stat-label {
    font-size: 0.75rem;
}

.walk-stat-item .walk-stat-label {
    font-size: 0.85rem;
}

/* Walk Overlay */
.walk-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.walk-overlay-content {
    background: white;
    border-radius: 15px;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    width: 800px;
}

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

.walk-close-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.walk-close-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* ===== DATABANK SPECIFIC STYLES ===== */
.databank-menu-view {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(0);
}

.databank-menu-view.slide-left {
    transform: translateX(-100vw);
}

.databank-content-view {
    position: absolute;
    right: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #ffcc99 0%, #ff6600 100%);
    transform: translateX(100vw);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    gap: 20px;
    overflow: hidden;
}

.databank-content-view.slide-in {
    transform: translateX(0);
}

/* Unified Accordion Styles */
.accordion-container,
.databank-accordion-container {
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
}

.accordion-item,
.databank-accordion-item {
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.accordion-item:hover,
.databank-accordion-item:hover {
    transform: translateY(-2px);
}

.accordion-header,
.databank-accordion-header {
    background: linear-gradient(135deg, var(--primary-color, #28a745), var(--secondary-color, #20c997));
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    user-select: none;
}

.accordion-header {
    color: #333;
}

.databank-accordion-header {
    color: white;
}

.accordion-header:hover,
.databank-accordion-header:hover {
    filter: brightness(1.1);
}

.accordion-header.active,
.databank-accordion-header.active {
    filter: brightness(1.2);
}

.accordion-icon,
.databank-accordion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon,
.databank-accordion-header.active .databank-accordion-icon {
    transform: rotate(180deg);
}

.accordion-content,
.databank-accordion-content {
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active,
.databank-accordion-content.active {
    max-height: 600px;
    padding: 0 25px 20px 25px;
}

.sub-category,
.databank-sub-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    margin: 10px 0;
    background: linear-gradient(135deg, #f1f3f4, #e8eaed);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #5f6368;
}

.sub-category:hover,
.databank-sub-category:hover {
    background: linear-gradient(135deg, #e8eaed, #dadce0);
    transform: translateX(3px);
}

.sub-category.active,
.databank-sub-category.active {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.sub-category-icon,
.databank-sub-category-icon {
    transition: transform 0.3s ease;
}

.sub-category.active .sub-category-icon,
.databank-sub-category.active .databank-sub-category-icon {
    transform: rotate(90deg);
}

.sub-category-content,
.databank-sub-category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-left: 15px;
}

.sub-category-content.active,
.databank-sub-category-content.active {
    max-height: 400px;
    padding: 10px 0;
}

.sub-option,
.databank-sub-option {
    display: flex;
    width: 100%;
    padding: 15px 20px;
    margin: 8px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    border-radius: 10px;
    color: #4a5568;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    align-items: center;
    justify-content: space-between;
}

.sub-option:hover,
.databank-sub-option:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateX(5px);
    color: #4a5568;
    text-decoration: none;
}

.sub-option.folder-option,
.databank-folder-option {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7) !important;
}

.sub-option.folder-option:hover,
.databank-folder-option:hover {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e) !important;
}

.sub-option span,
.databank-sub-option span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-option-indicator,
.databank-sub-option-indicator {
    opacity: 0.6;
    transition: all 0.3s ease;
}

.sub-option:hover .sub-option-indicator,
.databank-sub-option:hover .databank-sub-option-indicator {
    opacity: 1;
    transform: translateX(3px);
}

/* No Content States */
.no-content,
.databank-no-content,
.no-categories,
.databank-no-categories {
    text-align: center;
    padding: 30px 20px;
    color: #666;
}

.no-categories,
.databank-no-categories {
    padding: 40px 20px;
}

.no-content i,
.databank-no-content i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.no-categories i,
.databank-no-categories i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #999;
}

.no-categories h3,
.databank-no-categories h3 {
    margin-bottom: 15px;
    color: #555;
}

.no-categories p,
.databank-no-categories p {
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Category Color Schemes */
.category-1 { --primary-color: #66cc66; --secondary-color: #009900; }
.category-2 { --primary-color: #70d070; --secondary-color: #00aa00; }
.category-3 { --primary-color: #5cbf5c; --secondary-color: #008800; }
.category-4 { --primary-color: #52b352; --secondary-color: #007700; }
.category-5 { --primary-color: #4db84d; --secondary-color: #006600; }
.category-6 { --primary-color: #339933; --secondary-color: #005500; }
.category-7 { --primary-color: #1a661a; --secondary-color: #003300; }
.category-8 { --primary-color: #2d662d; --secondary-color: #004400; }

/* Navigation Cards */
.content-navigation-card,
.databank-content-navigation-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 1200px;
    flex-shrink: 0;
}

.content-header,
.databank-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.navigation-controls,
.databank-navigation-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.nav-button,
.databank-nav-button {
    background: rgba(40, 167, 69, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #28a745;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.nav-button:hover:not(:disabled),
.databank-nav-button:hover:not(:disabled) {
    background: rgba(40, 167, 69, 0.3);
    transform: scale(1.1);
}

.nav-button:disabled,
.databank-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-info,
.databank-nav-info {
    color: #28a745;
    font-weight: 600;
    font-size: 1rem;
    min-width: 80px;
    text-align: center;
}

/* Content Display */
.content-display-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 1200px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.back-button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    background: white;
    color: #333;
    text-decoration: none;
}

.breadcrumb-title,
.databank-breadcrumb-title {
    background: rgba(255,255,255,0.9);
    padding: 12px 25px;
    border-radius: 25px;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    height: 44px;
    display: flex;
    align-items: center;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb-separator {
    color: #999;
    margin: 0 8px;
}

.loading-indicator,
.databank-loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #666;
    flex: 1;
    padding: 60px;
}

.loading-indicator i,
.databank-loading-indicator i {
    font-size: 3rem;
    color: #999;
}

.loading-indicator p,
.databank-loading-indicator p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.content-display,
.databank-content-display {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    color: #333;
    display: flex;
    flex-direction: column;
}

.error-display,
.databank-error-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #666;
    text-align: center;
    flex: 1;
    padding: 60px;
}

.error-display i,
.databank-error-display i {
    font-size: 3rem;
    color: #dc3545;
}

.error-display h3,
.databank-error-display h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.error-display p,
.databank-error-display p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Content Type Styles */
.text-content h2,
.html-content h2,
.image-content h2,
.document-content h2,
.video-content h2,
.databank-text-content h2,
.databank-html-content h2,
.databank-image-content h2,
.databank-document-content h2,
.databank-video-content h2 {
    margin-bottom: 20px;
    color: #4a5568;
    font-size: 1.8rem;
}

.text-body,
.html-body,
.databank-html-body {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    line-height: 1.6;
}

.text-body {
    border-left: 4px solid #667eea;
}

.html-body,
.databank-html-body {
    border-left: 4px solid #28a745;
}

.text-body pre {
    white-space: pre-wrap;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #555;
}

.image-container,
.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 300px;
}

.video-container {
    width: 100%;
}

.content-image,
.content-video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.content-image {
    object-fit: contain;
}

.content-video {
    width: auto;
    height: auto;
    background: #000;
}

.document-info {
    text-align: center;
    padding: 40px;
}

.document-info i {
    color: #dc3545;
    margin-bottom: 20px;
    font-size: 3rem;
}

.document-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #666;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #007bff;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.download-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
    color: white;
    text-decoration: none;
}

.video-error {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-error h2 {
    margin-bottom: 20px;
    color: #4a5568;
    font-size: 1.8rem;
}

.video-error-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    color: #666;
}

.video-error-content i {
    color: #f39c12;
    margin-bottom: 20px;
    font-size: 3rem;
}

.video-error-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.video-error-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer-link {
    margin-top: 30px;
    text-align: center;
}

.footer-link a {
    background: #003300;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link a:hover {
    background: #004400;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(40, 167, 69, 0.3);
    border-radius: 50%;
    border-top-color: #28a745;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== UTILITY CLASSES ===== */
.text-muted { color: #6c757d !important; }
.text-primary { color: #28a745 !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.mt-4 { margin-top: 1.5rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.ml-4 { margin-left: 1.5rem !important; }
.mr-4 { margin-right: 1.5rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pl-4 { padding-left: 1.5rem !important; }
.pr-4 { padding-right: 1.5rem !important; }
.mt-auto { margin-top: auto !important; }

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 992px) {
    .walking-view .content-card {
        width: 90vw;
        max-width: none;
        margin: 0 auto;
    }
    
    .walk-clicker-row {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .walk-clicker-btn {
        min-height: 85px;
        padding: 15px 10px;
    }
    
    .walk-clicker-label {
        font-size: 0.8rem;
    }
    
    .walk-clicker-count {
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
    }
    
    .walk-summary-horizontal {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        max-width: none;
    }
    
    .walk-stat-item-horizontal {
        padding: 20px 15px;
    }
    
    .walk-stat-item-horizontal .walk-stat-value {
        font-size: 1.8rem;
    }
    
    .walk-stat-item-horizontal .walk-stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .content-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .site-title,
    .page-title,
    .menu-title {
        font-size: 2rem;
    }
    
    .text-container {
        height: 60px;
    }
    
    .text-snippet {
        font-size: 1.1rem;
    }
    
    .top-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
    }
    
    .bell-icon,
    .home-icon,
    .walk-back-icon,
    .databank-back-icon {
        width: 45px;
        height: 45px;
    }
    
    .bell-icon i,
    .home-icon i,
    .walk-back-icon i,
    .databank-back-icon i {
        font-size: 1.3rem;
    }
    
    .account-section {
        min-height: 45px;
    }
    
    .logout-link {
        width: 30px;
        height: 30px;
    }
    
    .logout-icon {
        font-size: 0.9rem;
    }
    
    .footer-link a {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .walking-view .content-card {
        width: 95vw;
        padding: 30px 20px;
    }
    
    .walk-clicker-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .walk-clicker-btn {
        min-height: 70px;
        padding: 10px 6px;
    }

    .walk-clicker-label {
        font-size: 0.7rem;
    }

    .walk-clicker-count {
        width: 24px;
        height: 24px;
        font-size: 1rem;
    }

    .walk-overlay-content {
        width: 95%;
        padding: 15px;
    }

    .walk-summary-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .walk-stat-item-horizontal {
        padding: 8px;
    }

    .walk-stat-item-horizontal .walk-stat-value {
        font-size: 1.2rem;
    }

    .walk-stat-item-horizontal .walk-stat-label {
        font-size: 0.7rem;
    }
    
    .databank-content-view {
        padding: 15px;
        gap: 15px;
    }

    .databank-content-navigation-card {
        padding: 15px;
    }

    .databank-content-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .databank-navigation-controls {
        gap: 10px;
    }

    .databank-nav-button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .databank-nav-info {
        font-size: 0.9rem;
        min-width: 70px;
    }

    .databank-breadcrumb-title,
    .breadcrumb-title {
        flex-shrink: 1;
        font-size: 14px;
        padding: 10px 20px;
        max-width: 60%;
    }

    .databank-content-display,
    .content-display {
        padding: 20px;
    }

    .databank-accordion-header,
    .accordion-header {
        padding: 18px 20px;
        font-size: 1rem;
    }

    .databank-sub-option,
    .sub-option {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .table-container {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .about-content,
    .page-content {
        padding: 1rem 0;
    }
}

@media (max-width: 576px) {
    .site-title,
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .menu-title {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .walking-view .main-container {
        padding: 10px;
    }
    
    .walking-view .content-card {
        width: 98vw;
        padding: 20px 15px;
        margin: 0 auto;
    }
    
    .walk-clicker-btn {
        min-height: 55px;
        padding: 6px 3px;
    }
    
    .walk-clicker-label {
        font-size: 0.6rem;
    }
    
    .walk-clicker-count {
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
    }

    .walk-clicker-row {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 6px;
        max-width: 85%;
        margin: 0 auto;
    }

    .walk-summary-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .walk-stat-item-horizontal .walk-stat-value {
        font-size: 1.1rem;
    }

    .walk-stat-item-horizontal .walk-stat-label {
        font-size: 0.65rem;
    }
    
    .databank-accordion-header,
    .accordion-header {
        padding: 15px 18px;
        font-size: 0.95rem;
    }

    .databank-breadcrumb-title,
    .breadcrumb-title {
        font-size: 12px;
        padding: 8px 15px;
        max-width: 50%;
    }

    .databank-content-display,
    .content-display {
        padding: 15px;
    }
    
    .text-content h2,
    .html-content h2,
    .image-content h2,
    .document-content h2,
    .video-content h2 {
        font-size: 1.4rem;
    }

    .content-image,
    .content-video {
        max-height: 50vh;
    }
}