/* Modern File Manager Styles */
:root {
    /* Professional dark blue-grey color scheme */
    --bg-black: #000000;         /* Black background */
    --bg-dark: #1a202c;          /* Dark background */
    --bg-surface: #2d3748;       /* Surface background */
    --bg-hover: #364153;         /* Hover state */
    --primary-color: #63b3ed;    /* Bright blue */
    --primary-dark: #4299e1;     /* Darker blue */
    --danger-color: #fc8181;     /* Soft red */
    --text-primary: #f7fafc;     /* Almost white */
    --text-secondary: #cbd5e0;   /* Light grey */
    --text-muted: #a0aec0;       /* Muted text */
    --border-color: #4a5568;     /* Border color */
    --font-mono: 'Roboto Mono', monospace;
    --shadow-sm: 0 0px 0px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.5); 
    
    /* Fallback design colors */
    --fallback-gradient-start: #1a202c;
    --fallback-gradient-end: #2d3748;
    --fallback-box-bg: rgba(45, 55, 72, 0.85);
}

/* Base notification styles */
.notification {
    background: var(--bg-surface);
    border: 1px solid rgba(229, 231, 235, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    width: 100%;
    transform: translateX(100vw);
    opacity: 0;
    transition: transform 0.3s ease-out,
                opacity 0.3s ease-out;
    position: relative;
}

/* Container positions */
#notification-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}

#processing-notification-container {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    width: 33vw;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
    pointer-events: none;
}

/* Notification types */
.notification.processing {
    background: #fef08a;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transform: translateX(-100vw);
    color: #000000;
}

.notification.success { border-left-color: #48bb78; }
.notification.error { border-left-color: #f56565; }
.notification.warning { border-left-color: #ed8936; }

/* Animation states */
.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.removing {
    opacity: 0;
    transform: translateX(100%);
}

.notification.processing.show { transform: translateX(0); }
.notification.processing.removing { transform: translateX(-100%); }

/* Content styles */
.notification-content {
    flex-grow: 1;
    overflow: hidden;
}

.notification-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}

.notification-message::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--bg-surface));
}

.notification.processing .notification-message::after {
    background: linear-gradient(to right, transparent, #fef08a);
}

.notification.processing .notification-title,
.notification.processing .notification-message {
    color: #000000;
}

/* Breadcrumb styles */
#breadcrumb {
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--bg-surface);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.0rem;
    min-height: 2.5rem;  /* Add fixed height */
}

#breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;  /* Change to inline-flex */
    align-items: center;
    gap: 0.25rem;
    min-height: 1.5rem;  /* Add minimum height */
}

#breadcrumb a:hover {
    text-decoration: underline;
}

#breadcrumb i {
    font-size: 1.0rem;
    color: var(--text-secondary);
    width: 1.25rem;  /* Add fixed width */
    display: inline-flex;  /* Add flex display */
    align-items: center;
    justify-content: center;  /* Center the icon */
}

#breadcrumb span {
    color: var(--text-primary);
    display: inline-flex;  /* Add flex display */
    align-items: center;
    min-height: 1.5rem;  /* Match the anchor height */
}

/* File list table */
.table-container {
    width: 100%;
    overflow-x: auto;
}

#file-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    table-layout: fixed;
}

#file-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-weight: bold;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#file-table th:first-child {
    width: 40px;
}

#file-table th:nth-child(2) {
    width: 50%;
}

#file-table th:nth-child(3) {
    width: 120px;
}

#file-table th:nth-child(4) {
    width: calc(50% - 160px);
}

#file-table td {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.file-item {
    border-bottom: 1px solid var(--border-color);
}

.file-item:hover {
    background-color: var(--bg-hover);
}

.file-item td {
    padding: 0.5rem 1rem;
}

/* Checkbox styles */
.file-item input[type="checkbox"] {
    margin: 0;
    padding: 0;
    width: 1rem;
    height: 1rem;
}

/* Name cell layout */
.name-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 1rem;
    min-width: 200px;
    gap: 0.5rem;
}

.name-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    padding: 0.25rem 0;
}

.folder-icon, .file-icon {
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
}

.folder-name, .file-name {
    flex: 1;
    width: 25ch;
    word-break: break-all;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block !important;
}

/* Zip container */
.zip-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.zip-icon {
    opacity: 0;
    cursor: pointer;
    color: var(--text-secondary);
    transition: opacity 0.2s ease;
    padding: 0.25rem;
}

.file-item:hover .zip-icon {
    opacity: 1;
}

.zip-icon:hover {
    color: var(--primary-color);
}

.item-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Hover effects */
.name-container:hover .folder-name,
.name-container:hover .file-name {
    color: var(--primary-color);
}

