/* Seidensticker Indonesia - Email Management System Theme */
:root {
    --brand-dark: #0f172a;
    --brand-navy: #1e293b;
    --brand-primary: #2563eb;
    --brand-primary-hover: #1d4ed8;
    --brand-accent: #3b82f6;
    --bg-body: #f8fafc;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
}

body {
    background-color: var(--bg-body);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 270px;
    background-color: var(--brand-dark);
    color: #94a3b8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar .brand-header {
    padding: 1.5rem 1.25rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar .brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-transform: uppercase;
}

.sidebar .brand-subtitle {
    font-size: 0.72rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0.75rem 0.5rem;
}

.sidebar-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #475569;
    padding: 0.75rem 0.85rem 0.35rem 0.85rem;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: all 0.15s ease-in-out;
}

.sidebar .nav-link i {
    font-size: 1.15rem;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.sidebar .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
}

.sidebar .nav-link.active {
    color: #ffffff;
    background-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    font-weight: 600;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

/* Main Area */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar-top {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.75rem;
}

.page-content {
    flex: 1;
    padding: 1.75rem;
}

/* Cards & Components */
.card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-box {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    background: #ffffff;
    display: flex;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-right: 1rem;
}

/* Email List Table & Rows */
.email-row {
    transition: background-color 0.1s;
    cursor: pointer;
}

.email-row:hover {
    background-color: #f1f5f9;
}

.email-row.unread {
    background-color: #f8fafc;
    font-weight: 600;
}

.email-row.unread .email-subject {
    color: #0f172a;
    font-weight: 700;
}

.star-btn {
    color: #cbd5e1;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.15s;
}

.star-btn.starred, .star-btn:hover {
    color: #f59e0b;
}

/* Quill Customization */
#editor-container {
    height: 260px;
    font-size: 15px;
}

.ql-toolbar {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-color: #cbd5e1 !important;
}

.ql-container {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-color: #cbd5e1 !important;
    font-family: inherit;
}

/* Attachment Chips */
.attachment-chip {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    font-size: 0.825rem;
    margin: 0.2rem;
}

/* Email Viewer Card */
.email-view-header {
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.email-view-body {
    padding: 1.75rem;
    min-height: 250px;
    background: #ffffff;
    line-height: 1.6;
}

/* Correction Box */
.correction-box {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
}
