
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

html{zoom:1.04;}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif;
}

body{
    background:#f4f6f9;
}

/* NAVBAR */

.navbar{
    width:100%;
    height:70px;
    background:#1b5e20;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 40px;
    position:fixed;
    top:0;
    left:0;
    z-index:1000;
}

.logo-section{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
}

.logo-section img{
    width:42px;
    height:42px;
    border-radius:50%;
    background:white;
    padding:2px;
}

.logo-section h2{
    color:white;
    font-size:24px;
    font-weight:700;
}

.nav-links{
    display:flex;
    align-items:center;
    gap:12px;
}

.nav-links a{
    text-decoration:none;
    padding:10px 22px;
    border-radius:50px;
    font-size:14px;
    font-weight:600;
    transition:0.3s ease;
    display:flex;
    align-items:center;
    gap:8px;
}

/* HOME BUTTON */
.home-btn{
    background:rgba(255,255,255,0.15);
    color:white;
    border:1px solid rgba(255,255,255,0.2);
}

.home-btn:hover{
    background:rgba(255,255,255,0.25);
    transform:translateY(-2px);
}

/* LOGIN BUTTON */
.login-btn{
    background:#f4b400;
    color:#000;
    box-shadow:0 4px 12px rgba(244,180,0,0.3);
}

.login-btn:hover{
    background:#ffd54f;
    transform:translateY(-2px);
}

/* MAIN */

.main-container{
    width:100%;
    display:flex;
    gap:25px;
    padding:110px 40px 40px;
}

/* FILTER SECTION */

.filter-box{
    width:280px;
    background:white;
    padding:25px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
    height:fit-content;
}

.filter-box h3{
    font-size:22px;
    margin-bottom:20px;
    color:#1b5e20;
}

.filter-group{
    margin-bottom:20px;
}

.filter-group label{
    display:block;
    font-size:14px;
    margin-bottom:8px;
    font-weight:600;
    color:#444;
}

.filter-group select{
    width:100%;
    padding:12px;
    border:1px solid #ccc;
    border-radius:8px;
    outline:none;
    font-size:14px;
}

.filter-static{
    font-size:14px;
    color:#1b5e20;
    font-weight:600;
    padding:12px;
    background:#f0f7f0;
    border:1px solid #c8e6c9;
    border-radius:8px;
}

