
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}


@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}

body.dark-mode header {
    background: #2c2c2c;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #007bff;
    cursor: pointer;
    transition: color 0.3s;
}

body.dark-mode .logo {
    color: #00bfff;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.auth-buttons span {
    font-size: 16px;
    color: #333;
    transition: color 0.3s;
}

body.dark-mode .auth-buttons span {
    color: #e0e0e0;
}


button, .auth-buttons button, .file-actions button {
    padding: 8px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: #f5f6f5;
    color: #007bff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}

body.dark-mode button,
body.dark-mode .auth-buttons button,
body.dark-mode .file-actions button {
    background: #333;
    color: #00bfff;
    border: 1px solid #555;
}

button:hover, .auth-buttons button:hover, .file-actions button:hover {
    background: #e0e0e0;
    color: #0056b3;
    transform: scale(1.05);
}

body.dark-mode button:hover,
body.dark-mode .auth-buttons button:hover,
body.dark-mode .file-actions button:hover {
    background: #444;
    color: #0099cc;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 140px);
}


.hero {
    text-align: center;
    margin-top: 10px;
    padding-bottom: 100px;
    position: relative;
    animation: fadeInDown 0.5s ease-in-out;
}


#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: #007bff;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    transition: color 0.3s;
}

body.dark-mode .hero h1 {
    color: #00bfff;
}


.hero h1 span {
    display: inline-block;
    opacity: 0;
    animation: letter-slide 0.5s ease forwards;
}

@keyframes letter-slide {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.hero h1 span:nth-child(1) { animation-delay: 0.1s; }
.hero h1 span:nth-child(2) { animation-delay: 0.15s; }
.hero h1 span:nth-child(3) { animation-delay: 0.2s; }
.hero h1 span:nth-child(4) { animation-delay: 0.25s; }
.hero h1 span:nth-child(5) { animation-delay: 0.3s; }
.hero h1 span:nth-child(6) { animation-delay: 0.35s; }
.hero h1 span:nth-child(7) { animation-delay: 0.4s; }
.hero h1 span:nth-child(8) { animation-delay: 0.45s; }
.hero h1 span:nth-child(9) { animation-delay: 0.5s; }
.hero h1 span:nth-child(10) { animation-delay: 0.55s; }
.hero h1 span:nth-child(11) { animation-delay: 0.6s; }
.hero h1 span:nth-child(12) { animation-delay: 0.65s; }
.hero h1 span:nth-child(13) { animation-delay: 0.7s; }
.hero h1 span:nth-child(14) { animation-delay: 0.75s; }
.hero h1 span:nth-child(15) { animation-delay: 0.8s; }
.hero h1 span:nth-child(16) { animation-delay: 0.85s; }
.hero h1 span:nth-child(17) { animation-delay: 0.9s; }
.hero h1 span:nth-child(18) { animation-delay: 0.95s; }
.hero h1 span:nth-child(19) { animation-delay: 1s; }
.hero h1 span:nth-child(20) { animation-delay: 1.05s; }
.hero h1 span:nth-child(21) { animation-delay: 1.1s; }
.hero h1 span:nth-child(22) { animation-delay: 1.15s; }
.hero h1 span:nth-child(23) { animation-delay: 1.2s; }
.hero h1 span:nth-child(24) { animation-delay: 1.25s; }
.hero h1 span:nth-child(25) { animation-delay: 1.3s; }

.hero h2 {
    font-size: 24px;
    font-weight: 600;
    color: #555;
    margin: 15px 0;
    transition: color 0.3s;
}

body.dark-mode .hero h2 {
    color: #e0e0e0;
}

.hero p {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
    transition: color 0.3s;
}

body.dark-mode .hero p {
    color: #e0e0e0;
}

.hero ul {
    list-style-position: inside;
    margin: 15px 0;
    padding: 0;
}

.hero ul li {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
    transition: color 0.3s;
}

body.dark-mode .hero ul li {
    color: #e0e0e0;
}


.slide-in-right {
    opacity: 0;
    animation: slideInRight 1s ease forwards;
    animation-delay: 0.5s;
    position: relative;
    z-index: 2;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}


.hero-image {
    display: block;
    max-width: 900px;
    width: 100%;
    height: auto;
    margin: 20px auto;
    background-color: transparent;
    border: none;
    box-shadow: none;
}


.animated-button {
    position: relative;
    overflow: hidden;
    z-index: 2;
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards, pulse 1.5s infinite ease-in-out;
    margin-bottom: 40px;
    padding: 12px;
    font-size: 16px;
    border: none;
    background: #007bff;
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.2s, background 0.3s;
    cursor: pointer;
    pointer-events: auto;
}

body.dark-mode .animated-button {
    background: #0088cc;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.animated-button::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: 0.5s;
    z-index: -1;
}

.animated-button:hover::before {
    left: 100%;
}

.animated-button:hover {
    background: #0066cc;
    color: #fff;
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

body.dark-mode .animated-button:hover {
    background: #006699;
    color: #fff;
}


.content-section {
    margin-top: 200px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 2;
}


.feature-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    opacity: 0;
    animation: zoomIn 0.5s ease-in-out forwards;
    border: 1px solid #e0e0e0;
}

body.dark-mode .feature-box {
    background: #2c2c2c;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
}

body.dark-mode .feature-box:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.feature-box h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    transition: color 0.3s;
}

