/* =========================================================
   WEBSITE CARBON FOOTPRINT CHECKER
========================================================= */

.carbon-workspace{

    padding:40px 0;

}

.carbon-container{

    max-width:1600px;

}

.carbon-panel{

    background:linear-gradient(145deg,#0b1220,#111827);

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:28px;

    box-shadow:
        0 12px 35px rgba(0,0,0,.35);

}

/* =========================================================
   FORM
========================================================= */

.carbon-form{

    display:flex;

    gap:16px;

    margin-top:20px;

    align-items:center;

}

.carbon-form input{

    flex:1;

    height:58px;

    padding:0 20px;

    border-radius:12px;

    border:1px solid rgba(255,255,255,.08);

    background:#0f172a;

    color:#fff;

    font-size:16px;

    outline:none;

    transition:.2s;

}

.carbon-form input::placeholder{

    color:#6b7280;

}

.carbon-form input:focus{

    border-color:#2563eb;

    box-shadow:0 0 0 3px rgba(37,99,235,.18);

}

.carbon-form button{

    height:58px;

    padding:0 28px;

    border:none;

    border-radius:12px;

    background:#2563eb;

    color:#fff;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.2s;

}

.carbon-form button:hover{

    background:#1d4ed8;

    transform:translateY(-2px);

}

.carbon-form button:disabled{

    opacity:.65;

    cursor:not-allowed;

    transform:none;

}

/* =========================================================
   LOADING
========================================================= */

.loading-message{

    margin-top:18px;

    color:#9ca3af;

    font-size:14px;

}

/* =========================================================
   DASHBOARD
========================================================= */

.carbon-dashboard{

    margin-top:40px;

}

.dashboard-grid{

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:24px;

}

.dashboard-card{

    background:linear-gradient(
        145deg,
        #111827,
        #0f172a
    );

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:24px;

    display:flex;

    flex-direction:column;

    min-width:0;

    box-shadow:
        0 12px 35px rgba(0,0,0,.35);

}

.dashboard-left{

    display:flex;

    flex-direction:column;

    gap:32px;

}

.dashboard-section{

    display:flex;

    flex-direction:column;

}

.dashboard-title{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.dashboard-title h2{

    margin:0;

    font-size:22px;

    color:#fff;

}

.dashboard-badge{

    background:#2563eb;

    color:#fff;

    padding:6px 12px;

    border-radius:999px;

    font-size:12px;

    text-transform:uppercase;

    font-weight:600;

}

/* =========================================================
   STATUS GRID
========================================================= */

.status-grid{

    display:grid;

    grid-template-columns:repeat(2,minmax(0,1fr));

    gap:14px;

}

.status-item{

    background:#1f2937;

    border:1px solid rgba(255,255,255,.06);

    border-radius:12px;

    padding:18px;

    display:flex;

    flex-direction:column;

    gap:8px;

    transition:.2s;

}

.status-item:hover{

    border-color:#2563eb;

    transform:translateY(-2px);

}

.status-item strong{

    color:#9ca3af;

    font-size:13px;

    text-transform:uppercase;

    letter-spacing:.5px;

}

.status-item span{

    font-size:26px;

    font-weight:700;

    color:#fff;

}

/* =========================================================
   STATISTICS
========================================================= */

.stats-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(160px,1fr));

    gap:14px;

}

.stat-card{

    background:#1f2937;

    border:1px solid rgba(255,255,255,.06);

    border-radius:14px;

    padding:20px;

    text-align:center;

    transition:.2s;

}

.stat-card:hover{

    transform:translateY(-2px);

    border-color:#2563eb;

}

.stat-card strong{

    display:block;

    margin-bottom:10px;

    color:#9ca3af;

    font-size:13px;

    text-transform:uppercase;

}

.stat-card span{

    font-size:28px;

    font-weight:700;

    color:#fff;

}

/* =========================================================
   LOG
========================================================= */

.event-log{

    flex:1;

    min-height:650px;

    overflow-y:auto;

    background:#0b1220;

    border:1px solid rgba(255,255,255,.05);

    border-radius:14px;

    padding:14px;

    font-family:Consolas,monospace;

}

.log-placeholder{

    text-align:center;

    padding-top:180px;

    color:#6b7280;

}

.log-item{

    display:flex;

    gap:10px;

    align-items:flex-start;

    background:#111827;

    border-left:3px solid #2563eb;

    border-radius:8px;

    padding:10px 12px;

    margin-bottom:8px;

}

.log-time{

    color:#60a5fa;

    min-width:70px;

    font-weight:600;

}

.log-message{

    color:#e5e7eb;

    word-break:break-word;

}

/* =========================================================
   CARBON GRADE COLORS
========================================================= */

.grade-a{

    color:#22c55e !important;

}

.grade-b{

    color:#84cc16 !important;

}

.grade-c{

    color:#eab308 !important;

}

.grade-d{

    color:#f97316 !important;

}

.grade-e{

    color:#ef4444 !important;

}

.grade-f{

    color:#dc2626 !important;

}

.green-host{

    color:#22c55e !important;

}

.not-green{

    color:#ef4444 !important;

}

/* =========================================================
   SCROLLBAR
========================================================= */

.event-log::-webkit-scrollbar{

    width:10px;

}

.event-log::-webkit-scrollbar-thumb{

    background:#374151;

    border-radius:10px;

}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:900px){

    .dashboard-grid{

        grid-template-columns:1fr;

    }

}

@media(max-width:768px){

    .carbon-form{

        flex-direction:column;

        align-items:stretch;

    }

    .status-grid{

        grid-template-columns:1fr;

    }

    .stats-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

@media(max-width:520px){

    .stats-grid{

        grid-template-columns:1fr;

    }

}

/* ==========================================
RECOMMENDATIONS
========================================== */

.recommendation-grid{

    display:grid;

    gap:12px;

}

.recommendation-card{

    background:#1f2937;

    border-left:4px solid #22c55e;

    padding:16px;

    border-radius:12px;

    color:#fff;

    font-size:15px;

}

.recommendation-card:hover{

    transform:translateY(-2px);

}