/* admin/css/style.css */
:root {
    --primary-color: #1A1A1A;
    --accent-color: #C5A47E;
    --bg-color: #F5F7FA;
    --sidebar-width: 240px;
    --header-height: 60px;
    --text-color: #333;
    --border-color: #E6E6E6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
}

/* Login Page */
.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f2f5;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.login-box {
    width: 400px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.login-header p {
    color: #999;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(197, 164, 126, 0.2);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #000;
}

.alert {
    padding: 10px;
    background: #fdeaea;
    color: #d9534f;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 12px;
    text-align: center;
}

/* Admin Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--primary-color);
    color: #fff;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.logo-area {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-area h1 {
    font-size: 18px;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-menu {
    padding: 20px 0;
    list-style: none;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-menu li a:hover, .nav-menu li a.active {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-left-color: var(--accent-color);
}

.nav-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-header {
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.breadcrumb {
    color: #666;
    font-size: 14px;
}

.user-dropdown {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #eee;
    border-radius: 50%;
    margin-right: 10px;
}

.logout-link {
    color: #d9534f;
    text-decoration: none;
    font-size: 12px;
    margin-left: 15px;
}

.page-content {
    padding: 30px;
    flex: 1;
    min-height: 0;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    padding: 25px;
    margin-bottom: 25px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: var(--primary-color);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
    color: #fff;
}

.bg-blue { background: #409EFF; }
.bg-green { background: #67C23A; }
.bg-orange { background: #E6A23C; }
.bg-purple { background: #8e44ad; }

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-info p {
    color: #999;
    font-size: 13px;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px 15px;
    background: #f8f9fa;
    color: #666;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #333;
}

tr:hover td {
    background: #fcfcfc;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-success { background: #e1f3d8; color: #67C23A; }
.status-info { background: #e9ecf2; color: #909399; }
.status-warning { background: #fdf6ec; color: #e6a23c; }

/* Upload Component */
.upload-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.preview-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

.upload-btn-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn-upload {
    border: 1px solid #ccc;
    color: #666;
    background-color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-upload:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
}

.upload-btn-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

/* Footer */
.admin-footer {
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: 20px 30px;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.footer-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.footer-text .copyright {
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
    width: 100%;
}

.footer-text .support {
    font-size: 12px;
    color: #ccc;
    width: 100%;
}