/**
 * Typecho Admin - Apple Style
 * Modern, minimalist design inspired by Apple's aesthetic
 */

/* ========== Global & Typography ========== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f5f5f7 !important;
    color: #1d1d1f !important;
    font-size: 14px;
    line-height: 1.5;
}

/* ========== Header ========== */
#typecho-nav-list {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.typecho-head-nav {
    padding: 0 !important;
}

.typecho-head-nav a {
    color: #1d1d1f !important;
    font-weight: 400 !important;
    padding: 16px 20px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 !important;
}

.typecho-head-nav a:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #0071e3 !important;
}

.typecho-head-nav .focus,
.typecho-head-nav .root:hover {
    background: rgba(0, 113, 227, 0.08) !important;
    color: #0071e3 !important;
}

/* Logo Area */
#typecho-nav-list .operate a {
    font-size: 18px !important;
    font-weight: 600 !important;
    letter-spacing: -0.5px;
}

/* ========== Main Container ========== */
.container {
    max-width: 1200px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
}

.row {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 32px !important;
    margin-bottom: 20px !important;
}

/* ========== Typography ========== */
.typecho-page-title,
.typecho-head-title {
    font-size: 32px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    letter-spacing: -0.8px;
    margin-bottom: 8px !important;
}

.typecho-page-title h2 {
    font-size: 32px !important;
    font-weight: 600 !important;
    letter-spacing: -0.8px;
}

h3, h4, h5 {
    font-weight: 600 !important;
    color: #1d1d1f !important;
}

/* ========== Forms & Inputs ========== */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
textarea,
select {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: #1d1d1f !important;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: #0071e3 !important;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1) !important;
    outline: none !important;
}

/* ========== Buttons ========== */
.btn,
.btn-s,
button[type="submit"],
input[type="submit"],
.typecho-option-submit button {
    background: #0071e3 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 980px !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2) !important;
}

.btn:hover,
.btn-s:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background: #0077ed !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3) !important;
}

.btn:active,
button[type="submit"]:active {
    transform: translateY(0);
}

/* Secondary Buttons */
.btn-warn {
    background: #ff3b30 !important;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.2) !important;
}

.btn-warn:hover {
    background: #ff453a !important;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3) !important;
}

/* ========== Tables ========== */
.typecho-list-table,
.typecho-table-wrap table {
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.typecho-list-table thead,
.typecho-table-wrap table thead {
    background: #f5f5f7 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.typecho-list-table th,
.typecho-table-wrap table th {
    color: #86868b !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 20px !important;
}

.typecho-list-table td,
.typecho-table-wrap table td {
    padding: 16px 20px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    color: #1d1d1f !important;
}

.typecho-list-table tr:hover,
.typecho-table-wrap table tr:hover {
    background: rgba(0, 113, 227, 0.02) !important;
}

.typecho-list-table tr:last-child td {
    border-bottom: none !important;
}

/* ========== Links ========== */
a {
    color: #0071e3 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

a:hover {
    color: #0077ed !important;
}

/* ========== Messages & Alerts ========== */
.success,
.notice {
    background: #d1f5d3 !important;
    border: 1px solid #34c759 !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    color: #1d6f2e !important;
    margin-bottom: 20px !important;
}

.error {
    background: #ffd7d5 !important;
    border: 1px solid #ff3b30 !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    color: #8b1a14 !important;
    margin-bottom: 20px !important;
}

.notice {
    background: #e8f4fd !important;
    border: 1px solid #0071e3 !important;
    color: #004382 !important;
}

/* ========== Sidebar ========== */
.col-mb-12.col-tb-8.col-tb-offset-2 {
    max-width: 600px;
    margin: 0 auto;
}

/* ========== Login Page ========== */
.typecho-login-wrap {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 48px !important;
    max-width: 420px !important;
    margin: 80px auto !important;
}

.typecho-login h1 {
    font-size: 36px !important;
    font-weight: 600 !important;
    letter-spacing: -1px;
    margin-bottom: 32px !important;
}

/* ========== Pagination ========== */
.typecho-pager {
    margin-top: 30px !important;
}

.typecho-pager li {
    margin: 0 4px !important;
}

.typecho-pager a,
.typecho-pager span {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    color: #1d1d1f !important;
    transition: all 0.2s ease;
}

.typecho-pager a:hover {
    border-color: #0071e3 !important;
    background: rgba(0, 113, 227, 0.04) !important;
    color: #0071e3 !important;
}

.typecho-pager .current {
    background: #0071e3 !important;
    border-color: #0071e3 !important;
    color: #ffffff !important;
}

/* ========== Editor ========== */
#text {
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 8px !important;
    font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* ========== Dashboard Widgets ========== */
.typecho-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.typecho-dashboard .col-mb-12 {
    margin-bottom: 0 !important;
}

/* ========== Footer ========== */
.typecho-foot {
    text-align: center;
    padding: 40px 20px !important;
    color: #86868b !important;
    font-size: 12px !important;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f5f7;
}

::-webkit-scrollbar-thumb {
    background: #d1d1d6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b0b0b5;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .container {
        margin: 20px auto !important;
        padding: 0 16px !important;
    }
    
    .row {
        padding: 20px !important;
        border-radius: 8px !important;
    }
    
    .typecho-page-title {
        font-size: 24px !important;
    }
}

/* ========== Dark Mode Support (Optional) ========== */
@media (prefers-color-scheme: dark) {
    body {
        background: #000000 !important;
        color: #f5f5f7 !important;
    }
    
    .row {
        background: #1c1c1e !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    input[type="text"],
    input[type="password"],
    input[type="email"],
    textarea,
    select {
        background: #2c2c2e !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
        color: #f5f5f7 !important;
    }
    
    .typecho-list-table,
    .typecho-table-wrap table {
        background: #1c1c1e !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    .typecho-list-table thead {
        background: #2c2c2e !important;
    }
}
