@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --primary-color: #fff;
    --secondary-color: #000000;
    --accent: #C4DCF0;
    --text-color: #1a1a1a;
    --muted: #6b7280;
    --border-color: #e5e7eb;
    --light-bg: #f6f6f4;
    --green: #16a34a;
    --red: #dc2626;
    --amber: #d97706;
    --sidebar-w: 250px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-size: 15px;
    line-height: 24px;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    background: var(--light-bg);
}

a:hover { text-decoration: none; }

.easy-text-logo {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 30px;
    color: #fff !important;
    text-decoration: none;
    letter-spacing: -.5px;
    white-space: nowrap;
    line-height: 1.2;
}

/* LAYOUT */
.panel-wrapper { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    background: var(--secondary-color);
    color: #fff;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
}
.sidebar-brand { padding: 26px 24px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand .tagline { font-size: 11px; color: rgba(255,255,255,.45); letter-spacing: 2px; text-transform: uppercase; display: block; margin-top: 2px; }

.sidebar-nav { flex: 1; padding: 18px 12px; overflow-y: auto; }
.sidebar-nav .nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.35); padding: 14px 12px 6px; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.72);
    padding: 11px 12px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 500;
    margin-bottom: 2px;
    transition: .15s ease-in-out;
}
.sidebar-nav a i { width: 20px; text-align: center; font-size: 15px; }
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-nav a.active { color: var(--secondary-color); background: var(--accent); font-weight: 600; }
.sidebar-nav a .badge-count { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; border-radius: 20px; padding: 1px 7px; }

