/* 
---------------------------------------------
global layout / sticky footer
--------------------------------------------- 
*/

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* 
---------------------------------------------
modern current study cards
--------------------------------------------- 
*/

.vpdb-study-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #dfe4ea !important;
    border-radius: 1rem !important;
    background: #ffffff;
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.10) !important;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.vpdb-study-card:hover {
    transform: translateY(-6px);
    border-color: #007bff !important;
    box-shadow: 0 0.9rem 1.8rem rgba(0, 0, 0, 0.18) !important;
    cursor: pointer;
}

.vpdb-study-card a,
.vpdb-study-card a:hover,
.vpdb-study-card a:focus {
    text-decoration: none !important;
    outline: none;
}

.vpdb-study-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2B45AC, #38A5EE);
}

.vpdb-study-icon-modern {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #eef4ff;
    color: #2B45AC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: inset 0 0 0 1px rgba(43, 69, 172, 0.12);
    margin-top: 0.4rem;
}

.vpdb-study-title {
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 700;
    color: #243047;
    text-align: center;
}

.vpdb-study-info {
    color: #667085;
    font-size: 0.9rem;
}

.vpdb-study-info-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.4rem;
}

.vpdb-study-info-line i {
    color: #2B45AC;
    width: 16px;
    text-align: center;
}

.vpdb-study-participated {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #eaf7ef;
    color: #218838;
    font-size: 0.82rem;
    font-weight: 600;
}

/* 
---------------------------------------------
footer
--------------------------------------------- 
*/

footer {
    border-top: 1px solid #3956CA;
    background-color: #2B45AC !important;
    width: 100%;
    flex-shrink: 0;
}

footer .copyright {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 10px;
    font-weight: 400;
    font-size: 14px;
    color: #E5E9F7 !important;
    letter-spacing: 0.88px;
}

footer .copyright a {
    color: #8fb5ff !important;
}

footer .copyright a:hover {
    color: #ffffff !important;
}

/* 
---------------------------------------------
header / navigation
--------------------------------------------- 
*/

.vpdb-navbar {
    background: #2B45AC !important;
    border-bottom: 1px solid #3956CA;
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.18);
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.vpdb-navbar-container {
    display: flex;
    align-items: center;
}

.vpdb-navbar-brand {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
    margin-right: 2rem;
}

.vpdb-navbar-brand img {
    display: block;
    max-height: 38px;
    width: auto;
}

.vpdb-navbar-links .nav-item {
    margin-right: 0.25rem;
}

.vpdb-navbar-links .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    border-radius: 999px;
    padding: 0.45rem 0.85rem !important;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.vpdb-navbar-links .nav-link:hover,
.vpdb-navbar-links .nav-link:focus {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.vpdb-nav-inline-link {
    display: inline-block;
}

.vpdb-logout-btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.45rem 1rem;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
    background-color: transparent;
    box-shadow: none;
}

.vpdb-logout-btn:hover,
.vpdb-logout-btn:focus {
    color: #2B45AC !important;
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 0.35rem 0.85rem rgba(0, 0, 0, 0.18);
}

.vpdb-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.65);
    border-radius: 0.75rem;
    padding: 0.35rem 0.55rem;
    margin-left: 0.5rem;
}

.vpdb-navbar .navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.25);
}

.vpdb-navbar .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.vpdb-logout-btn {
    white-space: nowrap;
}




/* 
---------------------------------------------
section cards / user area
--------------------------------------------- 
*/

.vpdb-section-card {
    border: 1px solid #dfe4ea;
    border-radius: 1rem;
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.vpdb-section-card .card-body {
    padding: 1.5rem;
}

.vpdb-info-tile {
    border: 1px solid #e3e6ea;
    border-radius: 0.85rem;
    padding: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f6f9ff 100%);
}

.vpdb-info-label {
    color: #667085;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.vpdb-info-value {
    color: #243047;
    font-size: 1.05rem;
    font-weight: 700;
    word-break: break-word;
}

.vpdb-section-heading h1 {
    color: #243047;
    font-weight: 700;
}

.vpdb-modern-table {
    margin-bottom: 0;
}

.vpdb-modern-table thead td,
.vpdb-modern-table tr:first-child td {
    background: #f6f9ff;
    color: #243047;
    border-top: none;
}

.vpdb-modern-table td {
    vertical-align: middle;
}

.vpdb-modern-table tfoot td {
    background: #f8f9fa;
}

.vpdb-summary-box {
    border-left: 5px solid #2B45AC;
    background: #f6f9ff;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    color: #334155;
}

.vpdb-report-form {
    max-width: 520px;
}

.vpdb-report-form .form-control {
    max-width: 320px;
}

.vpdb-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: #eef4ff;
    color: #2B45AC;
    font-size: 0.85rem;
    font-weight: 600;
}

.vpdb-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.vpdb-detail-actions form {
    margin: 0;
}