/* ==========================================
   MubaraqCloud Engineering Documentation
   Components v1.0
========================================== */

/* ========= Cards ========= */

.card{
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    transition: var(--transition);
}

.card:hover{
    transform: translateY(-6px);
}

/* ========= Section Header ========= */

.section-header{
    text-align:center;
    margin-bottom:60px;
}

.section-header p{
    max-width:700px;
    margin:auto;
}

/* ========= Status Badges ========= */

.badge-success{
    display:inline-block;
    background:#DCFCE7;
    color:#166534;
    padding:8px 16px;
    border-radius:999px;
    font-size:.9rem;
    font-weight:600;
}

.badge-warning{
    display:inline-block;
    background:#FEF3C7;
    color:#92400E;
    padding:8px 16px;
    border-radius:999px;
    font-size:.9rem;
    font-weight:600;
}

.badge-danger{
    display:inline-block;
    background:#FEE2E2;
    color:#991B1B;
    padding:8px 16px;
    border-radius:999px;
    font-size:.9rem;
    font-weight:600;
}

/* ========= Technology Card ========= */

.tech-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
    min-height:150px;
}

.tech-card img{
    width:56px;
    height:56px;
}

.tech-card h3{
    margin:0;
    font-size:1rem;
}

/* ========= Statistics ========= */

.stats-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
    margin-top:40px;
}

.stat-card{
    background:white;
    border-radius:var(--radius);
    padding:35px;
    text-align:center;
    box-shadow:var(--shadow);
}

.stat-card h3{
    font-size:2.6rem;
    color:var(--accent);
}

.stat-card p{
    margin-top:10px;
}

/* ========= Progress ========= */

.progress-card{
    background:white;
    border-radius:var(--radius);
    padding:30px;
    box-shadow:var(--shadow);
}

.progress-bar{
    width:100%;
    height:12px;
    background:#E5E7EB;
    border-radius:999px;
    overflow:hidden;
    margin-top:15px;
}

.progress-fill{
    width:20%;
    height:100%;
    background:var(--accent);
}

/* ========= Timeline ========= */

.timeline-item{
    position:relative;
    padding-left:35px;
    margin-bottom:35px;
}

.timeline-item::before{
    content:"";
    position:absolute;
    left:0;
    top:5px;
    width:14px;
    height:14px;
    border-radius:50%;
    background:var(--accent);
}

.timeline-item::after{
    content:"";
    position:absolute;
    left:6px;
    top:22px;
    width:2px;
    height:60px;
    background:#D1D5DB;
}

.timeline-item:last-child::after{
    display:none;
}

/* ========= Table ========= */

.table{
    width:100%;
    border-collapse:collapse;
    margin-top:30px;
}

.table th{
    background:var(--primary);
    color:white;
    padding:16px;
    text-align:left;
}

.table td{
    padding:16px;
    border-bottom:1px solid var(--border);
}

.table tr:hover{
    background:#F8FAFC;
}

/* ========= Callout ========= */

.callout{
    border-left:5px solid var(--accent);
    background:#FFF8EC;
    padding:20px;
    border-radius:8px;
    margin:30px 0;
}

/* ========= Code Block ========= */

.code-block{
    background:#111827;
    color:#F9FAFB;
    border-radius:10px;
    padding:20px;
    overflow:auto;
    font-family:Consolas, monospace;
}

/* ========= Hover Animation ========= */

.hover-lift{
    transition:.3s;
}

.hover-lift:hover{
    transform:translateY(-8px);
}

/* ========= Fade Animation ========= */

.fade-in{
    animation:fadeIn .8s ease-in-out;
}

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}