body.dark-mode .feature-box h3 {
    color: #e0e0e0;
}

.feature-box p {
    font-size: 16px;
    color: #666;
    transition: color 0.3s;
}

body.dark-mode .feature-box p {
    color: #e0e0e0;
}


.hero form, .login-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeInDown 0.5s ease-in-out;
    transition: background 0.3s, box-shadow 0.3s;
}

body.dark-mode .hero form,
body.dark-mode .login-box {
    background: #2c2c2c;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero form input[type="text"],
.hero form input[type="email"],
.hero form input[type="password"],
.hero form input[type="file"],
.hero form input[type="number"],
.login-box input[type="text"],
.login-box input[type="password"] {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background: #f9f9f9;
    color: #333;
    transition: border 0.3s, background 0.3s, box-shadow 0.3s;
}

body.dark-mode .hero form input[type="text"],
body.dark-mode .hero form input[type="email"],
body.dark-mode .hero form input[type="password"],
body.dark-mode .hero form input[type="file"],
body.dark-mode .hero form input[type="number"],
body.dark-mode .login-box input[type="text"],
body.dark-mode .login-box input[type="password"] {
    background: #333;
    border: 1px solid #555;
    color: #e0e0e0;
}

.hero form input[type="text"]::placeholder,
.hero form input[type="password"]::placeholder,
.login-box input[type="text"]::placeholder,
.login-box input[type="password"]::placeholder {
    color: #888;
}

body.dark-mode .hero form input[type="text"]::placeholder,
body.dark-mode .hero form input[type="password"]::placeholder,
body.dark-mode .login-box input[type="text"]::placeholder,
body.dark-mode .login-box input[type="password"]::placeholder {
    color: #ccc;
}

.hero form input[type="text"]:focus,
.hero form input[type="email"]:focus,
.hero form input[type="password"]:focus,
.hero form input[type="file"]:focus,
.hero form input[type="number"]:focus,
.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
    outline: none;
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

body.dark-mode .hero form input[type="text"]:focus,
body.dark-mode .hero form input[type="email"]:focus,
body.dark-mode .hero form input[type="password"]:focus,
body.dark-mode .hero form input[type="file"]:focus,
body.dark-mode .hero form input[type="number"]:focus,
body.dark-mode .login-box input[type="text"]:focus,
body.dark-mode .login-box input[type="password"]:focus {
    border-color: #00bfff;
    background: #444;
    box-shadow: 0 0 8px rgba(0, 191, 255, 0.2);
}

.hero form input[type="submit"],
.login-box input[type="submit"] {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s, background 0.3s;
}

body.dark-mode .hero form input[type="submit"],
body.dark-mode .login-box input[type="submit"] {
    background: #00bfff;
}

.hero form input[type="submit"]:hover,
.login-box input[type="submit"]:hover {
    background: #0056b3;
    transform: scale(1.03);
}

body.dark-mode .hero form input[type="submit"]:hover,
body.dark-mode .login-box input[type="submit"]:hover {
    background: #0099cc;
}

.hero form label,
.login-box label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: left;
    margin: 10px 0 5px;
    transition: color 0.3s;
}

