/* ======================================
   RCMS Academic Theme
====================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    font-family:
    "Segoe UI",
    Tahoma,
    sans-serif;

    background:#f8fafc;

    color:#1e293b;

    line-height:1.7;
}

/* ======================================
   Container
====================================== */

.container{

    width:100%;

    max-width:1400px;

    margin:auto;

    padding:20px;
}

/* ======================================
   Navbar
====================================== */

.navbar{

    background:#1E3A5F;

    padding:15px 30px;

    display:flex;

    align-items:center;

    gap:25px;

    box-shadow:
    0 2px 10px rgba(0,0,0,.08);
}

.navbar a{

    color:white;

    text-decoration:none;

    font-weight:600;

    transition:.3s;
}

.navbar a:hover{

    color:#F59E0B;
}

/* ======================================
   Hero
====================================== */

.hero{

    background:white;

    padding:60px;

    margin-top:20px;

    border-radius:10px;
}

.hero h1{

    font-size:42px;

    margin-bottom:15px;
}

.hero p{

    color:#64748b;
}

/* ======================================
   Cards
====================================== */

.card{

    background:white;

    border-radius:12px;

    padding:20px;

    box-shadow:
    0 4px 10px rgba(0,0,0,.05);
}

.card:hover{

    transform:translateY(-2px);

    transition:.3s;
}

/* ======================================
   Grid
====================================== */

.grid{

    display:grid;

    gap:20px;
}

.grid-3{

    grid-template-columns:
    repeat(3,1fr);
}

.grid-4{

    grid-template-columns:
    repeat(4,1fr);
}

/* ======================================
   Buttons
====================================== */

.btn{

    display:inline-block;

    padding:10px 20px;

    border-radius:8px;

    text-decoration:none;

    font-weight:600;
}

.btn-primary{

    background:#1E3A5F;

    color:white;
}

.btn-success{

    background:#0F766E;

    color:white;
}

.btn-warning{

    background:#F59E0B;

    color:white;
}

/* ======================================
   Footer
====================================== */

footer{

    margin-top:60px;

    padding:25px;

    text-align:center;

    background:white;

    border-top:1px solid #e2e8f0;
}
/* ===========================
   AUTH
=========================== */

.auth-container{

    min-height:80vh;

    display:flex;

    justify-content:center;

    align-items:center;
}

.auth-card{

    width:500px;

    background:white;

    padding:40px;

    border-radius:16px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.08);
}

.auth-card h1{

    margin-bottom:25px;

    text-align:center;
}

.form-group{

    margin-bottom:20px;
}

.form-group label{

    display:block;

    margin-bottom:8px;

    font-weight:600;
}

.form-group input,
.form-group textarea,
.form-group select{

    width:100%;

    padding:12px;

    border:1px solid #dbe2ea;

    border-radius:8px;
}

.auth-links{

    margin-top:20px;

    display:flex;

    justify-content:space-between;
}
/* ==========================
   SEARCH
========================== */

.search-page{

    background:white;

    padding:40px;

    border-radius:16px;
}

.search-card{

    margin-top:25px;

    padding:25px;

    border:1px solid #e2e8f0;

    border-radius:10px;
}

/* ==========================
   404
========================== */

.error-page{

    text-align:center;

    padding:100px 20px;
}

.error-page h1{

    font-size:120px;

    color:#1E3A5F;
}

.error-page h2{

    margin-bottom:20px;
}
/* ==========================
   USER DASHBOARD
========================== */

.dashboard-cards{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:20px;
}

.dashboard-card{

    background:white;

    padding:25px;

    border-radius:12px;

    box-shadow:
        0 2px 10px rgba(0,0,0,.05);
}
/* ==========================
   RESPONSIVE
========================== */

@media(max-width:992px){

    .statistics,
    .profile-stats,
    .journal-stats,
    .dashboard-cards{

        grid-template-columns:
        repeat(2,1fr);
    }

    .journal-header,
    .profile-header{

        flex-direction:column;
    }

}

@media(max-width:768px){

    .statistics,
    .profile-stats,
    .journal-stats,
    .dashboard-cards{

        grid-template-columns:
        1fr;
    }

    .hero h1{

        font-size:34px;
    }

    .auth-card{

        width:95%;
    }

}
/* =====================================
   RTL SUPPORT
===================================== */

html[dir="rtl"]{

    direction:rtl;
}

html[dir="rtl"] body{

    text-align:right;
}

html[dir="rtl"] .navbar{

    flex-direction:row-reverse;
}

html[dir="rtl"] .profile-header{

    flex-direction:row-reverse;
}

html[dir="rtl"] .journal-header{

    flex-direction:row-reverse;
}

html[dir="rtl"] .auth-links{

    flex-direction:row-reverse;
}

/* =====================================
   SMOOTH UI
===================================== */

a,
button{

    transition:
    all .25s ease;
}

.card,
.admin-widget,
.admin-stat-card,
.search-card{

    transition:
    all .25s ease;
}

.card:hover,
.admin-widget:hover,
.admin-stat-card:hover{

    transform:
    translateY(-2px);
}

input:focus,
textarea:focus,
select:focus{

    outline:none;

    border-color:#1E3A5F;

    box-shadow:
    0 0 0 3px rgba(30,58,95,.15);
}
/* =====================================
   CARDS
===================================== */

.card{

    background:white;

    padding:25px;

    border-radius:12px;

    box-shadow:
    0 2px 10px rgba(0,0,0,.05);

    margin-bottom:20px;
}
/* =====================================
   MODAL
===================================== */

.modal{

    display:none;

    position:fixed;

    inset:0;

    background:
    rgba(0,0,0,.5);
}

.modal-content{

    background:white;

    width:700px;

    max-width:95%;

    margin:100px auto;

    padding:30px;

    border-radius:12px;
}