.admin-view-actions {
    margin-top: 30px;
}

.admin-form {
    max-width: 600px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin: 0 auto;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.admin-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-container {
    padding: 0 20px 50px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.admin-stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.admin-stat-card h2 {
    font-size: 48px;
    color: var(--primary);
    margin: 0;
}

.admin-stat-card p {
    margin: 10px 0;
}

.admin-hint {
    margin-bottom: 20px;
    color: var(--text-light);
}

.admin-message {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    white-space: pre-wrap;
}

.admin-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-table th {
    background: var(--primary);
    color: white;
    padding: 12px;
    text-align: left;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.admin-table tr:hover {
    background: var(--bg-light);
}

.admin-nav {
    background: var(--primary);
    padding: 15px 0;
    margin-bottom: 30px;
}

.admin-nav .container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.admin-nav a,
.admin-nav .logout-link,
.admin-nav a.logout-link {
    color: var(--white) !important;
    text-decoration: none;
}

.admin-nav a:hover {
    color: var(--white) !important;
    text-decoration: underline;
}

.form-foto-pk {
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.image-preview-container {
    margin-bottom: 10px;
}

.image-preview {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 5px;
    display: block;
}

.upload-section {
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.upload-section:last-child {
    margin-bottom: 0;
}

.upload-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.upload-btn-select {
    background: #546F94;
    color: white;
    padding: 6px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    display: inline-block;
}

.upload-btn-select:hover {
    background: #3a4f6e;
}

.upload-input-hidden {
    display: none;
}

.upload-file-name {
    font-size: 13px;
    color: #666;
}

.upload-btn-submit {
    padding: 4px 12px;
    font-size: 13px;
}

.upload-hint {
    color: #999;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.upload-status {
    margin-top: 5px;
    font-size: 12px;
}

.upload-url-input {
    flex: 1;
    min-width: 200px;
}

.upload-url-label {
    font-size: 13px;
    color: #666;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    cursor: pointer;
}

.admin-table .btn-edit,
.btn-edit {
    padding: 0;
    width: 44px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    background-color: #546F94;
    color: var(--white);
    box-shadow: 0 2px 4px rgba(84, 111, 148, 0.2);
}

.admin-table .btn-edit:hover,
.btn-edit:hover {
    background-color: #3a4f6e;
    box-shadow: 0 2px 4px rgba(84, 111, 148, 0.2);
    color: var(--white);
    text-decoration: none;
}

.admin-table .btn-danger,
.btn-danger {
    padding: 0;
    width: 44px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    background-color: #dc3545;
    color: var(--white);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.admin-table .btn-danger:hover,
.btn-danger:hover {
    background-color: #c82333;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

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

.admin-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.admin-form .form-group input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

.admin-form .form-actions {
    display: flex;
    gap: 10px;
}

.uploads-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.uploads-title {
    margin: 0;
}

.uploads-empty {
    text-align: center;
    padding: 40px;
    color: #999;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.upload-file-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}

.upload-file-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    word-break: break-all;
}

.admin-table .btn-edit img,
.btn-edit img,
.admin-table .btn-danger img,
.btn-danger img {
    filter: brightness(0) invert(1);
    width: 14px;
    height: 14px;
    display: block;
    margin: auto;
}

.uploads-header .btn-danger,
.uploads-header .btn {
    background-color: #dc3545;
    color: var(--white);
    width: auto;
    height: auto;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
}

.uploads-header .btn-danger:hover,
.uploads-header .btn:hover {
    background-color: #c82333;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
    color: var(--white);
    text-decoration: none;
}

.uploads-header .btn-danger img,
.uploads-header .btn img {
    filter: brightness(0) invert(1);
    width: 16px;
    height: 16px;
    margin: 0;
    display: block;
}

.admin-actions-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}
body.login-page {
    background: linear-gradient(135deg, #0b2d59 0%, #1e3a1f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', 'Roboto', sans-serif;
}

.login-card {
    background: var(--white);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

.login-card h1 {
    font-family: 'Yeseva One', cursive;
    font-size: 1.75rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 24px;
    font-weight: 400;
}

.login-card .error-message {
    background: #f8d7da;
    color: #dc3545;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #f5c6cb;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-card input[type="text"],
.login-card input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-light);
    color: var(--text);
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.login-card input[type="text"]:focus,
.login-card input[type="password"]:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(11, 45, 89, 0.1);
}

.login-card button[type="submit"] {
    width: 100%;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(11, 45, 89, 0.2);
}

.login-card button[type="submit"]:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(11, 45, 89, 0.3);
    transform: translateY(-1px);
}