/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
}

/* Common background styles */
.login-container,
.gallery-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #111827 0%, #000000 50%, #111827 100%);
    position: relative;
    overflow: hidden;
}

/* Red subtle overlay and glow circles for red theme */
.bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(239, 68, 68, 0.05);
    backdrop-filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.bg-circle-1 {
    top: 25%;
    left: 25%;
    width: 288px;
    height: 288px;
    background: rgba(239, 68, 68, 0.1);
    animation-delay: 0s;
}

.bg-circle-2 {
    bottom: 25%;
    right: 25%;
    width: 384px;
    height: 384px;
    background: rgba(239, 68, 68, 0.05);
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Login page styles */
.login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    position: relative;
    z-index: 10;
}

.header-section {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease-out;
}

.main-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #9ca3af;
    font-size: 1.125rem;
}

.login-card {
    width: 100%;
    max-width: 28rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid #374151;
    border-radius: 0.75rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: scaleIn 0.6s ease-out;
}

.card-header {
    padding: 1.5rem 1.5rem 0;
    text-align: center;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.card-description {
    color: #9ca3af;
    font-size: 0.875rem;
}

.login-form {
    padding: 1.5rem;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.375rem;
    color: #ffffff;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: #6b7280;
}

.form-input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.login-button {
    width: 100%;
    padding: 0.75rem;
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-button:hover:not(:disabled) {
    background: #b91c1c;
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.25);
}

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

.loading-spinner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-text {
    text-align: center;
    margin-top: 1.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    animation: fadeIn 1s ease-out 0.5s both;
}

/* Gallery page styles */
.gallery-header {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #374151;
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-content {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

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

.header-icon {
    font-size: 1.75rem;
    color: #dc2626;
}

.header-title {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, #ffffff, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logout-button {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #374151;
    color: #d1d5db;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.logout-button:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.gallery-main {
    max-width: 72rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    position: relative;
    z-index: 10;
}

.gallery-intro {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out;
}

.gallery-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-subtitle {
    color: #9ca3af;
    font-size: 1.125rem;
}

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

.image-card {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid #374151;
    border-radius: 0.75rem;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    position: relative;
}

.image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0.5rem;
    background: rgba(17, 24, 39, 0.4);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.image-container img,
.image-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.image-actions {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .image-container:active .image-actions,
    .image-container.touch-active .image-actions,
    .image-container.show-actions .image-actions {
        opacity: 1;
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.5);
        padding: 0.5rem;
        border-radius: 0.5rem;
    }

    .image-actions {
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.2s ease;
    }

    .action-button {
        width: 2.75rem;
        height: 2.75rem;
    }

    .action-button:active {
        transform: scale(0.95);
    }

    .image-container {
        height: 250px;
    }
}

/* Desktop hover effects */
@media (hover: hover) {
    .image-grid .image-container:hover img,
    .image-grid .image-container:hover video {
        transform: scale(1.05);
    }

    .image-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 25px 50px -12px rgba(239, 68, 68, 0.1);
    }

    .image-card:hover .image-actions {
        opacity: 1;
        transform: translateY(0);
    }

    .image-container:hover .play-icon {
        opacity: 1;
        background: rgba(0, 0, 0, 0.8);
    }

    .action-button:hover {
        transform: translateY(-2px);
    }
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.image-card:hover .image-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-button {
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.action-button:hover {
    transform: translateY(-2px);
}

.action-button.copy-button:hover {
    background: rgba(59, 130, 246, 0.9);
    border-color: rgba(59, 130, 246, 0.5);
}

.action-button.delete-button:hover {
    background: rgba(239, 68, 68, 0.9);
    border-color: rgba(239, 68, 68, 0.5);
}

.image-info {
    padding: 1rem;
    border-top: 1px solid #374151;
}

.image-date {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Modal styles */
.modal,
.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

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

.modal-content,
.confirm-content {
    background: rgba(31, 41, 55, 0.95);
    padding: 2rem;
    border-radius: 0.75rem;
    max-width: 90%;
    width: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.confirm-content {
    max-width: 400px;
    width: 90%;
}

#modalMediaContainer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    touch-action: none;
    -webkit-overflow-scrolling: touch;
}

.modal-media {
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Video specific styles */
video.modal-media {
    width: 100%;
    height: 100%;
    background: black;
}

/* Remove hover effects and overlays in modal */
#modalMediaContainer .image-container,
#modalMediaContainer video,
#modalMediaContainer img {
    background: none;
}

#modalMediaContainer .image-container:hover {
    background: none;
}

#modalMediaContainer .image-container::before,
#modalMediaContainer .image-container::after {
    display: none;
}

/* Video controls styling */
video::-webkit-media-controls-panel {
    background: rgba(17, 24, 39, 0.9) !important;
}

video::-webkit-media-controls-play-button,
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-timeline,
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display {
    color: white;
}

/* Ensure video controls are always visible in modal */
#modalMediaContainer video::-webkit-media-controls-panel {
    display: flex !important;
    opacity: 1 !important;
}

/* Modal action buttons */
.modal-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 50;
    font-size: 1.25rem;
}

