* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 100vh;
    color: #fff;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Logo */
.logo {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.logo .kats {
    color: #ff6b00;
}

.logo .card {
    color: #ffb400;
}

/* Cards */
.login-card,
.upload-card {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 107, 0, 0.1);
}

.upload-card {
    max-width: 520px;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #fff;
}

.subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Inputs */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group textarea {
    min-height: 80px;
    resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

/* Buttons */
.btn-login,
.btn-upload {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover,
.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(10, 10, 10, 0.9);
    border-bottom: 1px solid #222;
    backdrop-filter: blur(10px);
}

.navbar .logo {
    font-size: 1.3rem;
    margin: 0;
}

/* File Upload */
.file-upload {
    position: relative;
    border: 2px dashed #444;
    border-radius: 12px;
    padding: 40px 20px;
    margin-bottom: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover,
.file-upload.dragover {
    border-color: #ff6b00;
    background: rgba(255, 107, 0, 0.05);
}

.file-upload.has-file {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
}

.file-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content {
    pointer-events: none;
}

.file-upload .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.file-upload .or {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
}

.selected-file {
    color: #2ecc71;
    font-weight: 600;
    margin-top: 10px;
}

/* Current Version */
.current-version {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #333;
    text-align: left;
}

.current-version h3 {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
}

.version-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.toast.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Progress Bar */
#progressContainer {
    margin-bottom: 20px;
    display: none;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6b00, #ffb400);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.progress-fill.complete {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.progress-fill.error {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff6b00;
}

/* Responsive */
@media (max-width: 480px) {

    .login-card,
    .upload-card {
        padding: 30px 20px;
    }
}