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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation Menu */
.navbar {
    background: white;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.navbar ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar li {
    flex: 0 0 auto;
}

.navbar a {
    display: block;
    padding: 20px 30px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover {
    background: #f8f9ff;
    color: #667eea;
}

.navbar a.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f8f9ff;
}

.header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: #667eea;
    margin-bottom: 10px;
}

.header p {
    color: #666;
}

.upload-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.upload-area:hover {
    background: #f8f9ff;
    border-color: #764ba2;
}

.upload-area.dragging {
    background: #f0f3ff;
    border-color: #764ba2;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

input[type="file"] {
    display: none;
}

.btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #764ba2;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
    display: none;
}

.progress-bar.active {
    display: block;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    width: 0%;
}

.files-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.files-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.file-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.file-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    word-break: break-all;
    margin-bottom: 10px;
}

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

.file-hash {
    font-family: monospace;
    font-size: 12px;
    color: #999;
    word-break: break-all;
}

.tags-container {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tag {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tag-remove {
    cursor: pointer;
    font-weight: bold;
}

.tag-input {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.tag-input-wrapper {
    position: relative;
    display: inline-block;
}

.tag-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.tag-autocomplete.show {
    display: block;
}

.tag-suggestion {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.tag-suggestion:last-child {
    border-bottom: none;
}

.tag-suggestion:hover,
.tag-suggestion.selected {
    background: #f8f9ff;
    color: #667eea;
}

.tag-suggestion.no-results {
    color: #999;
    cursor: default;
}

.tag-suggestion.no-results:hover {
    background: white;
    color: #999;
}

.file-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}

.alert.show {
    display: block;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    display: none;
}

.empty-state.show {
    display: block;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.file-size {
    font-weight: 500;
    color: #764ba2;
}

.archive-badge {
    background: #f39c12;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 8px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #667eea;
    display: none;
}

.loading.show {
    display: block;
}

#filesList {
    display: none;
}

#filesList.show {
    display: block;
}

/* Page visibility */
.page {
    display: none;
}

.page.active {
    display: block;
}

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

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
}

.modal-header {
    margin-bottom: 20px;
}

.modal-header h3 {
    color: #333;
    margin-bottom: 10px;
}

.modal-body {
    margin-bottom: 25px;
}

.modal-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-option {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.modal-option.selected {
    border-color: #667eea;
    background: #f0f3ff;
}

.modal-option-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.modal-option-description {
    font-size: 14px;
    color: #666;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-secondary {
    background: #999;
    color: white;
}

.btn-secondary:hover {
    background: #777;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Tags Page */
.tags-browser {
    display: flex;
    gap: 20px;
    min-height: 600px;
}

.tags-sidebar {
    flex: 0 0 300px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tags-sidebar h3 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.tags-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tag-item {
    padding: 12px 16px;
    background: #f8f9ff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag-item:hover {
    background: #f0f3ff;
    border-color: #667eea;
}

.tag-item.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.tag-item-name {
    font-weight: 500;
}

.tag-item-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.tag-item.active .tag-item-count {
    background: rgba(255, 255, 255, 0.3);
}

.files-by-tag {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tag-files-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.tag-files-header h3 {
    color: #333;
}

.tag-files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Directory View */
.directory-item {
    padding: 12px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.directory-item:hover {
    background: #f8f9ff;
    border-color: #667eea;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}

.directory-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.directory-info {
    flex: 1;
    min-width: 0;
}

.directory-name {
    font-weight: 500;
    color: #333;
    word-break: break-word;
}

.directory-meta {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.directory-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.directory-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* File Browser / VFS */
.file-browser {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: #667eea;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.breadcrumb-item:hover {
    background: #667eea;
    color: white;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: #999;
}

.browser-content {
    min-height: 400px;
}

.browser-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.browser-folder {
    padding: 15px;
    background: #f8f9ff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.browser-folder:hover {
    background: #f0f3ff;
    border-color: #667eea;
    transform: translateX(4px);
}

.browser-folder-icon {
    font-size: 24px;
}

.browser-folder-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.browser-file {
    padding: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.browser-file:hover {
    background: #f8f9ff;
    border-color: #667eea;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}

.browser-file-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.browser-file-info {
    flex: 1;
    min-width: 0;
}

.browser-file-name {
    font-weight: 500;
    color: #333;
    word-break: break-word;
    margin-bottom: 4px;
}

.browser-file-meta {
    font-size: 12px;
    color: #999;
}

.browser-file-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.browser-file-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* Virtual Paths */
.virtual-paths {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.virtual-path {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-family: monospace;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.virtual-path-remove {
    cursor: pointer;
    font-weight: bold;
    color: #c62828;
}

.virtual-path-add {
    background: #667eea;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.virtual-path-add:hover {
    background: #764ba2;
}

.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.path-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: monospace;
}

.path-input:focus {
    outline: none;
    border-color: #667eea;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #667eea;
    border-radius: 6px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-suggestion {
    padding: 10px 12px;
    cursor: pointer;
    font-family: monospace;
    font-size: 14px;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.autocomplete-suggestion:last-child {
    border-bottom: none;
}

.autocomplete-suggestion:hover,
.autocomplete-suggestion.selected {
    background-color: #f5f7ff;
    color: #667eea;
}

.existing-paths {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.existing-path-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9ff;
    border-radius: 6px;
    font-size: 12px;
    font-family: monospace;
}

.existing-path-remove {
    color: #dc3545;
    cursor: pointer;
    font-weight: bold;
}

.existing-path-remove:hover {
    color: #c82333;
}

/* File Detail Page */
.detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.back-button {
    padding: 10px 16px !important;
    font-size: 14px;
}

.detail-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-section h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-field {
    margin-bottom: 20px;
}

.detail-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-field input,
.detail-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.detail-field input:focus,
.detail-field textarea:focus {
    outline: none;
    border-color: #667eea;
}

.detail-field textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.detail-readonly {
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    font-family: monospace;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.detail-paths {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-path-item {
    padding: 10px 12px;
    background: #f8f9ff;
    border-radius: 6px;
    font-size: 14px;
    font-family: monospace;
    color: #667eea;
}

.detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.file-preview {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.file-preview-icon {
    font-size: 64px;
    margin-bottom: 10px;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

/* File content preview styles */
.file-content-preview {
    margin-top: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-content-preview img {
    max-width: 100%;
    max-height: 600px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-content-preview video,
.file-content-preview audio {
    max-width: 100%;
    border-radius: 8px;
}

.file-content-preview iframe {
    width: 100%;
    height: 600px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.file-content-preview pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    overflow: auto;
    max-height: 600px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    width: 100%;
}

/* Search Page Styles */
.search-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.search-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.search-results {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-results-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.search-results-header h3 {
    color: #333;
    font-size: 20px;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-result-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.search-result-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.search-result-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    word-break: break-word;
}

.search-result-meta {
    font-size: 14px;
    color: #666;
}

.search-result-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.search-matches {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.search-match {
    margin-bottom: 10px;
}

.search-match:last-child {
    margin-bottom: 0;
}

.search-match-field {
    font-weight: 600;
    color: #667eea;
    font-size: 14px;
    margin-bottom: 5px;
}

.search-match-context {
    font-family: monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    word-break: break-word;
    white-space: pre-wrap;
}

.search-highlight {
    background-color: #ffeb3b;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Dig page styles */
.dig-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dig-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.dig-count {
    flex: 1;
    text-align: right;
    color: #666;
    font-size: 14px;
}

.dig-results {
    min-height: 200px;
}

.file-missing-warning {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}

/* Admin Page Styles */
.admin-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-item label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.setting-input {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.setting-input:focus {
    outline: none;
    border-color: #667eea;
}

.setting-item small {
    font-size: 12px;
    color: #666;
}

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

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

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.largest-files-list {
    max-height: 500px;
    overflow-y: auto;
}

.largest-file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.largest-file-item:hover {
    background: #f8f9ff;
    border-color: #667eea;
}

.largest-file-rank {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    min-width: 40px;
    text-align: center;
}

.largest-file-icon {
    font-size: 32px;
}

.largest-file-info {
    flex: 1;
    min-width: 0;
}

.largest-file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    word-break: break-word;
}

.largest-file-meta {
    font-size: 14px;
    color: #666;
}

.largest-file-size {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    white-space: nowrap;
}

.logs-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.logs-controls label {
    font-weight: 600;
    color: #333;
}

.logs-controls select {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.activity-logs {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.log-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

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

.log-item:hover {
    background: #f8f9fa;
}

.log-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.log-category {
    font-weight: 600;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
}

.log-category.upload {
    background: #28a745;
}

.log-category.tagging {
    background: #007bff;
}

.log-category.notes {
    background: #ffc107;
}

.log-category.settings {
    background: #6c757d;
}

.log-category.maintenance {
    background: #dc3545;
}

.log-timestamp {
    font-size: 12px;
    color: #999;
}

.log-status {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.log-status.success {
    background: #d4edda;
    color: #155724;
}

.log-status.error {
    background: #f8d7da;
    color: #721c24;
}

.log-action {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.log-details {
    font-size: 13px;
    color: #666;
    font-family: monospace;
}

.logs-load-more {
    text-align: center;
    margin-top: 15px;
}

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

.function-item {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.function-item:hover {
    border-color: #667eea;
}

.function-item h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.function-item p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* EXIF Data Styles */
.exif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.exif-item {
    padding: 8px;
    background: white;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
}

.exif-item strong {
    color: #667eea;
    display: inline-block;
    min-width: 120px;
}