body.dark-mode .hero form label,
body.dark-mode .login-box label {
    color: #e0e0e0;
}

.hero form a,
.auth-links-box a {
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
}

body.dark-mode .hero form a,
body.dark-mode .auth-links-box a {
    color: #00bfff;
}

.hero form a:hover,
.auth-links-box a:hover {
    color: #0056b3;
    transform: scale(1.02);
}

body.dark-mode .hero form a:hover,
body.dark-mode .auth-links-box a:hover {
    color: #0099cc;
}

.auth-links-box a.forgot-password {
    color: #007bff;
}

body.dark-mode .auth-links-box a.forgot-password {
    color: #00bfff;
}

.auth-links-box a.forgot-password:hover {
    color: #0056b3;
}

body.dark-mode .auth-links-box a.forgot-password:hover {
    color: #0099cc;
}

.auth-links-box a.register-link {
    color: #28a745;
}

body.dark-mode .auth-links-box a.register-link {
    color: #2ecc71;
}

.auth-links-box a.register-link:hover {
    color: #218838;
}

body.dark-mode .auth-links-box a.register-link:hover {
    color: #27ae60;
}


.error-message {
    background: #ffe6e6;
    color: #d32f2f;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #d32f2f;
}

body.dark-mode .error-message {
    background: #4a2c2c;
    color: #ff7777;
    border: 1px solid #ff5555;
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    animation: zoomIn 0.3s ease-in-out;
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px; 
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: background 0.3s;
}

body.dark-mode .modal-content {
    background: #2c2c2c;
    color: #e0e0e0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.modal-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #007bff;
    font-weight: 600;
    text-align: center;
    transition: color 0.3s;
}

body.dark-mode .modal-content h2 {
    color: #00bfff;
}

.modal-body {
    max-height: 60vh; 
    overflow-y: auto;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    margin-bottom: 20px;
    transition: background 0.3s, border 0.3s;
}

body.dark-mode .modal-body {
    background: #333;
    border: 1px solid #555;
}


.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

body.dark-mode .modal-body::-webkit-scrollbar-track {
    background: #444;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

body.dark-mode .modal-body::-webkit-scrollbar-thumb {
    background: #666;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

body.dark-mode .modal-body::-webkit-scrollbar-thumb:hover {
    background: #888;
}

.modal-body p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    transition: color 0.3s;
}

body.dark-mode .modal-body p {
    color: #e0e0e0;
}

.modal-footer {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
    text-align: center;
    transition: background 0.3s, border 0.3s;
}

body.dark-mode .modal-footer {
    background: #2c2c2c;
    border-top: 1px solid #555;
}

.modal-footer button {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    background: #28a745;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

body.dark-mode .modal-footer button {
    background: #2ecc71;
}

.modal-footer button:hover {
    background: #218838;
    transform: scale(1.03);
}

body.dark-mode .modal-footer button:hover {
    background: #27ae60;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

body.dark-mode .close {
    color: #e0e0e0;
}

.close:hover {
    color: #d32f2f;
}

body.dark-mode .close:hover {
    color: #ff7777;
}


.modal-close-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    background: #d32f2f;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s;
}

body.dark-mode .modal-close-btn {
    background: #ff5555;
}

.modal-close-btn:hover {
    background: #b71c1c;
    transform: scale(1.03);
}

body.dark-mode .modal-close-btn:hover {
    background: #cc4444;
}


.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-content form label,
.modal-content label {
    font-size: 15px;
    color: #333;
    text-align: left;
    font-weight: 500;
    margin-bottom: 5px;
    transition: color 0.3s;
}

body.dark-mode .modal-content form label,
body.dark-mode .modal-content label {
    color: #e0e0e0;
}

.modal-content form input[type="text"],
.modal-content form input[type="email"],
.modal-content form input[type="password"],
.modal-content input[type="text"] {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background: #f9f9f9;
    color: #333;
    width: 100%;
    box-sizing: border-box;
    transition: border 0.3s, background 0.3s, box-shadow 0.3s;
}

body.dark-mode .modal-content form input[type="text"],
body.dark-mode .modal-content form input[type="email"],
body.dark-mode .modal-content form input[type="password"],
body.dark-mode .modal-content input[type="text"] {
    background: #333;
    border: 1px solid #555;
    color: #e0e0e0;
}

.modal-content form input[type="text"]:focus,
.modal-content form input[type="email"]:focus,
.modal-content form input[type="password"]:focus,
.modal-content input[type="text"]:focus {
    outline: none;
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

body.dark-mode .modal-content form input[type="text"]:focus,
body.dark-mode .modal-content form input[type="email"]:focus,
body.dark-mode .modal-content form input[type="password"]:focus,
body.dark-mode .modal-content input[type="text"]:focus {
    border-color: #00bfff;
    background: #444;
    box-shadow: 0 0 8px rgba(0, 191, 255, 0.2);
}

.modal-content form input[type="submit"] {
    padding: 12px;
    border: none;
    border-radius: 5px;
    background: #007bff;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

body.dark-mode .modal-content form input[type="submit"] {
    background: #00bfff;
}

.modal-content form input[type="submit"]:hover {
    background: #0056b3;
    transform: scale(1.03);
}

body.dark-mode .modal-content form input[type="submit"]:hover {
    background: #0099cc;
}


#emailVerificationModal .modal-content {
    padding: 20px;
}

#emailVerificationModal .modal-content button {
    margin: 10px auto;
    display: block;
    width: 100%;
    max-width: 200px;
}

#emailVerificationModal .modal-content #codeInputSection {
    margin-top: 20px;
}

#emailVerificationModal .modal-content #resendCodeLink {
    color: #007bff;
    text-decoration: underline;
    font-size: 14px;
    transition: color 0.3s;
}

