/* Main Styles */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--bg-color, #f5f7fa) 0%, #e4e8f0 100%);
    color: #333;
    line-height: 1.6;
    padding-top: 70px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: var(--primary-gradient);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: var(--primary-gradient) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    position: relative;
    color: white !important;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.main-container {
    flex: 1;
    padding-bottom: 2rem;
}

.file-card {
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    background-color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.file-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
}

.file-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.file-card h1 {
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
    color: var(--dark-color);
    font-size: 2.5rem;
}

.file-card h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--primary-gradient);
    border-radius: 5px;
}

.file-card h2 {
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    border-bottom: 2px solid rgba(13, 110, 253, 0.1);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 1.8rem;
}

.file-card h2 i {
    margin-right: 12px;
    color: var(--primary-color);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* RESPONSIVE PREVIEW SYSTEM */
.file-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px dashed rgba(13, 110, 253, 0.1);
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
}

#actualFilePreview {
    width: 100% !important;
    max-width: 100% !important;
}

.video-js-enhanced {
    width: 100% !important;
    height: auto !important;
    max-height: 80vh !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: #000;
}

.video-js-enhanced .vjs-big-play-button {
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    line-height: 90px;
    margin-left: -45px;
    margin-top: -45px;
    font-size: 2.5rem;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.4);
}

.audio-player-enhanced {
    width: 100% !important;
    max-width: 700px !important;
    background: var(--primary-gradient);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    color: white;
    position: relative;
    overflow: hidden;
}

.audio-player-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: float 20s linear infinite;
}

