:root {
    --ios-bg: #f2f2f7;
    --ios-glass: rgba(255, 255, 255, 0.7);
    --ios-blue: #007aff;
    --ios-red: #ff3b30;
    --ios-green: #34c759;
    --ios-text: #1c1c1e;
    --ios-secondary: #8e8e93;
    --radius-capsule: 50px;
    --radius-card: 20px;
    --sidebar-width: 240px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    background-attachment: fixed;
    color: var(--ios-text);
    min-height: 100vh;
    display: flex;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--ios-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
}

.sidebar-logo {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 40px;
    padding-left: 10px;
    color: var(--ios-text);
}

.nav-item {
    text-decoration: none;
    color: var(--ios-text);
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-item.active {
    background: var(--ios-blue);
    color: white;
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 40px;
    max-width: 1200px;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--ios-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-card);
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

/* Search Bar */
.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.input-capsule {
    background: white;
    border: 1px solid #d1d1d6;
    border-radius: 12px;
    padding: 10px 15px;
    width: 100%;
    outline: none;
    font-size: 14px;
}

.input-capsule:focus {
    border-color: var(--ios-blue);
}

.btn-capsule {
    background: var(--ios-blue);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.btn-capsule:active { opacity: 0.7; }
.btn-danger { background: var(--ios-red); }
.btn-secondary { background: #e5e5ea; color: var(--ios-text); }

/* Table Style */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    color: var(--ios-secondary);
    font-weight: 500;
    padding-bottom: 15px;
    font-size: 13px;
    text-transform: uppercase;
}

td {
    padding: 15px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 14px;
}

/* Status Badge */
.badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.badge-正常 { background: rgba(52, 199, 89, 0.15); color: var(--ios-green); }
.badge-停用 { background: rgba(255, 59, 48, 0.15); color: var(--ios-red); }
.badge-爆满 { background: rgba(255, 149, 0, 0.15); color: #ff9500; }

h1 { margin-bottom: 30px; font-weight: 700; letter-spacing: -0.5px; font-size: 28px; }
h2 { margin-bottom: 20px; font-weight: 600; font-size: 18px; }

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 20px;
    width: 600px;
    max-width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

code {
    background: #f4f4f4;
    padding: 15px;
    display: block;
    border-radius: 10px;
    margin: 15px 0;
    font-family: monospace;
    white-space: pre-wrap;
    font-size: 13px;
    color: #333;
}

/* Login specific */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.login-card {
    width: 380px;
    padding: 40px;
}