body.dark-mode #emailVerificationModal .modal-content #resendCodeLink {
    color: #00bfff;
}

#emailVerificationModal .modal-content #resendCodeLink:hover {
    color: #0056b3;
}

body.dark-mode #emailVerificationModal .modal-content #resendCodeLink:hover {
    color: #0099cc;
}


input[type="checkbox"] {
    margin-right: 10px;
}


.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    border: none;
    border-radius: 5px 5px 0 0;
    background: #e0e0e0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: background 0.3s, color 0.3s;
}

body.dark-mode .tab {
    background: #333;
    color: #e0e0e0;
}

.tab.active {
    background: #fff;
    border-bottom: 2px solid #fff;
    color: #007bff;
}

body.dark-mode .tab.active {
    background: #2c2c2c;
    border-bottom: 2px solid #2c2c2c;
    color: #00bfff;
}

.tab:hover {
    background: #ccc;
    color: #0056b3;
}

body.dark-mode .tab:hover {
    background: #444;
    color: #0099cc;
}


.tab-content {
    display: none;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, box-shadow 0.3s;
}

body.dark-mode .tab-content {
    background: #2c2c2c;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.tab-content.active {
    display: block;
}


.upload-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.upload-form input[type="text"],
.upload-form input[type="file"] {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background: #f9f9f9;
    color: #333;
    transition: border 0.3s, background 0.3s;
}

body.dark-mode .upload-form input[type="text"],
body.dark-mode .upload-form input[type="file"] {
    background: #333;
    border: 1px solid #555;
    color: #e0e0e0;
}

.upload-form input[type="text"]::placeholder,
.upload-form input[type="file"]::placeholder {
    color: #888;
}

body.dark-mode .upload-form input[type="text"]::placeholder,
body.dark-mode .upload-form input[type="file"]::placeholder {
    color: #ccc;
}


.upload-form #progress-container {
    width: 100%;
    background: #e0e0e0;
    border-radius: 5px;
    height: 20px;
    position: relative;
    margin-top: 10px;
    overflow: hidden;
    transition: background 0.3s;
}

body.dark-mode .upload-form #progress-container {
    background: #444;
}


.upload-form #progress-container #progress-bar {
    width: 0%;
    height: 100%;
    background: #34c759; 
    border-radius: 5px;
    transition: width 0.3s linear;
    display: block;
    box-shadow: 0 0 8px rgba(52, 199, 89, 0.5);
}

