/* ===== Custom Admin Override ===== */
/* Removes Typecho branding, applies custom theme */

/* Login page - custom logo style */
.typecho-login h1.custom-logo {
    font-size: 28px;
    color: #444;
    text-align: center;
    margin: 0 0 20px;
    font-weight: normal;
    letter-spacing: 2px;
}

/* Shorter, cleaner footer */
.typecho-foot {
    border-top: 1px solid #E9E9E6;
    margin-top: 20px;
    padding: 15px 20px;
    text-align: center;
}
.typecho-foot .copyright p {
    margin: 0;
    color: #999;
    font-size: 12px;
}
.typecho-foot .copyright a {
    color: #888;
}
.typecho-foot .copyright a:hover {
    color: #444;
}

/* Dashboard - smoother sections */
.latest-link {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}
.latest-link h3 {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}
.welcome-board {
    background: #f9fafb;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Page title cleaner */
.typecho-page-title h2 {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

/* Cleaner buttons */
.btn.primary {
    background: #5b98c0;
    border-color: #5b98c0;
}
.btn.primary:hover {
    background: #4a84aa;
    border-color: #4a84aa;
}

/* Message popup styling */
.message.popup {
    border-radius: 0 0 4px 4px;
}


/* ===== typecho- class overrides (visual only) ===== */

/* Welcome section - remove typecho-specific ID styling */
#typecho-welcome.message {
    background: #f9fafb;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 20px;
}
#typecho-welcome h3 {
    font-size: 16px;
    color: #333;
    margin: 0 0 15px;
    font-weight: 500;
}
#typecho-welcome ol {
    margin: 0 0 15px 20px;
    padding: 0;
}
#typecho-welcome ol li {
    margin: 5px 0;
    color: #666;
}
#typecho-welcome ol li a {
    color: #5b98c0;
}

/* Dashboard typecho-dashboard */
.typecho-dashboard .welcome-board {
    background: #f9fafb;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}
.typecho-dashboard .welcome-board p {
    margin: 0 0 10px;
    color: #555;
    line-height: 1.8;
}
.typecho-dashboard .welcome-board em {
    color: #5b98c0;
    font-style: normal;
    font-weight: 600;
}

/* Stat numbers styling */
.typecho-dashboard .balloon {
    background: #f0f0f0;
    color: #888;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
}

/* List tables */
.typecho-list-table {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}
.typecho-list-table th {
    background: #f5f6f7;
    color: #666;
    font-weight: 500;
    padding: 10px 12px;
    border-bottom: 1px solid #e8e8e8;
}
.typecho-list-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}
.typecho-list-table tr:hover {
    background: #fafbfc;
}
.typecho-list-table-title {
    color: #888;
    font-size: 13px;
    font-weight: 400;
}

/* List operate bar */
.typecho-list-operate {
    background: #f5f6f7;
    border: 1px solid #e8e8e8;
    border-radius: 4px 4px 0 0;
    padding: 8px 12px;
    margin-bottom: 0;
}

/* Option tabs */
.typecho-option-tabs {
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #e8e8e8;
}
.typecho-option-tabs li {
    display: inline-block;
    margin: 0;
}
.typecho-option-tabs li a {
    display: block;
    padding: 8px 16px;
    color: #888;
    font-size: 13px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.typecho-option-tabs li.active a,
.typecho-option-tabs li a:hover {
    color: #333;
    border-bottom-color: #5b98c0;
    text-decoration: none;
}

/* Typecho option form */
.typecho-option {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
}
.typecho-option:last-child {
    border-bottom: none;
}
.typecho-option-submit {
    border: none;
    padding-top: 20px;
}
.typecho-label {
    display: block;
    font-size: 13px;
    color: #666;
    font-weight: 500;
    margin-bottom: 5px;
}

/* Page main area */
.typecho-page-main {
    padding: 15px 0;
}

/* Post area */
.typecho-post-area .typecho-post-option {
    background: #fafbfc;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

/* Pager */
.typecho-pager li.current a {
    background: #5b98c0;
    color: #fff;
    border: none;
}

/* Head nav - tweak for slightly modern look */
.typecho-head-nav {
    background: #2d323a;
}
.typecho-head-nav a,
.typecho-head-nav button.menu-bar {
    color: #ccc;
}
.typecho-head-nav a:hover,
.typecho-head-nav button.menu-bar:hover {
    color: #fff;
}

/* Post area tab styling */
#edit-secondary .typecho-option-tabs li {
    border: 1px solid #e0e0e0;
    border-bottom: none;
    margin-right: 2px;
}
#edit-secondary .typecho-option-tabs li a {
    background: #f5f5f5;
    color: #888;
}
#edit-secondary .typecho-option-tabs li.active a {
    background: #fff;
    color: #333;
}

/* Search / filter area */
.typecho-page-main .search {
    margin: 0 0 15px;
}

/* Mini panel */
.typecho-mini-panel {
    background: #f0f7fb;
    border: 1px solid #d4e8f0;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    color: #555;
    font-size: 13px;
}

/* Welcome panel heading */
.typecho-list-table-title {
    padding: 20px;
    text-align: center;
    color: #999;
}

/* Table wrap for scrollable */
.typecho-table-wrap {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow-x: auto;
}

/* Theme list fix */
.typecho-theme-list td {
    vertical-align: top;
    padding: 15px;
}

/* Attachment photo */
.typecho-attachment-photo {
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Login page style */
.typecho-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.typecho-login {
    width: 320px;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.typecho-login form input.text-l {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
}
.typecho-login form input.text-l:focus {
    border-color: #5b98c0;
    outline: none;
    box-shadow: 0 0 0 2px rgba(91,152,192,0.15);
}
.typecho-login .submit button {
    padding: 10px 16px;
    font-size: 14px;
}
.typecho-login h1.custom-logo {
    font-size: 24px;
    font-weight: 300;
    color: #444;
    text-align: center;
    margin: 0 0 30px;
    letter-spacing: 3px;
}

/* Content panel */
.typecho-content-panel {
    background: #fafbfc;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Editor theme area */
.typecho-edit-theme {
    background: #1e1e1e;
    border-radius: 4px;
    padding: 20px;
    margin: 15px 0;
}