.apply-btn{
    width:100%;
    padding:12px;
    background:#1b5e20;
    border:none;
    color:white;
    border-radius:8px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

.apply-btn:hover{
    background:#2e7d32;
}

/* CONTENT */

.content-section{
    flex:1;
}

.search-box{
    width:100%;
    background:white;
    padding:18px;
    border-radius:12px;
    display:flex;
    gap:10px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
    margin-bottom:25px;
}

.search-box input{
    flex:1;
    padding:13px;
    border:1px solid #ccc;
    border-radius:8px;
    outline:none;
    font-size:15px;
}

.search-box button{
    padding:13px 22px;
    border:none;
    background:#1b5e20;
    color:white;
    border-radius:8px;
    cursor:pointer;
    font-weight:600;
}

.search-box button:hover{
    background:#2e7d32;
}

.title{
    font-size:30px;
    font-weight:700;
    color:#1b5e20;
}

.title-row{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    margin-bottom:20px;
}

.subtitle{
    color:#637067;
    margin-top:4px;
    font-size:14px;
}

.result-count{
    white-space:nowrap;
    padding:9px 14px;
    border-radius:999px;
    background:#e8f5e9;
    color:#1b5e20;
    font-size:13px;
    font-weight:700;
}

/* DOCUMENT CARD */

.document-card{
    background:white;
    border-radius:14px;
    padding:25px;
    margin-bottom:20px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
    transition:0.3s;
}

.document-card:hover{
    transform:translateY(-3px);
}

.document-title{
    font-size:24px;
    font-weight:700;
    color:#1b5e20;
    margin-bottom:15px;
}

.card-topline{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:16px;
}

.type-badge,
.status-badge{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
}

.type-badge{
    background:#fff;
    color:#000;
}

.status-badge{
    background:#e8f5e9;
    color:#1b5e20;
}

.abstract-preview{
    margin-bottom:16px;
    color:#3f4a43;
    line-height:1.7;
    font-size:15px;
}

.document-info{
    margin-bottom:8px;
    color:#555;
    font-size:15px;
}

.document-info span{
    font-weight:600;
    color:#222;
}

.card-footer{
    margin-top:20px;
    display:flex;
    justify-content:flex-end;
}

.view-btn{
    padding:10px 18px;
    background:#f4b400;
    color:black;
    text-decoration:none;
    border-radius:8px;
    font-size:14px;
    font-weight:600;
    transition:0.3s;
    border:none;
    cursor:pointer;
}

.view-btn:hover{
    background:#ffd54f;
}

/* Shared View action treatment used across the public repository as well. */
.view-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:76px;
    min-width:76px;
    max-width:76px;
    height:36px;
    box-sizing:border-box;
    padding:8px 12px;
    border:none;
    outline:none;
    border-radius:9px;
    background:#e8f5e9;
    color:#2e7d32;
    font-size:13px;
    font-weight:700;
    line-height:1;
    text-align:center;
    text-decoration:none;
    white-space:nowrap;
    cursor:pointer;
    transition:background .2s ease,color .2s ease;
}
.view-button:hover{background:#d4edda;color:#1b5e20;}

/* Keep public repository View actions consistent with dashboard View buttons. */
.view-button{background:#1f7a2e;color:#fff;}
.view-button:hover{background:#176323;color:#fff;}

.empty-state{
    background:white;
    border-radius:14px;
    padding:48px 30px;
    text-align:center;
    color:#4b5563;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.empty-state i{
    font-size:44px;
    color:#b6c2ba;
    margin-bottom:16px;
}

.empty-state h3{
    color:#1b5e20;
    font-size:22px;
    margin-bottom:8px;
}

.abstract-modal-text{
    text-align:left;
    color:#303830;
    line-height:1.7;
}

.abstract-modal-text p{
    margin:8px 0;
}

.abstract-modal-text hr{
    border:none;
    border-top:1px solid #e5e7eb;
    margin:16px 0;
}

/* RESPONSIVE */

@media(max-width:900px){

    .main-container{
        flex-direction:column;
    }

    .filter-box{
        width:100%;
    }

}

@media(max-width:600px){

    .navbar{
        padding:0 20px;
    }

    .title{
        font-size:24px;
    }

    .search-box{
        flex-direction:column;
    }

    .title-row{
        flex-direction:column;
    }

    .result-count{
        white-space:normal;
    }

}
/* ================= AUTH MODAL ================= */

.auth-overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    background:rgba(0,0,0,0.65);
    backdrop-filter:blur(6px);

    display:flex;
    align-items:center;
    justify-content:center;

    opacity:0;
    visibility:hidden;
    transition:0.3s ease;

    z-index:2000;
}

.auth-overlay.show{
    opacity:1;
    visibility:visible;
}

.auth-container{
    width:950px;
    max-width:95%;
    min-height:560px;
    background:white;
    border-radius:28px;
    overflow:hidden;

    display:grid;
    grid-template-columns:1fr 1fr;

    position:relative;

    box-shadow:0 20px 60px rgba(0,0,0,0.35);
}

/* LEFT */

.auth-left{
    background:
    linear-gradient(rgba(18,75,32,0.82), rgba(18,75,32,0.9)),
    url('https://images.unsplash.com/photo-1500937386664-56d1dfef3854?q=80&w=1600&auto=format&fit=crop');

    background-size:cover;
    background-position:center;

    padding:60px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;

    color:white;
}

.auth-left img{
    width:90px;
    height:90px;
    background:white;
    border-radius:50%;
    padding:5px;
    margin-bottom:25px;
}

.auth-left h2{
    font-size:42px;
    line-height:1.2;
    margin-bottom:18px;
}

.auth-left p{
    font-size:16px;
    line-height:1.8;
    opacity:0.92;
    max-width:420px;
}

/* RIGHT */

.auth-right{
    padding:50px;

    display:flex;
    flex-direction:column;
    justify-content:center;
}

.auth-tabs{
    display:flex;
    background:#f1f5f2;
    border-radius:50px;
    padding:5px;
    margin-bottom:35px;
}

.tab-btn{
    flex:1;
    padding:14px;
    border:none;
    background:transparent;
    border-radius:50px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
}

.tab-btn.active{
    background:#124b20;
    color:white;
}

.auth-form{
    display:none;
}

.auth-form.active{
    display:block;
}

.auth-form h2{
    font-size:32px;
    margin-bottom:28px;
    color:#1f2937;
}

.input-group{
    width:100%;
    height:58px;
    background:#f7f7f7;
    border-radius:16px;
    margin-bottom:18px;

    display:flex;
    align-items:center;

    padding:0 18px;
}

.input-group i{
    color:#124b20;
    margin-right:12px;
}

.input-group input{
    width:100%;
    border:none;
    outline:none;
    background:transparent;
    font-size:15px;
}

.auth-btn{
    width:100%;
    height:58px;
    border:none;
    border-radius:16px;
    background:#f4b400;
    color:#000;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    margin-top:10px;
}

.close-auth{
    position:absolute;
    top:18px;
    right:20px;

    width:42px;
    height:42px;

    border-radius:50%;
    background:#f5f5f5;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;
}

/* RESPONSIVE */

@media(max-width:850px){

    .auth-container{
        grid-template-columns:1fr;
    }

    .auth-left{
        display:none;
    }

}

/* TERMS & CONDITIONS */

.terms-box{
    margin-top:18px;
    display:flex;
    align-items:flex-start;
    gap:10px;
}

.terms-box input{
    margin-top:4px;
    accent-color:#124b20;
    cursor:pointer;
}

.terms-box label{
    font-size:13px;
    color:#555;
    line-height:1.6;
}

.terms-box a{
    color:#124b20;
    font-weight:600;
    text-decoration:none;
}

.terms-box a:hover{
    text-decoration:underline;
}
.modern-success{
    border-radius:30px !important;
    box-shadow:0 20px 60px rgba(0,0,0,0.25) !important;
}

.modern-success .swal2-success{
    transform:scale(1.4);
}

.modern-success .swal2-title{
    color:#124b20;
    font-size:28px;
    font-weight:800;
}

.modern-success .swal2-html-container{
    font-size:15px;
}

.role-select{
    width:100%;
    border:none;
    outline:none;
    background:transparent;
    font-size:15px;
    cursor:pointer;
    color:#333;
}

/* ===== REPOSITORY v2 STYLES ===== */

/* Type badges by category */
.type-badge{ gap:6px; }
.type-badge.student,
.type-badge.research,
.type-badge.extension,
.type-badge.training   { background:#fff; color:#000; }

/* Major and year pills */
.major-pill{
    display:inline;padding:0;border-radius:0;
    font-size:12px;font-weight:700;
    background:transparent;color:#000;border:0;
}
.year-pill{
    display:inline-block;padding:4px 10px;border-radius:20px;
    font-size:12px;font-weight:600;
    background:#f5f5f5;color:#666;
}

/* Document meta row */
.document-meta{
    display:flex;flex-wrap:wrap;gap:18px;
    font-size:13.5px;color:#666;margin-bottom:10px;
}
.document-meta i{color:#2e7d32;margin-right:5px;}
.document-meta strong{color:#333;}

/* Card footer */
.card-footer{ gap:10px; justify-content:flex-start; }

/* Download button */
.download-btn{
    background:#1b5e20;color:#fff;
    display:inline-flex;align-items:center;gap:7px;
    padding:10px 18px;border-radius:8px;
    font-size:14px;font-weight:600;text-decoration:none;
    border:none;cursor:pointer;transition:background 0.2s;
}
.download-btn:hover{ background:#2e7d32; }

/* Abstract modal */
.abstract-modal-overlay{
    position:fixed;inset:0;background:rgba(0,0,0,0.5);
    z-index:9000;display:flex;align-items:center;justify-content:center;
    padding:20px;opacity:0;visibility:hidden;transition:opacity 0.25s,visibility 0.25s;
}
.abstract-modal-overlay.show{ opacity:1;visibility:visible; }
.abstract-modal-box{
    background:#fff;border-radius:22px;width:100%;max-width:700px;
    max-height:88vh;overflow-y:auto;padding:32px 36px;
    box-shadow:0 20px 60px rgba(0,0,0,0.25);position:relative;
}
.abstract-modal-close{
    position:absolute;top:16px;right:18px;
    width:36px;height:36px;border:none;border-radius:10px;
    background:#f5f5f5;color:#333;font-size:16px;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
}
.abstract-modal-close:hover{ background:#ffebee;color:#c62828; }
.abstract-modal-box h2{
    font-size:20px;font-weight:700;color:#1b5e20;
    margin-bottom:14px;padding-right:40px;line-height:1.3;
}
.abstract-meta{ display:flex;flex-wrap:wrap;gap:8px;margin-bottom:4px; }
.meta-chip{
    display:inline-flex;align-items:center;gap:5px;
    padding:5px 12px;border-radius:20px;
    font-size:12px;font-weight:600;
    background:#f0f7f0;color:#2e7d32;
}
.abstract-body{
    font-size:15px;line-height:1.8;color:#333;
    white-space:pre-wrap;
}

/* optgroup styling */
.filter-group select optgroup{
    font-weight:700;color:#888;font-size:11px;
}
