@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #0b1120 !important;
    background-image: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 600px), radial-gradient(circle at bottom left, rgba(76, 29, 149, 0.15), transparent 600px) !important;
    color: #e2e8f0;
    min-height: 100vh;
}

/* Glassmorphic Navbar */
.navbar {
    background: rgba(11, 17, 32, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0.2rem 1rem !important; /* Made even thinner */
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff !important;
}

.nav-link {
    color: #94a3b8 !important;
    font-weight: 600;
    transition: color 0.2s;
    font-size: 0.88rem; /* Made text smaller */
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
}

/* Buttons */
.btn-primary, .btn-outline-primary:hover {
    background-color: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.btn-outline-primary {
    color: #6366f1;
    border-color: #6366f1;
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
}

/* Typography elements */
.text-muted {
    color: #94a3b8 !important;
}

/* Cards & Layout */
.card {
    background-color: #1e293b;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

/* Upload Zone specific (replacing the old card layout) */
/* Upload Hero */
.jumbotron {
    background: transparent !important;
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.upload-zone-wrapper .card {
    background: transparent;
    border: none;
    box-shadow: none;
}

.upload-zone-wrapper .card-header, .upload-zone-wrapper .nav-tabs {
    display: none; /* Hide old tabs */
}

.upload-zone-container, .fd-zone {
    border: 2px dashed rgba(255,255,255,0.15) !important;
    border-radius: 8px;
    padding: 4rem 1.5rem !important;
    background: transparent !important;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #f1f5f9 !important;
}

.upload-zone-container:hover, .fd-zone:hover {
    border-color: #6366f1 !important;
    background: rgba(99, 102, 241, 0.08) !important;
}

.fd-zone-current {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: #6366f1 !important;
}

.fd-zone p.img {
    display: none !important;
}

.fd-zone p span, .fd-zone h3 span {
    text-shadow: none !important;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.input-group {
    background: #2a2a32;
    border-radius: 8px;
    overflow: hidden;
    margin: 0.5rem auto !important;
    max-width: 500px;
}

.input-group .form-control {
    background: transparent;
    color: #fafafa;
    border: none;
    box-shadow: none;
}

.input-group .btn {
    border-radius: 0;
    box-shadow: none !important;
}

.file-button-browse {
    background: #464652 !important;
    border: none !important;
    color: #fff !important;
}

/* List groups */
.list-group-item {
    background-color: transparent;
    border-color: rgba(255,255,255,0.05);
    color: #fafafa;
}

/* -------------------------------------
 * Upload Success Box (#messages) Beautification
 * ------------------------------------- */
#messages {
    background: rgba(30, 41, 59, 0.6) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(99, 102, 241, 0.15) !important;
    padding: 1.5rem 2rem !important;
    margin-top: 2rem !important;
    animation: popIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

#messages .alert-success {
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    border-bottom: 1px dashed rgba(255,255,255,0.1) !important;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

#messages .list-group-item {
    background: transparent !important;
    border: none !important;
    padding: 0.8rem 0;
}

/* Beautiful link inputs inside success box */
#messages input[type="text"], #messages textarea {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    font-family: monospace;
    font-size: 0.95rem;
    transition: all 0.3s;
}

#messages input[type="text"]:focus, #messages textarea:focus {
    border-color: #6366f1 !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 0 15px rgba(99,102,241,0.3) !important;
}

/* Download details */
.list-group-item-text {
    font-weight: 500;
}

.list-group-item-info {
    background-color: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.list-group-item-info a {
    color: #6366f1;
}

/* Badges */
.badge-default {
    background-color: #464652;
    color: #fafafa;
}

/* Form controls (captchas, inputs) */
.form-control, input[type="text"], input[type="password"], textarea {
    background-color: #2a2a32 !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    width: 100%;
}

.form-control:focus, input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
    background-color: #2a2a32 !important;
    color: #ffffff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25) !important;
    outline: none;
}

/* Progress bar */
.progress {
    background-color: #2a2a32;
    border-radius: 8px;
    height: 1.5rem;
}

.progress-bar {
    background-color: #6366f1;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

footer a {
    color: #a1a1aa;
    transition: color 0.2s;
}

footer a:hover {
    color: #ffffff;
    text-decoration: none;
}