body.dark-mode .upload-form #progress-container #progress-bar {
    background: #50db74;
    box-shadow: 0 0 8px rgba(80, 219, 116, 0.5);
}


.upload-form #progress-container #progress-text {
    display: block;
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: color 0.3s;
}

body.dark-mode .upload-form #progress-container #progress-text {
    color: #e0e0e0;
}


.drop-zone {
    border: 2px dashed #007bff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .drop-zone {
    border-color: #00bfff;
    background: #333;
}

.drop-zone.dragover {
    border-color: #28a745;
    background: #e6f7e9;
    transform: scale(1.02);
}

body.dark-mode .drop-zone.dragover {
    border-color: #2ecc71;
    background: #2a4b2f;
}

.drop-zone p {
    margin: 0;
    font-size: 16px;
    color: #666;
    transition: color 0.3s;
}

body.dark-mode .drop-zone p {
    color: #e0e0e0;
}

#fileName {
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    font-size: 14px;
    color: #666;
    transition: background 0.3s;
}

body.dark-mode #fileName {
    background: #333;
    color: #e0e0e0;
}


.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.library-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    transition: color 0.3s;
}

body.dark-mode .library-header h2 {
    color: #e0e0e0;
}

#arama {
    width: 300px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background: #f9f9f9;
    color: #333;
    transition: border 0.3s, background 0.3s;
}

body.dark-mode #arama {
    background: #333;
    border: 1px solid #555;
    color: #e0e0e0;
}

#arama::placeholder {
    color: #888;
}

body.dark-mode #arama::placeholder {
    color: #ccc;
}

#arama:focus {
    outline: none;
    border-color: #007bff;
    background: #fff;
}

body.dark-mode #arama:focus {
    border-color: #00bfff;
    background: #444;
}

.library-content {
    margin-top: 15px;
}

.category-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.category-group {
    flex: 1;
    min-width: 300px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, box-shadow 0.3s;
}

body.dark-mode .category-group {
    background: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.category-group h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    transition: color 0.3s;
}

body.dark-mode .category-group h3 {
    color: #e0e0e0;
}

.file-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    background: #fff;
    transition: border 0.3s, background 0.3s;
}

body.dark-mode .file-item {
    border: 1px solid #555;
    background: #2c2c2c;
}

.file-item:hover {
    border-color: #007bff;
}

body.dark-mode .file-item:hover {
    border-color: #00bfff;
}

.file-item .file-name {
    font-size: 14px;
    padding: 5px 0;
    word-break: break-word;
    margin-bottom: 10px;
    flex: none;
    color: #333;
}

body.dark-mode .file-item .file-name {
    color: #e0e0e0;
}

