/* ==========================================================
   JOURNAL PAGE
========================================================== */

.journal-page{
    padding:30px;
}

/* ==========================================================
   HEADER
========================================================== */

.journal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
    margin-bottom:30px;
}

.journal-header h1{
    color:#fff;
    font-size:32px;
    font-weight:700;
    margin-bottom:6px;
}

.journal-header p{
    color:#94A3B8;
    margin:0;
}

.journal-actions{
    display:flex;
    gap:12px;
}

/* ==========================================================
   SUMMARY
========================================================== */

.journal-summary{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:30px;
}

.summary-card{
    background:#17263B;
    border:1px solid #243246;
    border-radius:18px;
    padding:22px;
    transition:.3s;
}

.summary-card:hover{
    transform:translateY(-5px);
    border-color:#22C55E;
    box-shadow:0 15px 35px rgba(0,0,0,.35);
}

.summary-card span{
    color:#94A3B8;
    display:block;
    margin-bottom:10px;
    font-size:14px;
}

.summary-card h3{
    color:#fff;
    margin:0;
    font-size:26px;
    font-weight:700;
}

/* ==========================================================
   GRID
========================================================== */

.journal-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:25px;
}

/* ==========================================================
   CARDS
========================================================== */

.journal-card{
    background:#17263B;
    border:1px solid #243246;
    border-radius:20px;
    overflow:hidden;
}

.journal-card .card-header{
    background:#1D2E46;
    padding:18px 22px;
    border-bottom:1px solid #243246;
}

.journal-card .card-header h3{
    color:#fff;
    margin:0;
    font-size:20px;
    font-weight:600;
}

.journal-card .card-body{
    padding:25px;
}

/* ==========================================================
   FORM
========================================================== */

.journal-card label{
    color:#CBD5E1;
    font-weight:500;
    margin-bottom:8px;
    display:block;
}

.form-control,
.form-select{
    background:#101B2E;
    border:1px solid #243246;
    color:#fff;
}

.form-control:focus,
.form-select:focus{
    background:#101B2E;
    color:#fff;
    border-color:#22C55E;
    box-shadow:none;
}

textarea{
    resize:vertical;
}

/* ==========================================================
   RANGE SLIDERS
========================================================== */

.form-range{
    margin-top:8px;
}

.form-range::-webkit-slider-thumb{
    background:#22C55E;
}

.form-range::-moz-range-thumb{
    background:#22C55E;
}

/* ==========================================================
   AI PANEL
========================================================== */

#aiJournal{
    color:#fff;
}

.ai-box{
    background:#101B2E;
    border-left:4px solid #22C55E;
    border-radius:12px;
    padding:18px;
}

.ai-box h4{
    margin-bottom:12px;
    color:#22C55E;
}

.ai-box ul{
    margin:0;
    padding-left:20px;
}

.ai-box li{
    margin-bottom:8px;
}

/* ==========================================================
   TIMELINE
========================================================== */

.timeline-item{
    position:relative;
    padding-left:28px;
    margin-bottom:25px;
}

.timeline-item:last-child{
    margin-bottom:0;
}

.timeline-item::before{
    content:"";
    position:absolute;
    left:8px;
    top:8px;
    width:12px;
    height:12px;
    border-radius:50%;
    background:#22C55E;
}

.timeline-item::after{
    content:"";
    position:absolute;
    left:13px;
    top:20px;
    width:2px;
    height:calc(100% + 10px);
    background:#243246;
}

.timeline-item:last-child::after{
    display:none;
}

.timeline-date{
    color:#94A3B8;
    font-size:13px;
    margin-bottom:6px;
}

.timeline-content{
    background:#101B2E;
    border-radius:12px;
    padding:15px;
    border:1px solid #243246;
}

.timeline-content h5{
    color:#fff;
    margin-bottom:8px;
}

.timeline-content p{
    color:#CBD5E1;
    margin:0;
}

/* ==========================================================
   BUTTONS
========================================================== */

.btn-success{
    background:#22C55E;
    border:none;
}

.btn-success:hover{
    background:#16A34A;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media(max-width:1200px){

.journal-grid{
    grid-template-columns:1fr;
}

}

@media(max-width:992px){

.journal-summary{
    grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:768px){

.journal-page{
    padding:20px;
}

.journal-summary{
    grid-template-columns:1fr;
}

.journal-header{
    flex-direction:column;
    align-items:flex-start;
}

.journal-actions{
    width:100%;
}

.journal-actions .btn{
    width:100%;
}

}