/* ================================
   🎨 GLOBAL DARK THEME STYLE
================================ */
body {
    font-family: Arial, sans-serif;
    padding: 30px;
    background: #1e1e2f;
    color: #e0e0e0;
}

header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

header a {
    color: #e0e0e0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    font-size: 16px;
}

header a:hover { 
    color: #4fd1c5;
    transform: translateY(-2px);
}

/* ================================
   🎨 TITLE STYLE
================================ */
h1 { 
    color: #4fd1c5;
    text-align: center;
}

h2 { 
    color: #4fd1c5;
    margin-top: 30px;
}

/* ================================
   🎨 INPUT & BUTTON
================================ */
input[type="file"] {
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    border: 1px solid #555;
    background: #2a2a3d;
    color: #e0e0e0;
}

button {
    padding: 10px 15px;
    margin: 5px 0;
    border: none;
    border-radius: 5px;
    background: #4fd1c5;
    color: #1e1e2f;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s ease;
}

button:hover {
    background: #38b2ac;
    transform: scale(1.05);
}

/* ================================
   🔗 FILE URL STYLE
================================ */
#fileUrl a, 
a.icon-link {
    color: #f6e05e;
    font-weight: bold;
    text-decoration: none;
}

#fileUrl a:hover, 
a.icon-link:hover {
    text-decoration: underline;
}

/* ================================
   📄 TABLE STYLE (CRUD PAGE)
================================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #2a2a3d;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #555;
}

th {
    background-color: #2563eb;
    color: white;
}

tr:hover {
    background-color: #3a3a5a;
}

/* Action Buttons */
.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    margin: 0 3px;
    transition: 0.2s ease;
}

.icon-btn.rename { color: #f59e0b; }
.icon-btn.delete { color: #ef4444; }

.icon-btn:hover {
    transform: scale(1.2);
}

section { 
    margin-bottom: 40px; 
}

/* ================================
   ⏳ LOADING OVERLAY STYLE
================================ */
#loadingOverlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loader-box {
    background: #2a2a3d;
    padding: 25px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 20px rgba(79, 209, 197, 0.4);
}

.loader-icon {
    font-size: 45px;
    color: #4fd1c5;
    animation: spin 1.2s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loader-text {
    color: #e0e0e0;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}