.file-item .file-actions {
    display: flex;
    gap: 5px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.file-item .file-actions button {
    padding: 5px 10px;
    font-size: 12px;
    flex: 1;
    min-width: 60px;
    color: #fff;
}

body.dark-mode .file-item .file-actions button {
    color: #fff;
}


.file-item .file-actions .open-btn {
    background: #28a745;
}

body.dark-mode .file-item .file-actions .open-btn {
    background: #2ecc71;
}

.file-item .file-actions .open-btn:hover {
    background: #218838;
}

body.dark-mode .file-item .file-actions .open-btn:hover {
    background: #27ae60;
}

.file-item .file-actions .download-btn {
    background: #007bff;
}

body.dark-mode .file-item .file-actions .download-btn {
    background: #00bfff;
}

.file-item .file-actions .download-btn:hover {
    background: #0056b3;
}

body.dark-mode .file-item .file-actions .download-btn:hover {
    background: #0099cc;
}

.file-item .file-actions .edit-btn {
    background: #ffc107;
}

body.dark-mode .file-item .file-actions .edit-btn {
    background: #e0a800;
}

.file-item .file-actions .edit-btn:hover {
    background: #e0a800;
}

body.dark-mode .file-item .file-actions .edit-btn:hover {
    background: #cc9400;
}

.file-item .file-actions .delete-btn {
    background: #d32f2f;
}

body.dark-mode .file-item .file-actions .delete-btn {
    background: #ff5555;
}

.file-item .file-actions .delete-btn:hover {
    background: #b71c1c;
}

body.dark-mode .file-item .file-actions .delete-btn:hover {
    background: #cc4444;
}


footer {
    text-align: center;
    padding: 20px;
    background: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    color: #666;
    transition: background 0.3s, box-shadow 0.3s, color 0.3s;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

body.dark-mode footer {
    background: #2c2c2c;
    color: #ccc;
}

footer p {
    color: #666;
    font-size: 14px;
    transition: color 0.3s;
}

body.dark-mode footer p {
    color: #ccc;
}

.social-media-section {
    margin: 40px 0 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.social-media-section a {
    color: #666;
    font-size: 24px;
    transition: color 0.3s, transform 0.3s;
}

body.dark-mode .social-media-section a {
    color: #e0e0e0;
}

.social-media-section a:hover {
    color: #007bff;
    transform: scale(1.2);
}

body.dark-mode .social-media-section a:hover {
    color: #00bfff;
}


@media (max-width: 768px) {
  
    header {
        padding: 10px 15px;
        flex-wrap: nowrap;
        align-items: center;
    }

    .logo {
        font-size: 20px;
    }

    .auth-buttons {
        flex-direction: row;
        gap:6px;
        flex-wrap: wrap;
        justify-content: flex-end;
        margin-left: auto;
    }

    .auth-buttons button {
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 4px;
    }

    .dark-mode-toggle {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        width: 100%;
        border-radius: 5px;
        padding: 8px 15px;
        font-size: 14px;
    }

    .upload-form {
        max-width: 100%;
        padding: 10px;
    }

    .drop-zone {
        padding: 15px;
        min-height: 80px;
    }

    .drop-zone p {
        font-size: 14px;
    }

    .category-group {
        min-width: 100%;
        padding: 10px;
    }

    .file-item .file-actions button {
        padding: 3px 8px;
        font-size: 10px;
    }

    #arama {
        width: 100%;
        padding: 8px;
        font-size: 14px;
    }

    .library-content {
        margin-top: 0;
    }

    .modal-content {
        margin: 20% auto;
        width: 90%;
        padding: 15px;
        font-size: 14px;
    }

    .modal-content h2 {
        font-size: 22px;
    }

    .modal-body {
        max-height: 50vh; 
        padding: 10px;
    }

    .modal-body p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .modal-footer {
        padding: 10px;
    }

    .modal-footer button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .modal-content form {
        gap: 15px;
    }

    .modal-content form label,
    .modal-content label {
        font-size: 14px;
    }

    .modal-content form input[type="text"],
    .modal-content form input[type="email"],
    .modal-content form input[type="password"],
    .modal-content input[type="text"] {
        padding: 10px;
        font-size: 14px;
    }

    .modal-content form input[type="submit"] {
        padding: 10px;
        font-size: 14px;
    }

    .modal-close-btn {
        padding: 10px 15px;
        font-size: 12px;
    }

    .hero, .login-box {
        margin-top: 10px;
        padding: 10px;
    }

    .hero h1, .login-box h1 {
        font-size: 28px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero ul li {
        font-size: 14px;
    }

    .hero form, .login-box {
        padding: 15px;
        max-width: 100%;
    }

    .hero form input[type="text"],
    .hero form input[type="email"],
    .hero form input[type="password"],
    .hero form input[type="file"],
    .hero form input[type="number"],
    .login-box input[type="text"],
    .login-box input[type="password"] {
        padding: 8px;
        font-size: 14px;
    }

    .hero form input[type="submit"],
    .login-box input[type="submit"] {
        padding: 10px;
        font-size: 14px;
    }

    .hero form label,
    .login-box label {
        font-size: 12px;
    }

    .animated-button {
        padding: 12px 20px;
        font-size: 16px;
    }

    #particles-canvas {
        display: none;
    }

   
    .upload-form #progress-container {
        height: 16px;
    }

    .upload-form #progress-container #progress-text {
        font-size: 12px;
    }
}


