/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 12px;   /* ukuran default diperkecil */
}


.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Login Page */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.login-container {
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #bb86fc;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.input-group {
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #2d2d2d;
    color: #e0e0e0;
    font-size: 16px;
}

.input-group input:focus {
    outline: none;
    border-color: #bb86fc;
}

.login-btn {
    padding: 12px;
    background-color: #bb86fc;
    color: #121212;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #9b6ce0;
}

/* Toolbar */
.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-refresh {
    background-color: #03dac6;
    color: #000;
}

.btn-refresh:hover {
    background-color: #018786;
}

.btn-download {
    background-color: #018786;
    color: #fff;
}

.btn-download:hover {
    background-color: #016b6b;
}

.btn-delete {
    background-color: #cf6679;
    color: #fff;
}

.btn-delete:hover {
    background-color: #b00020;
}

.btn-logout {
    background-color: #cf6679;
    color: #fff;
}

.btn-logout:hover {
    background-color: #b00020;
}

.btn-password {
    background-color: #bb86fc;
    color: #000;
}

.btn-password:hover {
    background-color: #9b6ce0;
}

.btn-create {
    background-color: #03dac6;
    color: #000;
}

.btn-create:hover {
    background-color: #018786;
}

.btn-cancel {
    background-color: #cf6679;
    color: #fff;
}

.btn-cancel:hover {
    background-color: #b00020;
}

.btn-preview {
    background-color: #6200ee;
    color: #fff;
}

.btn-preview:hover {
    background-color: #3700b3;
}

.btn-close {
    background-color: #cf6679;
    color: #fff;
}

.btn-close:hover {
    background-color: #b00020;
}

/* Messages */
.message {
    padding: 10px;
    background-color: #03dac6;
    color: #000;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error-message {
    padding: 10px;
    background-color: #cf6679;
    color: #fff;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Tables */
.files-table, .users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.files-table th, .files-table td,
.users-table th, .users-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.files-table th, .users-table th {
    background-color: #1e1e1e;
    color: #bb86fc;
}

.files-table tr:hover, .users-table tr:hover {
    background-color: #2d2d2d;
}

/* File links */
.file-link {
    color: #bb86fc;
    text-decoration: none;
}

.file-link:hover {
    text-decoration: underline;
}

/* Admin sections */
.admin-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 8px;
}

.user-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.user-form input {
    padding: 10px;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #2d2d2d;
    color: #e0e0e0;
}

/* Password form */
.password-form {
    margin-top: 30px;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 8px;
}

.password-form .input-group {
    margin-bottom: 15px;
}

/* Preview page */
.preview-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.preview-toolbar {
    display: flex;
    gap: 10px;
}

.preview-content {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    max-height: 70vh;
    overflow: auto;
}

.preview-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #e0e0e0;
}

.preview-footer {
    text-align: center;
    padding: 10px;
    background-color: #1e1e1e;
    border-radius: 4px;
}

.btn-delete {
background-color: #cf6679;
color: #fff;
}

.btn-delete:hover {
    background-color: #b00020;
}

.btn {
    width: 100px;
    text-align: center;
    padding: 10px;
}

/* Tombol Refresh */
.btn-refresh {
    width: 100px;
    padding: 10px;
    text-align: center;
}

/* Tombol Tutup */
.btn-close {
    width: 100px;
    padding: 10px;
    text-align: center;
}
