/* src/main/resources/static/theme.css */

body {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light {
    background-color: #f5f5f5;
    color: #1f2937;
}

body.dark {
    background-color: #0a0a0a;
    color: #d4d4d4;
}

body.has-fixed-header {
    padding-top: 96px;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 30;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
}

body.light .main-header {
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(209, 213, 219, 0.6);
}

body.dark .main-header {
    background-color: rgba(17, 17, 17, 0.92);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    /*box-shadow: 0 2px 12px #FFD700AA;*/
    border-bottom: 1px solid rgba(250, 204, 21, 0.18);
}

body.dark .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.logo svg {
    width: 32px;
    height: 32px;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

body.light .header-link {
    color: #4a5568;
}

body.light .header-link:hover {
    color: #4f46e5;
}

body.dark .header-link {
    color: #e5e7eb;
}

body.dark .header-link:hover {
    color: #facc15;
}

.theme-toggle-button {
    border-radius: 9999px;
    padding: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background-color 0.3s ease, color 0.3s ease;
}

body.light .theme-toggle-button {
    background-color: rgba(243, 244, 246, 0.9);
    color: #1f2937;
}

body.dark .theme-toggle-button {
    background-color: rgba(17, 24, 39, 0.9);
    color: #fbbf24;
}

.theme-toggle-button:hover {
    transform: translateY(-1px);
}

.panel {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(200, 200, 200, 0.4);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark .panel {
    background-color: #111111;
    border: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    /*box-shadow: 0 6px 20px #FFD700AA;*/
}

.section-surface {
    background-color: rgba(243, 244, 246, 0.8);
    border-radius: 1rem;
    border: 1px solid rgba(209, 213, 219, 0.6);
    padding: 1.5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark .section-surface {
    background-color: rgba(24, 24, 27, 0.9);
    border-color: rgba(255, 215, 0, 0.2);
}

.album-card,
.dashboard-card,
.photo-card,
.modal-card,
.thumbnail-item,
.qr-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(200, 200, 200, 0.2);
}

.album-card:hover,
.dashboard-card:hover,
.photo-card:hover,
.thumbnail-item:hover {
    transform: translateY(-4px);
}

body.dark .album-card,
body.dark .dashboard-card,
body.dark .photo-card,
body.dark .modal-card,
body.dark .thumbnail-item,
body.dark .qr-item {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.album-card,
.photo-card,
.thumbnail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.album-thumbnail,
.photo-card img,
.thumbnail-item img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.album-thumbnail,
.thumbnail-item img,
.photo-card img {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark .album-thumbnail,
body.dark .thumbnail-item img,
body.dark .photo-card img {
    border-color: rgba(255, 255, 255, 0.1);
}

.heading-text {
    color: #1f2937;
    transition: color 0.3s ease;
}

body.dark .heading-text {
    color: #f9fafb;
}

.subheading-text {
    color: #374151;
    transition: color 0.3s ease;
}

body.dark .subheading-text {
    color: #e5e7eb;
}

.muted-text {
    color: #4b5563;
    transition: color 0.3s ease;
}

body.dark .muted-text {
    color: #9ca3af;
}

.fine-print {
    color: #6b7280;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

body.dark .fine-print {
    color: #a1a1aa;
}

.link-text {
    color: #3b82f6;
    transition: color 0.3s ease;
}

body.dark .link-text {
    color: #facc15;
}

.message-box {
    padding: 1rem;
    border-radius: 0.75rem;
    border-width: 1px;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body.light .message-box-info {
    background-color: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

body.dark .message-box-info {
    background-color: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
    border-color: rgba(59, 130, 246, 0.35);
}

body.light .message-box-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

body.dark .message-box-success {
    background-color: rgba(34, 197, 94, 0.15);
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.35);
}

body.light .message-box-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

body.dark .message-box-error {
    background-color: rgba(185, 28, 28, 0.25);
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.35);
}

.status-text {
    color: inherit;
    transition: color 0.3s ease;
}

.marked-for-removal {
    opacity: 0.55;
    border-color: rgba(248, 113, 113, 0.7) !important;
}

.remove-photo-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.remove-photo-btn:hover {
    transform: scale(1.05);
}

body.dark .remove-photo-btn {
    background-color: #dc2626;
}

.editable-field,
.input-field,
.textarea-field {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background-color: rgba(255, 255, 255, 0.95);
    color: inherit;
    transition: border-color 0.2s ease, background-color 0.3s ease, color 0.3s ease;
}

body.dark .editable-field,
body.dark .input-field,
body.dark .textarea-field {
    background-color: rgba(17, 24, 39, 0.92);
    border-color: rgba(250, 204, 21, 0.4);
    color: #f9fafb;
}

.editable-field:focus,
.input-field:focus,
.textarea-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

body.dark .editable-field:focus,
body.dark .input-field:focus,
body.dark .textarea-field:focus {
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25);
}

.file-input {
    width: 100%;
    padding: 0.6rem;
    border-radius: 0.75rem;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    background-color: rgba(255, 255, 255, 0.95);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

body.dark .file-input {
    background-color: rgba(17, 24, 39, 0.92);
    border-color: rgba(250, 204, 21, 0.4);
    color: #f9fafb;
}

.file-input:hover {
    border-color: #3b82f6;
}

body.dark .file-input:hover {
    border-color: #facc15;
}

.thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.file-info {
    width: 100%;
    text-align: left;
}

.file-info label {
    font-size: 0.75rem;
    font-weight: 600;
    color: inherit;
    opacity: 0.85;
}

.upload-status {
    font-size: 0.9rem;
    font-weight: 600;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    backdrop-filter: blur(4px);
}

.modal-content,
.modal-card {
    max-width: 32rem;
    width: 90%;
    padding: 2rem;
}

.qr-modal-content {
    background-color: inherit;
    border-radius: 1rem;
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.qr-item .status {
    font-weight: 600;
    margin-top: 0.5rem;
}

.qr-item .status.active {
    color: #22c55e;
}

.qr-item .status.used {
    color: #ef4444;
}

.qr-item .status.printed {
    color: #facc15;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    width: 100%;
}

.stat-card {
    padding: 1.25rem;
    border-radius: 0.85rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light .stat-card.blue {
    background-color: #eff6ff;
    color: #1d4ed8;
}

body.dark .stat-card.blue {
    background-color: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
}

body.light .stat-card.purple {
    background-color: #f5f3ff;
    color: #6d28d9;
}

body.dark .stat-card.purple {
    background-color: rgba(124, 58, 237, 0.2);
    color: #ddd6fe;
}

body.light .stat-card.green {
    background-color: #ecfdf5;
    color: #047857;
}

body.dark .stat-card.green {
    background-color: rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
}

.divider-line {
    width: 100%;
    height: 1px;
    background-color: rgba(209, 213, 219, 0.7);
    margin: 1rem 0;
    transition: background-color 0.3s ease;
}

body.dark .divider-line {
    background-color: rgba(250, 204, 21, 0.25);
}

.footer {
    background-color: rgba(255, 255, 255, 0.95);
    color: #4b5563;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border-top: 1px solid rgba(209, 213, 219, 0.6);
}

body.dark .footer {
    background-color: rgba(17, 17, 17, 0.95);
    color: #9ca3af;
    border-top: 1px solid rgba(250, 204, 21, 0.2);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.hidden {
    display: none !important;
}

body.light .login-button{
    background: #3b82f6;
}

body.light .login-button:hover {
    background: #1d4ed8;
}

body.dark .login-button{
    background: #FFD700AA;
}

body.dark .login-button:hover {
    background: #FFD700FF;
    /*box-shadow: 0 0 5px 5px #facc15;*/
}

body.light .language-select{
    background: #eeeeee;
    color: #1a1a1a;
}

body.dark .language-select{
    background: #4a5568;
    color: #ffffff;
}