.folder-icon {
    color: var(--folder-color, #e9b44c);
}

.name-container:hover .folder-icon {
    color: var(--primary-color);
}

/* Size and time cells */
.size-cell {
    font-family: var(--font-mono, monospace);
    text-align: right;
    padding-right: 2rem !important;
    white-space: nowrap;
    position: relative;
}

.time-cell {
    color: var(--text-secondary);
    white-space: nowrap;
    text-align: right;
    padding-right: 1rem !important;
    font-family: var(--font-mono, monospace);
}

/* Update animation */
.updating {
    position: relative;
}

.updating::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(var(--primary-rgb), 0.1);
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* File icons */
.fa-folder { color: #e9b44c; }
.fa-file-pdf { color: #dc2626; }
.fa-file-word { color: #2563eb; }
.fa-file-excel { color: #059669; }
.fa-file-powerpoint { color: #ea580c; }
.fa-file-image { color: #7c3aed; }
.fa-file-audio { color: #db2777; }
.fa-file-video { color: #9333ea; }
.fa-file-archive { color: #b45309; }
.fa-file-code { color: #0891b2; }
.fa-file { color: #6b7280; }

/* File Tree Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes updatePulse {
    0% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(var(--primary-rgb), 0.1);
    }
    100% {
        background-color: transparent;
    }
}

/* Sorting styles */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.sortable i {
    margin-left: 5px;
    opacity: 0.3;
    font-size: 0.8em;
}

.sortable:hover i {
    opacity: 0.7;
}

.sortable.asc i::before {
    content: "\f0de"; /* fa-sort-up */
    opacity: 1;
    color: var(--primary-color);
}

.sortable.desc i::before {
    content: "\f0dd"; /* fa-sort-down */
    opacity: 1;
    color: var(--primary-color);
}

.sortable.active i {
    opacity: 1;
    color: var(--primary-color);
}

/* Base Styles */
body {
    font-family: 'Roboto Flex', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    margin: 0;
    padding: 1.5rem;
    line-height: 1.5;
    min-height: 100vh;
}

body.uploading #container {
    filter: blur(5px);
    transition: filter 0.3s ease;
    pointer-events: none; /* Disable interactions with the blurred content */
}

body.uploading::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 999; /* Just below the progress overlay */
    cursor: not-allowed;
}

#container {
    max-width: 100%;
    min-width: 800px;
    margin: 0 auto;
    background: var(--bg-surface);
    padding: 2rem;
    padding-top: 1.2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    padding-bottom: 45px;
}

h1 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
}

h1 i {
    color: var(--primary-color);
}

.header-logo {
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
    text-decoration: none;
}

.header-logo img {
    display: block;
    height: 32px;
    padding-top: 0.8rem;
}

/* Drop Area */
#drop-area {
    border: 2px dashed var(--border-color);
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bg-surface);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

#drop-area.drag-over {
    border-color: var(--primary-color);
    background: var(--bg-hover);
    transform: scale(1.01);
}

#drop-area:hover {
    border-color: var(--primary-color);
    background: var(--bg-hover);
}

.upload-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

#drop-area.drag-over .upload-icon {
    transform: scale(1.2);
}

.upload-text {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
}

.upload-subtext {
    color: var(--text-muted);
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
}

/* Hide the file input */
#fileElem {
    display: none;
}

.upload-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
}

.upload-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Controls */
#controls {
    display: flex;
    justify-content: flex-start;
    margin: 1rem 0;
    min-height: 40px;
    gap: 8px;
}

#controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
    height: 40px;
    width: 180px;
    white-space: nowrap;
}

#controls button i {
    margin-right: 8px;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

#controls .delete-btn {
    background-color: var(--bg-surface);
    color: var(--danger-color);
    border-color: var(--danger-color);
}

#controls button:hover {
    background-color: var(--bg-hover);
}

#controls .delete-btn:hover {
    background-color: var(--danger-color);
    color: var(--text-primary);
}

/* Table Container */
.table-container {
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

/* Progress Overlay */
#progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001; /* Ensure it's above the blocking overlay */
    pointer-events: none;
}

body.uploading #progress-overlay {
    filter: none;
    pointer-events: auto;
}

body.uploading #progress-overlay .progress {
    pointer-events: none;
}

body.uploading #progress-overlay #cancel-button {
    pointer-events: auto;
}

.progress {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: 0.75rem;
    width: 500px;
    box-shadow: var(--shadow-lg);
    pointer-events: all;
    position: relative;
    border: 1px solid rgba(229, 231, 235, 0.2);
}

#cancel-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    background: #fc8181;
    border-radius: 50%;
    padding: 0;
}

#cancel-button span {
    display: none;
}

#cancel-button:hover {
    background: #f56565;
    transform: scale(1.1);
}

#progress-text {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.secondary-progress-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.progress-bar {
    width: 100%;
    background: var(--border-color);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.progress-bar:last-child {
    margin-bottom: 0;
}

