/* =========================================================
   IUIU ADMISSIONS - MATERIAL LITE THEME (OFFICIAL GREEN)
   Primary: #007A33 (IUIU Green)
   Clean, modern, Google-ish, Bootstrap 5 friendly
========================================================= */

:root {
    --primary: #007A33;
    --primary-dark: #005023;
    --primary-light: #E9FFF3;
    --bg-surface: #F7F9FC;
    --card-bg: #FFFFFF;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* ---------------------------------------------------------
   GLOBAL
----------------------------------------------------------*/
body {
    background: var(--bg-surface);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    color: #1f2937;
}

/* ---------------------------------------------------------
   TOP HEADER / HEADPANEL
----------------------------------------------------------*/
.br-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding-block: 8px;
}

.br-header .nav-link {
    font-weight: 500;
    color: #374151;
}

.br-header .nav-link:hover {
    color: var(--primary);
}

.nav-link-profile {
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all .2s ease;
}

.nav-link-profile:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ---------------------------------------------------------
   SIDEBAR
----------------------------------------------------------*/
.br-logo {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

.br-sideleft {
    background: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.br-sideleft-menu .br-menu-link {
    background: transparent;
    color: #374151;
    border-radius: 12px;
    margin-bottom: 6px;
    padding: 9px 12px;
    font-weight: 500;
    transition: all .20s ease;
}

.br-sideleft-menu .br-menu-link:hover {
    background: rgba(0, 122, 51, 0.12);
    color: var(--primary);
    transform: translateX(4px);
}

.br-sideleft-menu .br-menu-link.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0,122,51,0.28);
}

/* ---------------------------------------------------------
   MAIN PANEL
----------------------------------------------------------*/
.br-pageheader {
    background: transparent;
    border: none;
    padding-inline: 25px;
}

/* Breadcrumbs */
.breadcrumb-item a {
    color: var(--primary);
}

/* ---------------------------------------------------------
   CARDS & DASHBOARD METRICS
----------------------------------------------------------*/
.card,
.bg-white.rounded.shadow,
.bg-white.rounded.shadow-sm {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: var(--shadow-soft);
    transition: all .25s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.material-card {
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-soft);
}
.material-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* ---------------------------------------------------------
   BUTTONS
----------------------------------------------------------*/
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all .18s ease;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 3px 10px rgba(0,122,51,0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 5px 14px rgba(0,122,51,0.35);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: rgba(0,122,51,0.45);
}

.btn-outline-primary:hover {
    background: rgba(0,122,51,0.08);
}

/* ---------------------------------------------------------
   FORMS / INPUTS
----------------------------------------------------------*/
.form-control,
.form-select {
    border-radius: 12px;
    height: 46px;
    border: 1px solid rgba(0,0,0,0.12);
    transition: all .2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.18rem rgba(0,122,51,0.25);
}

.input-group-text {
    border-radius: 12px 0 0 12px;
    background: #F3F4F6;
}

/* ---------------------------------------------------------
   TABLES
----------------------------------------------------------*/
.table {
    background: white;
    border-radius: 12px;
}

.table thead th {
    background: #F9FAFB;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background: rgba(0,122,51,0.06);
}

/* ---------------------------------------------------------
   ALERTS / CALLOUTS
----------------------------------------------------------*/
.alert {
    border-radius: 14px;
    padding: 14px 20px;
    border: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.alert-info {
    background: #E9FFF3;
    color: var(--primary);
}

.material-callout {
    border-radius: 18px;
    padding: 18px 22px;
    background: #E9FFF3;
    border: 1px solid rgba(0,122,51,0.25);
    color: var(--primary);
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/* ---------------------------------------------------------
   LOGIN PAGE
----------------------------------------------------------*/

.material-login .login-wrapper {
    max-width: 420px;
    border-radius: 22px;
    padding: 25px 30px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
}

.material-login .btn-primary {
    height: 48px;
    border-radius: 12px;
    font-weight: 600;
}

/* ---------------------------------------------------------
   RIPPLE EFFECT
----------------------------------------------------------*/
.ripple {
    position: relative;
    overflow: hidden;
}
.ripple:after {
    content: "";
    position: absolute;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    transition: transform .4s, opacity .8s;
}
.ripple:active:after {
    transform: scale(4);
    opacity: 1;
    transition: 0s;
}


/* =========================================================
   GLOBAL BUTTON MODERNIZATION — IUIU MATERIAL LITE
   1. Material Elevation
   2. Ripple Animation
   3. Gradient Primary (IUIU Teal)
========================================================= */

/* -------------------------------
   FORCE ALL BUTTONS TO BTN-MD
--------------------------------*/
.btn,
.btn-sm {
    padding: 0.55rem 1.2rem !important; /* MD sizing */
    font-size: 1rem !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    transition: all .25s ease !important;
    position: relative;
    overflow: hidden; /* required for ripple */
}

/* -------------------------------
   MATERIAL ELEVATION
--------------------------------*/
.btn {
    box-shadow: 0 3px 10px rgba(0,0,0,0.10);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

/* -------------------------------
   PRIMARY BUTTON — GRADIENT
   Uses Mature Entry Green #1DA195
--------------------------------*/
.btn-primary {
    background: linear-gradient(135deg, #1DA195, #108575) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #178a81, #0b6c5f) !important;
}

/* -------------------------------
   SUCCESS BUTTON (Green Variant)
--------------------------------*/
.btn-success {
    background: linear-gradient(135deg, #28c76f, #20aa5e) !important;
    border-color: transparent !important;
}

/* -------------------------------
   WARNING BUTTON (Gold Variant)
--------------------------------*/
.btn-warning {
    background: linear-gradient(135deg, #ffb200, #e69a00) !important;
    border-color: transparent !important;
    color: #000 !important;
}

/* -------------------------------
   RIPPLE EFFECT
--------------------------------*/
.btn.ripple,
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    background: rgba(255,255,255,0.5);
    width: 10px;
    height: 10px;
    display: block;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.6s, transform 0.6s;
}

.btn:active::after {
    opacity: 1;
    transform: scale(16);
    transition: 0s;
    top: var(--y, 50%);
    left: var(--x, 50%);
}

/* Allow JS-less ripple positioning */
.btn:active {
    --x: 50%;
    --y: 50%;
}


/* =========================================================
   INPUT GROUP ALIGNMENT — MATERIAL CONSISTENCY
   Makes prepend/append same height as form-control + buttons
========================================================= */

.input-group .form-control,
.input-group .form-select {
    height: 48px !important;     /* same as btn-md and your material inputs */
    padding: 0.55rem 1rem !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
}

/* Prepend / Append boxes */
.input-group-text {
    height: 48px !important;      /* match form control */
    min-width: 48px !important;   /* ensures perfect square look */
    padding: 0.55rem 1rem !important;
    font-size: 1rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6 !important;  /* modern soft grey */
    border-radius: 12px 0 0 12px !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
}

/* Append style if used */
.input-group .input-group-append .input-group-text {
    border-radius: 0 12px 12px 0 !important;
}

/* Ensure no collapse inside group */
.input-group>.form-control:not(:last-child),
.input-group>.form-select:not(:last-child) {
    border-radius: 12px 0 0 12px !important;
}

.input-group>.form-control:not(:first-child),
.input-group>.form-select:not(:first-child) {
    border-radius: 0 12px 12px 0 !important;
}