.audio-player-enhanced .vjs-control-bar {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.audio-visualizer {
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.audio-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    animation: wave 2s infinite linear;
    opacity: 0.7;
}

@keyframes wave {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* IMAGE AND VIDEO RESPONSIVENESS */
.file-preview video,
.file-preview img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 80vh !important;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.file-preview embed,
.file-preview iframe {
    width: 100% !important;
    min-height: 500px !important;
    height: 70vh !important;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.file-preview audio {
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
    border-radius: 12px;
}

.password-protection-card {
    background: var(--primary-gradient);
    color: white;
    border-radius: 25px;
    padding: 60px 50px;
    margin: 40px auto;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.password-protection-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: float 20s linear infinite;
}

.password-icon {
    font-size: 6rem;
    margin-bottom: 2.5rem;
    animation: bounce 2s infinite;
    position: relative;
    z-index: 2;
}

.password-hint {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    margin: 30px 0;
    border-left: 5px solid var(--warning-color);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.password-form {
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.password-input-group {
    position: relative;
    margin-bottom: 30px;
}

.password-input {
    padding: 18px 60px 18px 25px;
    border: none;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    width: 100%;
}

.password-input:focus {
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}

.password-toggle {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 1.3rem;
    transition: color 0.3s ease;
    z-index: 3;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.btn-verify {
    background: linear-gradient(135deg, var(--warning-color), #ff8e53);
    color: var(--dark-color);
    border: none;
    border-radius: 30px;
    padding: 18px 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.4);
    width: 100%;
}

.btn-verify:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.6);
    background: linear-gradient(135deg, #e0a800, #ff7b42);
}

.password-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.pdf-viewer-container {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    border: 1px solid #ddd;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f5f5f5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pdf-controls {
    background-color: #fff;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.pdf-controls button {
    margin: 2px;
    border-radius: 10px;
    font-weight: 500;
}

.pdf-viewer {
    width: 100%;
    height: calc(100% - 80px);
    overflow: auto;
    background: #f8f9fa;
    padding: 20px;
}

.pdf-page {
    margin: 20px auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
}

.pdf-canvas {
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    max-width: 100%;
    height: auto;
}

.office-preview {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    border: 1px solid #ddd;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.code-preview {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    border: 1px solid #ddd;
    border-radius: 16px;
    background-color: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Fira Code', 'Courier New', monospace;
    overflow: auto;
    text-align: left;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.code-preview pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.language-js { color: #dcdcaa; }
.language-css { color: #ce9178; }
.language-html { color: #ce9178; }
.language-php { color: #9cdcfe; }
.language-json { color: #ce9178; }
.language-xml { color: #808080; }

.online-viewer-notice {
    background: var(--primary-gradient);
    color: white;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.file-info-badge {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 8px 8px 0;
    border-radius: 20px;
    padding: 10px 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-download {
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-download:hover::before {
    left: 100%;
}

.btn-download:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(13, 110, 253, 0.6);
    color: white;
}

.share-btn {
    width: 3.5rem;
    height: 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.share-btn:hover::before {
    left: 100%;
}

.share-btn:hover {
    transform: translateY(-8px) scale(1.15);
}

.qr-code-container {
    background-color: white;
    padding: 25px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.expired-file-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 25px;
    padding: 70px 50px;
    margin-bottom: 40px;
    text-align: center;
    border-left: 6px solid var(--danger-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.expired-file-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220,53,69,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: float 20s linear infinite;
}

.expired-icon {
    font-size: 6rem;
    color: var(--danger-color);
    margin-bottom: 2.5rem;
    animation: bounce 2s infinite;
    position: relative;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-25px);}
    60% {transform: translateY(-12px);}
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-30px, -30px) rotate(360deg); }
}

.feature-card .icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: var(--primary-gradient);
    color: white;
    font-size: 2.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.4);
}

.storage-banner {
    background: var(--primary-gradient);
    color: white;
    border-radius: 25px;
    padding: 50px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.storage-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: float 20s linear infinite;
}

.storage-banner .storage-icon {
    font-size: 5rem;
    margin-bottom: 2.5rem;
    animation: pulse 2s infinite;
    position: relative;
    z-index: 2;
}

.storage-banner .storage-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--warning-color);
    color: var(--dark-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    transform: rotate(15deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.alert-pulse {
    animation: pulse-shadow 2s infinite;
    border-radius: 16px;
    border: none;
    padding: 20px;
}

@keyframes pulse-shadow {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

#adPreviewPlaceholder {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    padding: 50px;
    background-color: #f8f9fa;
    border-radius: 20px;
    text-align: center;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.image-gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.image-gallery img:hover {
    transform: scale(1.08);
}

.footer {
    background: var(--primary-gradient);
    color: white;
    padding: 70px 0 40px;
    margin-top: auto;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
    transform: translateX(5px);
}

.footer h5 {
    color: var(--warning-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer .social-links a {
    font-size: 1.6rem;
    margin-right: 18px;
    transition: transform 0.2s ease;
}

.footer .social-links a:hover {
    transform: translateY(-5px);
}

.loading-spinner {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.file-message-container {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left: 5px solid var(--primary-color);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.file-message-container h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.file-message-content {
    color: #37474f;
    font-size: 1.05rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.self-destruct-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

.self-destruct-warning {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    border-left: 5px solid #ff4757;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

/* ========== REACTION SYSTEM STYLES ========== */
.reaction-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.reaction-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
}

.reaction-container:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.reaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(13, 110, 253, 0.1);
}

.reaction-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.reaction-title i {
    color: #ff6b6b;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reaction-count-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    animation: badgePulse 2s infinite;
}

.reaction-subtitle {
    color: #718096;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    text-align: center;
}

.reaction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.reaction-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.reaction-item:hover {
    transform: translateY(-5px);
}

.reaction-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto 1rem;
    background: white;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.reaction-btn:hover:not(:disabled) {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.reaction-btn.active {
    transform: scale(1.1);
}

.reaction-btn.thumbs-up {
    border-color: #10b981;
    color: #10b981;
}

.reaction-btn.thumbs-up.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
}

.reaction-btn.heart {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.reaction-btn.heart.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: white;
    border-color: #ff6b6b;
}

.reaction-btn.download-check {
    border-color: #3b82f6;
    color: #3b82f6;
}

.reaction-btn.download-check.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-color: #3b82f6;
}

.reaction-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.reaction-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.reaction-count {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.reaction-feedback {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-left: 4px solid #3b82f6;
    font-size: 1rem;
    color: #1e40af;
    line-height: 1.5;
}

.reaction-feedback i {
    color: #3b82f6;
    margin-right: 0.5rem;
}

.reaction-empty {
    text-align: center;
    color: #a0aec0;
    font-size: 1rem;
    padding: 1rem 0;
    font-style: italic;
}

.reaction-message {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 16px;
    font-size: 1rem;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.reaction-message.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.reaction-message.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.reaction-message.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fde68a;
}

.reaction-message.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

@keyframes badgePulse {
    0% { box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5); }
    100% { box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3); }
}

@keyframes countPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: #10b981; }
    100% { transform: scale(1); }
}

@keyframes buttonPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

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

.count-updated {
    animation: countPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.button-clicked {
    animation: buttonPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
/* ========== END REACTION SYSTEM ========== */

.archive-viewer-container {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    background: white;
}

.table-responsive {
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.file-name {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.archive-stats {
    border-left: 4px solid var(--primary-color);
}

.email-form .input-group {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

.email-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.privacy-seal {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 12px 20px;
    margin: 20px 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #065f46;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.privacy-seal i {
    color: #10b981;
    font-size: 1.2rem;
}

.feature-highlight {
    border: 2px solid var(--primary-color) !important;
    position: relative;
    overflow: hidden;
}

.feature-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 50px 50px 0;
    border-color: transparent var(--primary-color) transparent transparent;
}

.feature-highlight::after {
    content: '★';
    position: absolute;
    top: 5px;
    right: 5px;
    color: white;
    font-size: 0.8rem;
    z-index: 1;
}

@media (max-width: 1200px) {
    .file-card {
        padding: 35px 30px;
    }
    
    .file-card h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .file-card {
        padding: 30px 25px;
    }
    
    .file-card h1 {
        font-size: 2rem;
    }
    
    .storage-banner {
        padding: 40px 30px;
    }
    
    .reaction-container {
        padding: 30px 25px;
    }
    
    .reaction-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .file-card {
        padding: 25px 20px;
        margin: 20px 0;
    }
    
    .file-card h1 {
        font-size: 1.8rem;
        padding-bottom: 10px;
    }
    
    .file-card h1::after {
        width: 80px;
        height: 4px;
    }
    
    .expired-file-section {
        padding: 50px 30px;
    }
    
    .password-protection-card {
        padding: 40px 30px;
        margin: 30px 20px;
    }
    
    .password-icon {
        font-size: 5rem;
    }
    
    .expired-icon {
        font-size: 5rem;
    }
    
    .audio-player-enhanced {
        padding: 25px;
    }
    
    .storage-banner {
        padding: 30px 20px;
    }
    
    .storage-banner .storage-icon {
        font-size: 4rem;
    }
    
    .file-info-badge {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
    
    .reaction-container {
        padding: 25px 20px;
    }
    
    .reaction-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .reaction-btn {
        width: 80px;
        height: 80px;
    }
    
    .reaction-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .file-card {
        padding: 20px 15px;
        margin: 15px 0;
        border-radius: 15px;
    }
    
    .file-card h1 {
        font-size: 1.6rem;
    }
    
    .file-preview {
        padding: 10px;
        min-height: 250px;
        border-radius: 12px;
    }
    
    .pdf-controls {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .pdf-viewer {
        padding: 15px;
    }
    
    .password-protection-card {
        padding: 30px 20px;
        margin: 20px 15px;
        border-radius: 20px;
    }
    
    .password-icon {
        font-size: 4rem;
    }
    
    .expired-icon {
        font-size: 4rem;
    }
    
    .audio-player-enhanced {
        padding: 20px;
        border-radius: 15px;
    }
    
    .storage-banner {
        padding: 25px 15px;
        border-radius: 20px;
    }
    
    .storage-banner .storage-icon {
        font-size: 3.5rem;
    }
    
    .btn-download {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
    
    .share-btn {
        width: 3rem;
        height: 3rem;
        font-size: 1.1rem;
        margin: 0 5px;
    }
    
    .file-info-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin: 0 4px 4px 0;
    }
    
    .password-badge {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .self-destruct-badge {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .reaction-container {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .reaction-btn {
        width: 70px;
        height: 70px;
        font-size: 1.6rem;
    }
    
    .reaction-label {
        font-size: 0.9rem;
    }
    
    .reaction-count {
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .file-card h1 {
        font-size: 1.4rem;
    }
    
    .password-protection-card {
        padding: 25px 15px;
    }
    
    .password-input {
        padding: 15px 50px 15px 20px;
        font-size: 1rem;
    }
    
    .btn-verify {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .reaction-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media print {
    .navbar, .footer, .storage-banner, .share-btn, .btn-download, .reaction-container {
        display: none !important;
    }
    
    body {
        background: white !important;
        padding-top: 0 !important;
    }
    
    .file-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
/* Custom Cloud Save Button */
#saveCloudBtn {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 2px solid #3b82f6;
    color: #0d6efd;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#saveCloudBtn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    border-color: transparent;
}

#saveCloudBtn i {
    transition: transform 0.3s ease;
}

#saveCloudBtn:hover i {
    transform: scale(1.2);
}

/* Success State for the button */
#saveCloudBtn.btn-success {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
    box-shadow: none !important;
    transform: none !important;
}
/* Enhanced File Meta Info */
.file-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(0,0,0,0.05);
}

.file-meta div {
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: center;
}

.file-meta i {
    color: var(--primary-color);
    opacity: 0.7;
    width: 25px; /* Aligns icons vertically */
}

/* Make the Main Download Button Pulse slightly to be the primary focus */
.btn-download {
    animation: gentlePulse 3s infinite;
}

@keyframes gentlePulse {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}
@media (max-width: 576px) {
    .file-card {
        padding: 20px 15px; /* Tighter padding on mobile */
        border-radius: 15px;
        margin-top: 15px;
    }

    .file-card h1 {
        font-size: 1.5rem; /* Smaller Title */
        margin-bottom: 1rem;
    }

    /* Stack buttons nicely */
    .d-grid .btn {
        font-size: 1rem;
        padding: 12px;
    }
    
    /* Make reaction buttons smaller on mobile to fit 3 in a row */
    .reaction-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .reaction-grid {
        gap: 0.5rem; /* Reduce gap between reactions */
    }
}
/* Custom Convert Button (Magic Look) */
#convertDropdown {
    background: linear-gradient(135deg, #fbf7ff 0%, #ffffff 100%);
    border: 2px solid #9333ea; /* Purple border */
    color: #9333ea;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

#convertDropdown:hover {
    background: linear-gradient(135deg, #9333ea 0%, #7928ca 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(147, 51, 234, 0.3);
    transform: translateY(-2px);
    border-color: transparent;
}

/* Adjust dropdown menu to look cleaner */
.dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: none;
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
    transform: translateX(5px);
}