.admin-nav {
    background: #2c3e50;
}
.admin-nav-link {
    color: #ecf0f1;
    text-decoration: none;
    margin-right: 15px;
}
.admin-nav-link:hover {
    color: #fff;
}
.admin-logout {
    float: right;
}
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
/* default.css sets body to white-on-black for the gallery; the admin pages
   are light, so reset the text colour or every card is white on white.
   The nav is position: fixed from default.css, so clear it. */
.admin-body {
    background: #f5f5f5;
    color: #222;
    font-size: 16px;
    padding-top: 52px;
}
.admin-body a:not(.btn):not(.admin-nav-link):not(.back-link) {
    color: #2c3e50;
}
.admin-body .data-table td {
    word-break: break-all;
}
.admin-body .album-header {
    flex-wrap: wrap;
}
@media (max-width: 600px) {
    .admin-container {
        padding: 10px;
    }
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}
.stat-card {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.stat-card h3 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #666;
}
.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}
.admin-actions {
    margin: 20px 0;
}
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}
.btn-primary {
    background: #3498db;
    color: #fff;
}
.btn-warning {
    background: #f39c12;
    color: #fff;
}
.btn-danger {
    background: #e74c3c;
    color: #fff;
}
.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: #fff;
}
.data-table th, .data-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.data-table th {
    background: #f8f9fa;
    font-weight: 600;
}
.album-list {
    margin: 20px 0;
}
.album-card {
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.album-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.album-cover {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 3px;
}
.album-cover-placeholder {
    width: 60px;
    height: 45px;
    background: #eee;
    display: inline-block;
    text-align: center;
    line-height: 45px;
    font-size: 20px;
    color: #999;
    border-radius: 3px;
}
.album-link {
    text-decoration: none;
    color: #2c3e50;
}
.album-date {
    color: #999;
    font-size: 13px;
}
.album-count {
    color: #666;
    font-size: 13px;
}
.album-size {
    color: #666;
    font-size: 13px;
}
.album-actions {
    margin-top: 10px;
}
.login-container {
    max-width: 360px;
    margin: 60px auto;
    padding: 30px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.login-container h2 {
    margin-top: 0;
}
.login-hint {
    margin-top: 16px;
    font-size: 12px;
    color: #888;
    text-align: center;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
.form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
.alert {
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 4px;
}
.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.album-header-admin {
    margin: 20px 0;
}
.photo-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: #fff;
}
.photo-table th, .photo-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.photo-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
}
.photo-thumb-placeholder {
    width: 80px;
    height: 60px;
    background: #eee;
    display: inline-block;
    text-align: center;
    line-height: 60px;
    font-size: 24px;
    color: #999;
    border-radius: 3px;
}
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}
.status-new {
    background: #fff3cd;
    color: #856404;
}
.status-skip {
    background: #d1ecf1;
    color: #0c5460;
}
.status-process {
    background: #d4edda;
    color: #155724;
}
.status-broken {
    background: #f8d7da;
    color: #721c24;
}
.edit-title-form {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}
.edit-title-form input {
    flex: 1;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.back-link {
    display: inline-block;
    margin-bottom: 15px;
    color: #3498db;
    text-decoration: none;
}
.back-link:hover {
    text-decoration: underline;
}