.sidebar-footer { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { display: flex; align-items: center; gap: 10px; }
.sidebar-user .avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--secondary-color);
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.sidebar-user .name { font-size: 13.5px; font-weight: 600; color: #fff; line-height: 18px; }
.sidebar-user .mail { font-size: 12px; color: rgba(255,255,255,.45); line-height: 16px; }
.sidebar-user a.logout { margin-left: auto; color: rgba(255,255,255,.5); font-size: 15px; }
.sidebar-user a.logout:hover { color: #fff; }

.main-content { flex: 1; margin-left: var(--sidebar-w); padding: 0 32px 60px; min-width: 0; }

.topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0 24px;
}
.topbar h1 { font-family: "Playfair Display", serif; font-size: 26px; line-height: 32px; font-weight: 700; color: var(--secondary-color); margin: 0; }
.topbar .subtitle { font-size: 13.5px; color: var(--muted); margin: 0; }
.topbar .topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.btn-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border-color);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-color);
    position: relative;
    transition: .15s;
}
.btn-icon:hover { border-color: var(--secondary-color); }
.btn-icon .dot { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* BUTTONS */
.btn-easy {
    background: var(--secondary-color);
    color: #fff;
    border: 1px solid var(--secondary-color);
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: .15s;
}
.btn-easy:hover { color: #fff; opacity: .85; }
.btn-easy.accent { background: var(--accent); color: var(--secondary-color); border-color: var(--accent); font-weight: 600; }
.btn-easy.outline { background: transparent; color: var(--secondary-color); }
.btn-easy.outline:hover { background: var(--secondary-color); color: #fff; opacity: 1; }
.btn-easy.sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }

/* CARDS */
.card-easy {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px;
}
.card-easy .card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-easy .card-head h3 { font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600; margin: 0; color: var(--secondary-color); }
.card-easy .card-head a { font-size: 13px; font-weight: 500; color: var(--muted); }
.card-easy .card-head a:hover { color: var(--secondary-color); }

/* STAT TILES */
.stat-tile { background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 20px 22px; }
.stat-tile .stat-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--secondary-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    margin-bottom: 14px;
}
.stat-tile .stat-value { font-size: 26px; font-weight: 700; color: var(--secondary-color); line-height: 30px; }
.stat-tile .stat-label { font-size: 13px; color: var(--muted); }
.stat-tile .stat-meta { font-size: 12.5px; margin-top: 8px; }
.stat-tile .stat-meta.up { color: var(--green); }
.stat-tile .stat-meta.warn { color: var(--amber); }

/* TABLES */
.table-easy { width: 100%; border-collapse: collapse; }
.table-easy th {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--muted);
    font-weight: 600;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
.table-easy td { padding: 14px 12px; border-bottom: 1px solid var(--border-color); font-size: 14px; vertical-align: middle; }
.table-easy tr:last-child td { border-bottom: none; }
.table-easy tr:hover td { background: var(--light-bg); }
.table-easy .cell-main { font-weight: 600; color: var(--secondary-color); }
.table-easy .cell-sub { font-size: 12.5px; color: var(--muted); }

/* BADGES */
.badge-easy { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
.badge-easy::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-easy.ok { background: #e8f7ee; color: var(--green); }
.badge-easy.warn { background: #fdf3e3; color: var(--amber); }
.badge-easy.err { background: #fdecec; color: var(--red); }
.badge-easy.info { background: #eef2ff; color: #4f46e5; }
.badge-easy.muted { background: #f1f1f0; color: var(--muted); }
.badge-easy.plain::before { display: none; }

/* PROGRESS */
.progress-easy { height: 7px; border-radius: 6px; background: #ededeb; overflow: hidden; min-width: 90px; }
.progress-easy .bar { height: 100%; border-radius: 6px; background: var(--secondary-color); }
.progress-easy .bar.warn { background: var(--amber); }
.progress-easy .bar.err { background: var(--red); }

/* USAGE ROW */
.usage-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.usage-row:last-child { margin-bottom: 0; }
.usage-row .u-label { font-size: 13.5px; font-weight: 500; width: 90px; flex-shrink: 0; }
.usage-row .u-val { font-size: 12.5px; color: var(--muted); width: 92px; text-align: right; flex-shrink: 0; }
.usage-row .progress-easy { flex: 1; }

/* TIMELINE / TICKETS */
.timeline-item { display: flex; gap: 14px; padding-bottom: 18px; position: relative; }
.timeline-item:not(:last-child)::before { content: ''; position: absolute; left: 5px; top: 16px; bottom: 0; width: 1px; background: var(--border-color); }
.timeline-item .t-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border-color); margin-top: 5px; flex-shrink: 0; z-index: 1; }
.timeline-item .t-title { font-size: 14px; font-weight: 600; color: var(--secondary-color); }
.timeline-item .t-text { font-size: 13px; color: var(--muted); }
.timeline-item .t-time { font-size: 12px; color: var(--muted); }

/* LOGIN PAGE */
.login-body { background: var(--secondary-color); display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-card { background: #fff; border-radius: 18px; padding: 44px 40px; width: 100%; max-width: 420px; }
.login-card .easy-text-logo { color: var(--secondary-color) !important; font-size: 34px; }
.login-card h2 { font-family: 'Inter', sans-serif; font-size: 21px; font-weight: 700; margin: 22px 0 6px; }
.login-card .login-sub { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.login-card .form-group { margin-bottom: 16px; }
.login-card label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }
.login-card .form-control {
    height: 46px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-size: 14.5px;
    padding: 10px 14px;
}
.login-card .form-control:focus { border-color: var(--secondary-color); box-shadow: none; }
.login-card .btn-easy { width: 100%; justify-content: center; height: 48px; margin-top: 8px; }
.login-card .login-foot { text-align: center; font-size: 13.5px; margin-top: 22px; color: var(--muted); }
.login-card .login-foot a { color: var(--secondary-color); font-weight: 600; }
.login-note { color: rgba(255,255,255,.4); font-size: 12.5px; text-align: center; margin-top: 18px; }

/* FORMS generic */
.form-control-easy {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    font-size: 14px;
    background: #fff;
}
.form-control-easy:focus { border-color: var(--secondary-color); outline: none; box-shadow: none; }
label.form-label-easy { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }

/* MISC */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.grid-even { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mb-18 { margin-bottom: 18px; }
.mb-24 { margin-bottom: 24px; }
.text-muted-easy { color: var(--muted); font-size: 13.5px; }
.section-gap { margin-top: 26px; }

.empty-state { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty-state i { font-size: 34px; margin-bottom: 12px; display: block; color: #d1d1cf; }
.empty-state .es-title { font-weight: 600; color: var(--secondary-color); font-size: 15px; margin-bottom: 4px; }

@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding: 0 16px 40px; }
    .grid-4, .grid-even { grid-template-columns: 1fr; }
}