.progress-bar.yellow div {
    background: #fbbf24;
}

.progress-bar div {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

/* Home Page Styles */
body.home {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg-black); /* Set the background to black */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

.welcome-container {
    background: rgba(45, 55, 72, 0.85);
    border-radius: 0.5rem;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    margin: 0 auto;
}

.welcome-container h1 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-top: 0;
}

.welcome-container p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.header-logo {
    max-height: 60px;
    width: 100%;
    object-fit: contain;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
}

.login-form input {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
    background: rgba(26, 32, 44, 0.5);
    color: var(--text-primary);
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    height: 50px;
}

.login-form input::placeholder {
    color: var(--text-muted);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 179, 237, 0.3);
}

.cta-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
    width: 100%;
    box-sizing: border-box;
    height: 50px;
}

.cta-button:hover {
    background: var(--primary-dark);
}

.error-message {
    color: var(--danger-color);
    margin-top: 1rem;
    text-align: center;
    min-height: 1.5rem;
}

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

/* Hover animations for interactive elements */
.file-name:hover,
.folder-name:hover {
    color: var(--primary-color);
}

/* Loading spinner animation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Sticky Navigation */
.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sticky-nav {
    position: sticky;
    top: 0;
    background: var(--bg-surface);
    z-index: 100;
    padding-bottom: 1px;
    margin-bottom: 0;
}

.sticky-nav::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to bottom, var(--bg-surface), transparent);
    pointer-events: none;
}

.sticky-nav h1 {
    margin-top: 0;
}

/* Container */
#container {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 1.2rem;
    color: var(--text-primary);
    transition: opacity 0.3s ease;
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* File List Transitions */
.empty-message {
    transition: opacity 0.15s ease;
}

/* Loading state for table */
#file-table tbody.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-message td {
    background: var(--bg-surface) !important;
}

.loading-message i {
    display: inline-block;
    animation: spin 1s linear infinite;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.loading-indicator i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.loading-indicator .loading-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.loading-indicator .loading-subtext {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Table Layout */
#file-table-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

#file-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    background-color: var(--bg-surface);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#file-table thead {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

#file-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

#file-table thead th:nth-child(3),
#file-table thead th:nth-child(4) {
    text-align: right;
    padding-right: 1rem !important;
}

#file-table tbody tr {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

#file-table tbody tr:hover {
    background-color: var(--bg-hover);
}

#file-table tbody tr td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

#file-table tbody tr td:nth-child(3),
#file-table tbody tr td:nth-child(4) {
    text-align: right;
    padding-right: 1rem !important;
}

#file-table tbody tr:last-child td {
    border-bottom: none;
}

/* Checkbox column styling */
#file-table tbody tr td:first-child {
    width: 50px;
    text-align: center;
}

#file-table tbody tr td input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Name column styling */
.name-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.name-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.folder-icon, .file-icon {
    margin-right: 0.5rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.zip-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.zip-icon {
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.zip-icon:hover {
    color: var(--primary-color);
}

.item-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.size-cell, .time-cell {
    width: 10%;  /* Adjust width to bring columns closer */
    min-width: 120px;
}

/* Login form styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto;
}

.login-form input[type="password"] {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.2s ease;
}

.login-form input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-message {
    color: var(--danger-color);
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Logout button styles */
.logout-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.0rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* Upload status icon styles */
.upload-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1rem;
    transition: color 0.3s ease;
    cursor: default;
}

.upload-status-icon.active {
    color: var(--primary-color);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.logout-container {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Footer Styles */
.footer-container {
    width: 100%;
    max-height: 40px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    font-family: 'Roboto', sans-serif;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s, max-height 0.3s ease-in-out;
}

.footer-container.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0s, max-height 0.3s ease-in-out;
}

.footer-container.expanded {
    max-height: 300px;
    overflow-y: auto;
}

.footer-toggle {
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: background-color 0.2s ease;
}

.footer-toggle:hover {
    background-color: var(--bg-hover);
}

.footer-toggle span {
    margin-left: 8px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    padding: 15px;
    color: var(--text-secondary);
    justify-content: flex-start;
    text-align: left;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    padding: 0 15px;
    margin-bottom: 15px;
    text-align: left;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 500;
    text-align: left;
}

.footer-section p {
    font-size: 0.85rem;
    margin: 5px 0;
    text-align: left;
}

.company-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem !important;
}

.company-address {
    margin-bottom: 10px !important;
}

.footer-section p i {
    width: 16px;
    margin-right: 5px;
    text-align: center;
}

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

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

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.footer-links a i {
    margin-right: 5px;
}

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

/* Responsive footer adjustments */
@media (max-width: 768px) {
    .footer-section {
        flex: 100%;
        min-width: 100%;
    }
    
    .footer-container.expanded {
        max-height: 500px;
    }
}
