/* ============ GLOBAL ============ */
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f6f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* ============ CARD / CONTAINER ============ */

.card, .container {
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.card {
    width: 480px;  /* Upload Page */
}

.container {
    width: 350px; /* Dashboard Page */
}

h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

/* ============ CUSTOM BUTTONS (.btn) ============ */

.btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    transition: 0.2s ease;
    border: none;
}

/* Green Upload Button (Dashboard) */
.btn-upload {
    background: #28a745;
}
.btn-upload:hover {
    background: #218838;
}

/* Blue List Button */
.btn-list {
    background: #007bff;
}
.btn-list:hover {
    background: #0069d9;
}

/* Grey Back Button */
.btn-back {
    background: #6c757d;
}
.btn-back:hover {
    background: #5a6268;
}

/* Blue View Data Button */
.btn-view {
    background: #007bff;
}
.btn-view:hover {
    background: #0069d9;
}

/* ============ UPLOAD FORM BUTTON ============ */

/* Styling ONLY for actual <button> used in upload form */
button.upload-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    background: #e9ecef;
    color: #6c757d;
}

/* Disabled upload button */
button.upload-btn:disabled {
    background: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
}

button.upload-btn:not(:disabled) {
    background: #28a745;
    color: #fff;
}

button.upload-btn:not(:disabled):hover {
    background: #218838;
}

/* ============ MESSAGES ============ */

.message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.success {
    background: #d4edda;
    color: #155724;
}

.error {
    background: #f8d7da;
    color: #721c24;
}

/* ============ FILE INPUT ============ */

label {
    display: block;
    text-align: left;
    font-weight: bold;
    color: #444;
    margin-top: 10px;
}

input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #ccc;
    background: #fafafa;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    transition: 0.3s ease;
}

input[type="file"]:hover {
    border-color: #777;
}

/* ============ ACTION BUTTON ROW ============ */

.actions {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
}

/* ============ DOWNLOAD LINK ============ */

.download-link {
    text-align: center;
    margin-top: 15px;
}

.download-link a {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
}

.download-link a:hover {
    text-decoration: underline;
}
