* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #f9fafb;
    color: #111827;
    line-height: 1.6;
}

a { color: #2563eb; text-decoration: none; }
a:hover { color: #1d4ed8; }

.admin-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.admin-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-brand { display: flex; align-items: center; gap: 10px; }
.admin-brand h2 { font-size: 18px; font-weight: 700; }
.admin-header-actions { display: flex; align-items: center; gap: 12px; }

.logo-icon {
    width: 32px; height: 32px;
    background: #2563eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.logo-icon.small { width: 28px; height: 28px; font-size: 14px; }

.container { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.dashboard-header h1 { font-size: 28px; font-weight: 800; }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}
.service-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}
.service-card-icon { font-size: 32px; margin-bottom: 12px; }
.service-card-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.service-card-desc { font-size: 13px; color: #6b7280; margin-bottom: 16px; }
.service-card-actions { display: flex; gap: 8px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}
.btn-primary {
    background: #2563eb;
    color: #fff;
}
.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.btn-outline {
    background: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
}
.btn-outline:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; }
.btn-delete {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
}
.btn-delete:hover { background: #fef2f2; }

.edit-form { max-width: 700px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-group textarea { resize: vertical; }
.form-actions { display: flex; gap: 12px; margin-top: 32px; }

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}
.login-container {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo .logo-icon {
    width: 48px; height: 48px;
    font-size: 22px;
    margin: 0 auto 12px;
}
.login-logo h1 { font-size: 22px; font-weight: 800; }
.login-message { text-align: center; font-size: 14px; color: #6b7280; }

.upload-area.drag-over {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.upload-area.drag-over .upload-label-text {
    color: #2563eb;
}

.upload-progress {
    margin-top: 16px;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.progress-bar-track {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}
.progress-text {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
    text-align: center;
}

.upload-area {
    background: #fff;
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
}
.upload-area:hover { border-color: #2563eb; background: #fafcff; }
.upload-form { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.upload-label { cursor: pointer; font-size: 14px; color: #6b7280; }
.upload-label input[type="file"] { display: block; margin: 8px auto; }

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.photo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
    aspect-ratio: 4/3;
}
.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.photo-number { color: #fff; font-size: 12px; font-weight: 600; }

.publish-section { text-align: center; padding: 32px 0; }
.empty-state { color: #9ca3af; text-align: center; padding: 48px 0; font-size: 14px; }