.modal-close:hover {
    background: #4b5563;
    transform: scale(1.1);
}

.modal-copy {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 50;
    font-size: 0.875rem;
}

.modal-copy:hover {
    background: rgba(31, 41, 55, 0.8);
    transform: translateY(-1px);
}

/* Modal specific styles */
.modal-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 0.5rem;
}

/* Confirmation modal specific styles */
.confirm-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 1rem;
}

.confirm-message {
    color: #9ca3af;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.confirm-message strong {
    color: #ffffff;
    font-weight: 600;
}

.confirm-input {
    margin: 1.5rem 0;
}

.confirm-input .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid #374151;
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.confirm-input .form-input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.confirm-button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.confirm-button.cancel {
    background: rgba(55, 65, 81, 0.8);
    color: #ffffff;
    border-color: #4b5563;
}

.confirm-button.cancel:hover {
    background: rgba(75, 85, 99, 0.8);
    transform: translateY(-1px);
}

.confirm-button.delete {
    background: rgba(220, 38, 38, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.confirm-button.delete:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .modal-content,
    .confirm-content {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
    }

    .confirm-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .confirm-button {
        width: 100%;
    }

    #modalMediaContainer {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-media {
        max-width: 100%;
        max-height: 100vh;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    video.modal-media {
        width: 100%;
        height: 100%;
    }

    /* Improve video controls visibility on mobile */
    video::-webkit-media-controls-panel {
        background: rgba(0, 0, 0, 0.7);
    }

    video::-webkit-media-controls-play-button,
    video::-webkit-media-controls-timeline,
    video::-webkit-media-controls-current-time-display,
    video::-webkit-media-controls-time-remaining-display,
    video::-webkit-media-controls-mute-button,
    video::-webkit-media-controls-volume-slider {
        display: flex !important;
    }

    .modal-close,
    .modal-copy {
        position: fixed;
        z-index: 50;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
    }

    .modal-copy {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Toast notification */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: #1f2937;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border: 1px solid #374151;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .gallery-title {
        font-size: 2rem;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .gallery-main {
        padding: 2rem 1rem;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .toast {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        transform: translateY(-100%);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .login-card {
        max-width: 100%;
    }
    
    .header-left {
        gap: 0.5rem;
    }
}

/* Config section styles */
.config-section {
    margin: 2rem 0;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.config-section.hidden {
    margin: 0;
}

.config-section:not(.hidden) {
    opacity: 1;
    height: auto;
}

.section-title {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.config-card {
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid #374151;
    border-radius: 0.75rem;
    padding: 1rem;
    position: relative;
}

.config-code {
    position: relative;
    background: rgba(31, 41, 55, 0.8);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.config-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.config-button {
    background: rgba(55, 65, 81, 0.8);
    border: 1px solid #4b5563;
    border-radius: 0.375rem;
    color: #ffffff;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.config-button:hover {
    background: rgba(75, 85, 99, 0.8);
    transform: translateY(-1px);
}

.config-button i {
    font-size: 1rem;
}

pre#configText {
    color: #ffffff;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
    padding-top: 1rem;
}

/* Action buttons container */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Config toggle button */
.config-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: var(--gray-800);
    color: var(--gray-100);
    border: 1px solid var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
}

.config-toggle:hover {
    background: var(--gray-700);
}

.config-toggle.active {
    background: var(--primary-600);
    border-color: var(--primary-500);
}

.config-toggle i {
    transition: transform 0.2s;
}

.config-toggle.active i {
    transform: rotate(180deg);
}

/* Delete account button */
.delete-account-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.5rem;
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.delete-account-btn:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

/* Responsive adjustments for action buttons */
@media (max-width: 640px) {
    .action-buttons {
        flex-direction: column;
    }

    .config-toggle,
    .delete-account-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Verification page styles */
.verification-result {
    text-align: center;
    padding: 2rem 1rem;
}

.verification-result .success-message,
.verification-result .error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.verification-result p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.verification-result .login-button {
    margin-top: 1rem;
    width: 100%;
    max-width: 300px;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #6B7280;
    font-size: 0.875rem;
}

.form-footer a {
    color: #4F46E5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.form-footer a:hover {
    color: #4338CA;
}

.form-footer a:visited {
    color: #4F46E5;
}

.button {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.button-primary {
    background: #dc2626;
    color: #ffffff;
    border: none;
}

.button-primary:hover {
    background: #b91c1c;
}

.button-admin {
    background: #4F46E5;
    color: #ffffff;
    border: none;
}

.button-admin:hover {
    background: #4338CA;
}

/* Filter section styles */
.filter-section {
    max-width: 72rem;
    margin: 0 auto;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    background: rgba(17, 24, 39, 0.8);
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #374151;
    backdrop-filter: blur(8px);
}

.filter-group {
    flex: 1;
    min-width: 200px;
    position: relative;
    display: flex;
    gap: 0.5rem;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 2;
}

.date-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-input-label {
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    display: none; /* Hide by default (PC view) */
}

.date-range .filter-input {
    flex: 1;
    width: 100%;
}

.date-separator {
    color: #6b7280;
    padding: 0 0.25rem;
    font-size: 0.875rem;
    align-self: flex-end;
    margin-bottom: 0.5rem;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.filter-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.filter-input::placeholder {
    color: #6b7280;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.filter-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    display: none;
    z-index: 2;
}

.filter-clear.show {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: rgba(31, 41, 55, 0.5);
}

.filter-clear:hover {
    color: #ef4444;
    background: rgba(31, 41, 55, 0.8);
}

/* Mobile styles for filters */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.25rem;
        margin-bottom: 2rem;
    }

    .filter-group {
        width: 100%;
        min-width: 0;
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-group:not(:last-child) {
        border-bottom: 1px solid rgba(55, 65, 81, 0.5);
        padding-bottom: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .date-range {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .date-input-group {
        width: 100%;
        gap: 0.5rem;
    }

    .date-input-label {
        display: block; /* Show on mobile */
        margin-bottom: 0.25rem;
    }

    .date-separator {
        display: none;
    }

    .filter-input,
    .filter-select {
        padding: 1rem 3rem 1rem 1rem;
        font-size: 1rem;
        height: 3.5rem;
    }

    .filter-input::placeholder {
        font-size: 0.9375rem;
    }

    /* Improved clear button positioning */
    .filter-clear.show {
        width: 2.5rem;
        height: 2.5rem;
        right: 0.5rem;
        background: rgba(31, 41, 55, 0.8);
        z-index: 3;
    }

    /* Custom select appearance on mobile */
    .filter-select {
        background-size: 1.5rem;
        background-position: right 1rem center;
        padding-right: 3.5rem;
    }
}

/* Additional mobile refinements for smaller screens */
@media (max-width: 480px) {
    .filter-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .filter-group:not(:last-child) {
        padding-bottom: 1rem;
    }

    .filter-group {
        gap: 0.5rem;
    }

    .date-range {
        gap: 1.25rem;
    }

    .date-input-group {
        gap: 0.375rem;
    }

    .date-input-label {
        font-size: 0.8125rem;
    }

    .filter-input,
    .filter-select {
        height: 3.25rem;
    }

    /* Ensure clear button doesn't overlap with select arrow */
    .filter-clear.show {
        right: 3rem;
    }

    .filter-select + .filter-clear.show {
        right: 0.5rem;
    }
}

/* No results state */
.no-results {
    text-align: center;
    padding: 4rem 1rem;
    color: #6b7280;
    background: rgba(17, 24, 39, 0.8);
    border-radius: 0.75rem;
    border: 1px solid #374151;
    backdrop-filter: blur(8px);
}

.no-results i {
    margin-bottom: 1rem;
    color: #4b5563;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.no-results p {
    margin-bottom: 1.5rem;
    color: #9ca3af;
}

.no-results .button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
}

/* Webhook Configuration */
.webhook-config {
    padding: 1rem;
}

.webhook-description {
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.webhook-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.webhook-input-group input[type="url"] {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-700);
    background: var(--gray-800);
    color: var(--gray-100);
    font-size: 0.875rem;
}

.webhook-input-group input[type="url"]:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 2px rgba(var(--primary-500-rgb), 0.2);
}

.webhook-input-group button {
    white-space: nowrap;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(8px);
    padding: 1.25rem;
    z-index: 9999;
    transition: transform 0.3s ease-in-out;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cookie-consent.show {
    transform: translateY(-100px);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-300);
    font-size: 0.95rem;
}

.cookie-text i {
    font-size: 1.5rem;
    color: var(--gray-400);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-buttons .button {
    min-width: 120px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.cookie-buttons .button-primary {
    background: linear-gradient(to right, #dc2626, #991b1b);
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.cookie-buttons .button-primary:hover {
    background: linear-gradient(to right, #b91c1c, #7f1d1d);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.3);
}

.cookie-buttons .button-secondary {
    background: rgba(31, 41, 55, 0.8);
    color: var(--gray-300);
    border: 1px solid rgba(75, 85, 99, 0.5);
    backdrop-filter: blur(8px);
}

.cookie-buttons .button-secondary:hover {
    background: rgba(31, 41, 55, 0.95);
    border-color: rgba(75, 85, 99, 0.8);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-text {
        flex-direction: column;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-buttons .button {
        flex: 1;
        max-width: 200px;
    }
}

/* Remember Me Checkbox */
.remember-me {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    padding: 0.25rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.checkbox-label:hover {
    background-color: rgba(31, 41, 55, 0.5);
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(156, 163, 175, 0.5);
    border-radius: 0.375rem;
    background: rgba(31, 41, 55, 0.6);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    display: inline-block;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 
                inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.checkbox-label input[type="checkbox"]:hover {
    border-color: rgba(156, 163, 175, 0.8);
    background: rgba(31, 41, 55, 0.8);
}

.checkbox-label input[type="checkbox"]:checked {
    background: linear-gradient(to right, #dc2626, #991b1b);
    border-color: transparent;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.3);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: block;
}

.checkbox-text {
    color: var(--gray-300);
    font-size: 0.95rem;
    font-weight: 500;
}