@media (max-width: 768px) {
    
    header {
        padding: 10px 15px;
        flex-wrap: nowrap;
        align-items: center;
    }

    .logo {
        font-size: 20px;
    }

    .auth-buttons {
        flex-direction: row;
        gap: 6px;
        justify-content: flex-end;
        margin-left: auto;
        flex-wrap: wrap;
    }

    .auth-buttons button {
        padding: 8px 12px;
        font-size: 14px;
    }

    .dark-mode-toggle {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

 
    .container {
        padding: 15px;
        padding-bottom: 100px;
    }

 
    .hero, .login-box {
        margin-top: 5px;
        padding: 10px;
        padding-bottom: 80px;
    }

    .hero h1, .login-box h1 {
        font-size: 28px;
        line-height: 1.4;
    }

    .hero-image {
        max-width: 100%;
        margin: 15px auto;
    }

    .animated-button {
        padding: 12px 20px;
        font-size: 16px;
        margin-bottom: 30px;
    }

    
    .content-section {
        margin-top: 30px;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .feature-box {
        width: 100%;
        max-width: 350px;
        padding: 15px;
    }

    .feature-box h3 {
        font-size: 18px;
    }

    .feature-box p {
        font-size: 14px;
    }

 
    .social-media-section {
        margin: 30px 0 15px;
        gap: 15px;
    }

    .social-media-section a {
        font-size: 20px;
    }

   
    .modal-content {
        margin: 20% auto;
        width: 90%;
        padding: 15px;
    }

    .modal-content h2 {
        font-size: 22px;
    }

    .modal-body {
        max-height: 50vh; 
        padding: 10px;
    }

    .modal-body p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .modal-footer {
        padding: 10px;
    }

    .modal-footer button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .modal-close-btn {
        padding: 10px 15px;
        font-size: 12px;
    }

    footer {
        padding: 10px;
    }

    footer p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
   
    header {
        padding: 8px 10px;
        flex-wrap: nowrap;
        align-items: center;
    }

    .logo {
        font-size: 18px;
    }

    .auth-buttons {
        flex-direction: row;
        gap: 5px;
        justify-content: flex-end;
        margin-left: auto;
        flex-wrap: wrap;
    }

    .auth-buttons button {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 3px;
    }

    .dark-mode-toggle {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    
    .hero h1, .login-box h1 {
        font-size: 24px;
    }

    .hero-image {
        margin: 10px auto;
    }

    .animated-button {
        padding: 10px 15px;
        font-size: 14px;
    }

    
    .content-section {
        margin-top: 20px;
        gap: 10px;
    }

    .feature-box {
        padding: 12px;
    }

    .feature-box h3 {
        font-size: 16px;
    }

    .feature-box p {
        font-size: 13px;
    }

  
    .social-media-section {
        margin: 20px 0 10px;
        gap: 12px;
    }

    .social-media-section a {
        font-size: 18px;
    }

    
    .modal-content {
        margin: 30% auto;
        padding: 10px;
    }

    .modal-content h2 {
        font-size: 20px;
    }

    .modal-body {
        max-height: 40vh; 
        padding: 8px;
    }

    .modal-body p {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .modal-footer {
        padding: 8px;
    }

    .modal-footer button {
        padding: 8px 15px;
        font-size: 13px;
    }

    .modal-close-btn {
        padding: 8px 12px;
        font-size: 11px;
    }

    
    footer p {
        font-size: 12px;
    }

    #particles-canvas {
        display: none;
    }

   
    .upload-form #progress-container {
        height: 14px;
    }

    .upload-form #progress-container #progress-text {
        font-size: 11px;
    }
.upload-form #progress-container {
    position: relative;
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.upload-form #progress-container #progress-bar {
    width: 0%;
    height: 100%;
    background: #34c759 !important;
    border-radius: 5px;
    transition: width 0.3s linear;
    display: block;
    box-shadow: 0 0 8px rgba(52, 199, 89, 0.5);
    position: relative;
}

body.dark-mode .upload-form #progress-container #progress-bar {
    background: #50db74 !important;
    box-shadow: 0 0 8px rgba(80, 219, 116, 0.5);
}

.upload-form #progress-container #progress-bar #progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

body.dark-mode .upload-form #progress-container #progress-bar #progress-text {
    color: #ffffff;
}
}