body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f8fafc;
    color: #0f172a;
}



.modal{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.5);
}

.modal-content{
background:#fff;
padding:25px;
width:500px;
margin:100px auto;
border-radius:8px;
}

.close{
float:right;
font-size:22px;
cursor:pointer;
}

/* LOGIN DESIGN */
.login-body {
    background: linear-gradient(to bottom, #1e3a8a, #2563eb);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.back-btn{
display:inline-block;
background:#f1f5f9;
border:1px solid #e2e8f0;
border-radius:12px;
padding:8px 14px;
font-weight:600;
font-size:15px;
color:#0f172a;
text-decoration:none;
}

.back-btn:hover{
background:#e2e8f0;
}

.login-container {
    width: 380px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
}

.login-header {
    background: #1e3a8a;
    color: white;
    padding: 20px;
}

.logo-circle {
    width: 90px;
    height: 90px;
    background: white;
    color: #1e3a8a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    font-size: 28px;
}

.login-form {
    padding: 30px;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.login-form button {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.demo-box {
    background: #f1f5f9;
    padding: 10px;
    margin-top: 15px;
    border-radius: 6px;
    font-size: 13px;
}

.footer {
    padding: 10px;
    font-size: 12px;
    background: #f8fafc;
}

/* ===== ADMIN DASHBOARD DESIGN ===== */
.topbar {
    background: #1e3a8a;
    color: white;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.12);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-circle {
    width: 44px;
    height: 44px;
    background: white;
    color: #1e3a8a;
    border-radius: 50%;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.user-info {
    margin-left: auto;
    text-align: right;
    line-height: 1.4;
}

.layout {
    display: flex;
    min-height: calc(100vh - 72px);
    background: #f8fafc;
}

.sidebar {
    width: 235px;
    background: #ffffff;
    padding: 18px 16px;
    border-right: 1px solid #e5e7eb;
}

.sidebar a {
    display: block;
    padding: 12px 14px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #334155;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar a.active,
.sidebar a:hover {
    background: #f1f5f9;
    color: #1e3a8a;
}

.main {
    flex: 1;
    padding: 34px 28px;
    background: #f8fafc;
}

.main h1 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.main p {
    color: #475569;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.card {
    background: #ffffff;
    padding: 24px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef2f7;
    min-height: 120px;
}

.card h3 {
    margin: 0 0 18px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.card h2,
.card .count {
    margin: 0 0 12px;
    font-size: 38px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.card p,
.card small {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.icon {
    display: none;
}

.blue { color: #2563eb; }
.orange { color: #f59e0b; }
.red { color: #ef4444; }
.green { color: #10b981; }

.charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 26px;
}

.chart-box {
    background: #ffffff;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

/* NEW PIE CHART SIZE */
.pie-container{
    max-width:420px;
    height:320px;
    margin:auto;
}

.page-header{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:20px;
}

.chart-box h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

/* USER DASHBOARD */
.user-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 50px);
}

.user-panel {
    background: #f1f5f9;
    border-right: 1px solid #e2e8f0;
    padding: 18px;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 14px;
}

.user-nav a {
    display: block;
    padding: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
}

.user-nav a.active,
.user-nav a:hover {
    background: #e2e8f0;
}

.user-content {
    background: #f8fafc;
    padding: 25px;
}

.uc-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
}

.uc-card {
    background: white;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eef2f7;
}

.uc-card h3 {
    margin: 0 0 8px 0;
    color: #1e3a8a;
}

.uc-card p {
    margin: 0 0 12px 0;
    color: #64748b;
}

.btn-blue {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.btn-blue:hover {
    opacity: 0.92;
}

.hero-box {
    margin-top: 18px;
    background: white;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #eef2f7;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.hero-img {
    width: 100%;
    height: 430px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-img img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.req-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.req-tab {
    text-decoration: none;
    color: #64748b;
    font-size: 13px;
    padding: 6px 0;
}

.req-tab.active {
    color: #2563eb;
    font-weight: 700;
}

.req-box {
    background: white;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #eef2f7;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    min-height: 240px;
    color: #64748b;
}

.page-footer {
    margin-top: 20px;
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-footer a {
    color: #2563eb;
    text-decoration: none;
}

.page-footer a:hover {
    text-decoration: underline;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    margin: 10px 0;
}

/* ===== Request Modal (Certificate picker) ===== */
.req-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.req-modal.show {
    display: block;
}

.req-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.req-modal-card {
    position: relative;
    width: min(760px, 92vw);
    margin: 6vh auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    padding: 18px 18px 22px 18px;
}

.req-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
    color: #64748b;
}

.req-modal-close:hover {
    color: #0f172a;
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-top: 12px;
}

.req-tile {
    border-radius: 14px;
    border: 1px solid #eef2f7;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 18px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.req-blue {
    background: #2f9df0;
    color: #fff;
    border: none;
}

.req-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
}

.req-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.1;
    color: #0f172a;
}

.req-blue .req-title {
    color: #fff;
}

.req-select {
    align-self: flex-start;
    border: none;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
}

.req-blue-btn { background: #eaf5ff; color: #1e3a8a; }
.req-purple-btn { background: #a855f7; }
.req-pink-btn { background: #ec4899; }
.req-green-btn { background: #22c55e; }
.req-orange-btn { background: #f59e0b; }

.req-select:hover {
    opacity: 0.92;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .charts {
        grid-template-columns: 1fr;
    }

    .uc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .topbar {
        padding: 14px 28px;
    }

    .main {
        padding: 24px 16px;
    }

    .user-shell {
        grid-template-columns: 1fr;
    }

    .user-panel {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
}

/* Mobile: 1 column */
@media (max-width: 560px) {
    .req-grid {
        grid-template-columns: 1fr;
    }
}
.action-row{
display:flex;
flex-direction:column;
gap:8px;
width:180px;
}

.action-row a,
.action-row button{
width:100%;
text-align:center;
}

.action-row form{
width:100%;
}

/* READ MORE BUTTON */

.read-btn{
margin-top:10px;
padding:8px 14px;
background:#1e3a8a;
color:white;
border:none;
border-radius:4px;
cursor:pointer;
font-size:14px;
}

.read-btn:hover{
background:#2563eb;
}

/* MODAL */

.modal{
display:none;
position:fixed;
z-index:2000;
left:0;
top:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.5);
}

.modal-content{
background:white;
max-width:700px;
margin:8% auto;
padding:25px;
border-radius:8px;
}

.close-modal{
float:right;
font-size:24px;
cursor:pointer;
}

.city-logo{
height:50px;
width:auto;
border-radius:50%;
background:white;
padding:3px;
}