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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
}

#app {
    min-height: 100vh;
}

.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.logo h1 {
    color: white;
    font-size: 28px;
    font-weight: bold;
}

#login-form {
    background: white;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

#login-form input {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#login-form input:focus {
    outline: none;
    border-color: #4a90d9;
}

#login-form button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.hint {
    color: rgba(255,255,255,0.7);
    margin-top: 20px;
    font-size: 14px;
}

.back-link {
    color: #4a90d9;
    text-decoration: none;
    margin-top: 12px;
    font-size: 14px;
}

.header {
    background: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    color: #333;
    font-size: 20px;
}

.logout-btn {
    padding: 8px 16px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.nav-tabs {
    display: flex;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    gap: 10px;
}

.nav-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn.active {
    background: #4a90d9;
    color: white;
}

.tab-content {
    padding: 20px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

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

.panel-header h2 {
    color: white;
    font-size: 20px;
}

.search-box {
    flex: 1;
    max-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 14px;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.5);
}

.data-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state p {
    color: rgba(255,255,255,0.5);
}

.user-card, .record-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.user-info, .record-info {
    flex: 1;
}

.user-name, .record-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.user-phone, .record-phone {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.user-actions, .record-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.action-btn.view {
    background: #4a90d9;
    color: white;
}

.action-btn.delete {
    background: #ff6b6b;
    color: white;
}

.batch-card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: white;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 14px;
    resize: vertical;
}

.form-group textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.result-panel {
    margin-top: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px;
}

.result-panel h3 {
    color: white;
    margin-bottom: 12px;
}

.result-item {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.result-item.success {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.result-item.error {
    background: rgba(244, 67, 54, 0.2);
    color: #ef9a9a;
}

.stats-row {
    display: flex;
    gap: 20px;
}

.stat-item {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px 24px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #4a90d9;
}

.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

.record-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.record-detail .detail-item {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.record-detail .detail-item span {
    color: rgba(255,255,255,0.4);
    margin-right: 4px;
}

.record-image {
    max-width: 150px;
    max-height: 100px;
    object-fit: contain;
    border-radius: 8px;
    margin-top: 8px;
}

.record-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.delete-btn {
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.delete-btn:hover {
    background: #c82333;
}

.review-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.review-image {
    max-width: 200px;
    max-height: 150px;
    object-fit: contain;
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid #eee;
}

.review-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.approve-btn {
    background: #28a745;
    color: white;
}

.approve-btn:hover {
    background: #218838;
}

.reject-btn {
    background: #dc3545;
    color: white;
}

.reject-btn:hover {
    background: #c82333;
}

.banner-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edit-btn {
    background: #4a90d9;
    color: white;
}

.edit-btn:hover {
    background: #3a80c9;
}

.image-upload-area {
    position: relative;
    border: 2px dashed #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.image-upload-area:hover {
    border-color: #4a90d9;
}

.image-upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 100px;
    background: #fafafa;
}

.upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.upload-placeholder p {
    margin: 4px 0;
    color: #666;
    font-size: 14px;
}

.upload-hint {
    font-size: 12px !important;
    color: #999 !important;
}

#banner-image-preview {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #4a90d9;
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

.cancel-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #666;
    cursor: pointer;
}

.cancel-btn:hover {
    background: #f5f5f5;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.toast.show {
    opacity: 1;
}

@media (max-width: 480px) {
    .panel-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .stats-row {
        flex-direction: column;
    }
    
    .stat-item {
        flex: 1;
    }
    
    .user-card, .record-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .user-actions, .record-actions {
        width: 100%;
        justify-content: flex-end;
    }
}