@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('https://fonts.googleapis.com/css2?family=Sansation:wght@300;400;700&display=swap');

:root {
  --cream: #F1F3E0;
  --pale: #D2DCB6;
  --mid: #A1BC98;
  --dark: #778873;
  --surface: #FFFFFF;
}

* { box-sizing: border-box; }

body, h1, h2, h3, h4, h5, h6 { font-family: 'Sansation'; margin: 0; color: var(--dark); }
html, body { height: 100%; background: linear-gradient(135deg, var(--cream) 0%, var(--pale) 100%); }

h1, h2, h3, h4, h5 { font-weight: 700; color: var(--dark); }

a { color: var(--dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--mid); text-decoration: underline; }

.rounded-corners { border-radius: 20px; font-style: italic; }

.table_border, .roundcon { border: 1px solid var(--pale); border-radius: 12px; box-shadow: 0 2px 8px rgba(119,136,115,.08); background: var(--surface); }

.list_header { font-size: 1.5rem; background: linear-gradient(90deg, var(--mid) 0%, var(--dark) 100%); color: var(--cream); border-radius: 12px 12px 0 0; padding: 20px 24px; letter-spacing: 1px; text-align: center; width: 100%; margin: 0; display: block; box-sizing: border-box; }

input[type="text"], input[type="password"], .txt_box { width: 100%; max-width: 250px; padding: 12px 16px; border: 1px solid var(--pale); border-radius: 8px; font-size: 1rem; margin-bottom: 12px; background: var(--cream); transition: border .2s, box-shadow .2s; box-shadow: 0 1px 2px rgba(0,0,0,.03); color: var(--dark); }
.form-control { width: 100%; padding: 12px 16px; border: 1px solid var(--pale); border-radius: 8px; font-size: 1rem; margin-bottom: 12px; background: var(--cream); transition: border .2s, box-shadow .2s; box-shadow: 0 1px 2px rgba(0,0,0,.03); color: var(--dark); }
.form-control:focus, input[type="text"]:focus, input[type="password"]:focus, .txt_box:focus { border: 1.5px solid var(--mid); outline: none; background: var(--surface); box-shadow: 0 0 0 2px #A1BC9833; color: var(--dark); }

.button_box, input[type="submit"], input[type="button"], button[type="submit"] { display: inline-block; padding: .75rem 2rem; font-weight: 600; color: var(--cream); background: linear-gradient(90deg, var(--mid) 0%, var(--dark) 100%); border: none; border-radius: 8px; box-shadow: 0 4px 12px rgba(161,188,152,.25); cursor: pointer; transition: background .3s, transform .1s; margin: 8px 0; text-decoration: none; }
.button_box:hover, input[type="submit"]:hover, input[type="button"]:hover, button[type="submit"]:hover { background: linear-gradient(90deg, var(--dark) 0%, var(--mid) 100%); transform: translateY(-2px) scale(1.03); }
.button_box:active, input[type="submit"]:active, input[type="button"]:active, button[type="submit"]:active { transform: translateY(0) scale(.98); }

body, html { height: 100%; }
.main-wrapper { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 55px; background: linear-gradient(135deg, var(--cream) 0%, var(--pale) 100%); }
body.has-sticky-footer .main-wrapper { padding-bottom: 70px; }

.login-box { margin: 12px auto; max-width: 700px; width: 100%; background: var(--surface); border-radius: 16px; box-shadow: 0 6px 24px rgba(161,188,152,.18); padding: 2rem; display: flex; flex-direction: column; align-items: stretch; }
.login-box h2 { margin: 0 0 1rem 0; color: var(--dark); }

.modern-nav { position: fixed; top: 1rem; left: 1rem; z-index: 11001; }
.nav-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;line-height:1;font-size:0;color:var(--dark)}
.nav-icon::before{font-family:'Material Icons';font-weight:normal;font-style:normal;font-size:20px;content:attr(data-icon)}

.nav-toggle { background: var(--surface); border: none; border-radius: 12px; width: 50px; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; box-shadow: 0 4px 16px rgba(161,188,152,.25); transition: all .3s ease; }
.nav-toggle:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(161,188,152,.30); }
.hamburger-line { width: 24px; height: 3px; background: var(--dark); border-radius: 2px; transition: all .3s ease; }

.nav-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(119,136,115,.5); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: all .3s ease; z-index: 10999; }
.nav-overlay.active { opacity: 1; visibility: visible; }

.nav-menu { position: fixed; top: 0; left: -320px; width: 300px; height: 100vh; background: var(--surface); box-shadow: 4px 0 20px rgba(161,188,152,.25); transition: all .3s ease; z-index: 11000; overflow-y: auto; padding-bottom: 70px; }
.nav-menu.active { left: 0; }
.nav-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--pale); background: linear-gradient(90deg, var(--mid) 0%, var(--dark) 100%); color: var(--cream); }
.nav-header h3 { margin: 0; font-size: 1.3rem; font-weight: 700; letter-spacing: 1px; }
.nav-close { background: none; border: none; color: var(--cream); font-size: 2rem; cursor: pointer; padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .2s; }
.nav-close:hover { background: rgba(241,243,224,.12); }
.nav-list { list-style: none; margin: 0; padding: 1rem 0; }
.nav-link { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; color: var(--dark); text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.3; transition: all .2s ease; border-left: 4px solid transparent; }
.nav-link:hover { background: var(--cream); color: var(--dark); border-left-color: var(--mid); }
.nav-link.active { background: var(--cream); color: var(--dark); border-left-color: var(--mid); }
.nav-icon { font-size: 1rem; width: 20px; text-align: center; }

@media (max-width: 600px) { .nav-link { padding: .6rem .9rem; gap: .6rem; } .nav-icon { width: 18px; font-size: .95rem; } }
@media (max-width: 600px) { body.has-sticky-footer .main-wrapper { padding-bottom: 70px; } }
@media (max-width: 600px) {
  .modern-nav { top: .5rem; left: .5rem; }
  .main_content { padding-top: 55px; }
  .nav-toggle { width: 45px; height: 45px; }
  .hamburger-line { width: 20px; height: 2px; }
  .nav-menu { width: 280px; left: -300px; }
}
@media (min-width: 768px) { .nav-menu { width: 320px; left: -340px; } }

#show-menu, .show-menu, .main-menu, .main-wrapper ul#menu { display: none !important; }

.form-section { margin: 1.2rem auto; max-width: 1000px; padding: 0 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; width: 100%; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-row.full-width { grid-column: 1 / -1; } }
.form-row { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.form-row label { margin-bottom: .25rem; font-weight: bold; color: var(--dark); }
@media (min-width: 600px) { .form-row { flex-direction: row; align-items: center; } .form-row label { flex: 0 0 150px; margin: 0 1rem 0 0; text-align: right; } .form-row .txt_box, .form-row input[type="text"], .form-row input[type="email"], .form-row input[type="tel"], .form-row input[type="number"], .form-row textarea { flex: 1; } }

.form-row.full-width { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; }
.form-row.full-width img.thumbnail { margin: 0; width: 120px; height: auto; }

.form-actions { display: flex; gap: 1rem; justify-content: flex-start; margin-top: 1.5rem; }
@media (max-width: 600px) { .form-actions { flex-direction: column; gap: .5rem; justify-content: flex-start; } .form-actions .button_box { width: 100%; } }

.mandatory-note { grid-column: 1 / -1; display: flex; justify-content: center; color: #a94442; font-weight: bold; font-size: 1rem; padding: .5rem 0; }

@media (max-width: 600px) { .form-section { max-width: 100% !important; padding: .5rem !important; margin: 0 !important; } .form-grid { width: 100% !important; grid-template-columns: 1fr !important; gap: .75rem !important; } .form-row, .form-row.full-width { width: 100% !important; } }

.login-page-container { min-height: 100vh; display: flex; flex-direction: column; align-items: center; background: linear-gradient(135deg, var(--cream) 0%, var(--pale) 100%); padding: .5rem; font-family: 'Sansation'; }
.login-header { width: 100%; display: flex; align-items: center; justify-content: center; position: relative; margin: .5rem 0; }
.logo-area { display: flex; justify-content: center; align-items: center; width: 100%; }
.company-logo { max-width: 140px; max-height: 56px; height: auto; display: block; margin: 0 auto; }
.login-main { width: 100%; display: flex; flex-direction: column; align-items: center; flex: 1; }
.login-card { background: var(--surface); border-radius: 16px; box-shadow: 0 6px 24px rgba(161,188,152,.22); padding: 1rem; margin: 0 auto; max-width: 350px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.login-title { margin: 0 0 .5rem 0; color: var(--dark); font-size: 1.2rem; font-weight: 700; text-align: center; background: var(--cream); border: 1px solid var(--pale); border-radius: 12px; padding: 10px 14px; box-shadow: 0 1px 3px rgba(161,188,152,.18); }
.login-lock { height: 50px; }
/* Bigger, centered buttons inside login card */
.login-card .button_box { width: 100%; padding: 1rem 2.2rem; font-size: 1.15rem; }

.social-login-section { width: 100%; max-width: 100%; background: var(--pale); border-radius: 12px; box-shadow: 0 1px 6px rgba(161,188,152,.18); padding: .5rem; margin-bottom: .5rem; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.divider { width: 100%; border-top: 1px dashed var(--pale); margin: 1rem 0; }
.or-text { color: #6b766d; text-align: center; margin: .3rem 0 .7rem 0; font-size: .95rem; letter-spacing: 1px; }

.back-button-section { width: 100%; text-align: left; margin-bottom: 1rem; }
.back-button { display: inline-flex; align-items: center; gap: 8px; color: var(--dark); text-decoration: none; font-size: .9rem; font-weight: 500; padding: 8px 12px; border-radius: 6px; transition: all .2s ease; }
.back-button:hover { background: var(--cream); color: var(--dark); transform: translateX(-2px); }

.info-section { margin-top: 1.5rem; padding: 1rem; background: var(--cream); border-radius: 8px; border-left: 4px solid var(--mid); }
.info-section p { margin: 0; font-size: .9rem; color: var(--dark); line-height: 1.5; }

/* Profile row with semi-rounded photo frame and details beside */
.profile-row { display: flex; align-items: center; justify-content: flex-start; gap: 1.2rem; margin-bottom: 1.5rem; }
.profile-photo-frame { display:flex; align-items:center; justify-content:center; padding:8px; background: var(--cream); border: 1px solid var(--pale); border-radius: 16px; box-shadow: 0 2px 8px rgba(161,188,152,.15); }
.profile-pic { width: 100px; height: 100px; border-radius: 12px; border: 2px solid var(--mid); object-fit: cover; }
.profile-info { display:flex; flex-direction: column; justify-content:center; }
.profile-name { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: .25rem; }
.profile-code { color: #6b766d; font-size: .95rem; }

/* Small text link below the logo on login page */
.below-logo-links { width: 100%; display: flex; justify-content: center; align-items: center; margin-top: 6px; }
.below-logo-links .small-link { font-size: 0.9rem; color: var(--dark); text-decoration: underline; }
.below-logo-links .small-link:hover { color: var(--mid); }

.below-login-link { width: 100%; display: flex; justify-content: center; align-items: center; margin-top: 8px; }
.below-login-link .small-link { font-size: 0.9rem; color: var(--dark); text-decoration: underline; }
.below-login-link .small-link:hover { color: var(--mid); }

/* Company info block on login page */
.company-info { display:flex; align-items:center; gap:12px; }
.company-info p { margin:0; color: var(--dark); }
.company-info a { color: var(--mid); }
.company-info a:hover { color: var(--dark); }

.social-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.provider-label, .profile-label { display: flex; align-items: center; gap: 0.5rem; }
.provider-label img, .profile-label img { width: 32px; height: 32px; border-radius: 4px; object-fit: contain; }
.profile-number { width: 28px; height: 28px; border-radius: 50%; background: var(--cream); border: 1px solid var(--pale); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--dark); }
.provider-control, .profile-control { display: flex; align-items: center; justify-content: flex-start; gap: 0.75rem; flex: 1 1 auto; }
.status-connected { color: var(--mid); font-weight: 700; }
.status-disconnected { color: #b45309; font-weight: 700; }

.sticky-footer{ position:fixed; left:0; right:0; bottom:0; height:64px; display:flex; align-items:center; justify-content:space-around; background:linear-gradient(90deg,var(--mid) 0%,var(--dark) 100%); box-shadow:0 -6px 18px rgba(161,188,152,.25); z-index:10000; padding:0 12px; }
.sticky-action{ color:var(--cream); text-decoration:none; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; font-weight:600; opacity:.95; }
.sticky-action:hover{opacity:1}
.sticky-action.active{filter:brightness(1.1)}
.footer-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;line-height:1;font-size:0}
.footer-icon::before{font-family:'Material Icons';font-weight:normal;font-style:normal;font-size:24px;content:attr(data-icon)}
.footer-label{font-size:.8rem}
@media (max-width:600px){ .sticky-footer{height:56px} .footer-icon::before{font-size:22px} .footer-label{font-size:.75rem} }
body.has-sticky-footer{padding-bottom:70px}

.footer { margin: 32px auto 0 auto; text-align: center; color: var(--dark); font-size: .92em; letter-spacing: .01em; padding: 20px 16px 24px 16px; overflow-wrap: break-word; background: linear-gradient(135deg, var(--cream) 0%, #FFF8D4 100%); border-radius: 12px; box-shadow: 0 2px 8px rgba(161,188,152,.15); border: 1px solid #E1E5C8; max-width: 600px; }
.footer hr { border: none; height: 1px; background: linear-gradient(90deg, transparent, var(--mid), transparent); margin: 16px 0; opacity: .6; }
.footer a { color: #A3B087; text-decoration: none; font-weight: 600; transition: all .3s ease; padding: 8px 12px; border-radius: 6px; display: inline-block; margin: 8px 0; }
.footer a:hover { color: #435663; background: rgba(163,176,135,.12); transform: translateY(-1px); }
.footer p { margin: 12px 0 0 0; line-height: 1.5; color: #435663; font-size: .9em; }
@media (max-width: 600px) { .footer { margin: 20px 12px 0 12px; padding: 16px 12px 20px 12px; border-radius: 8px; font-size: .88em; } .footer a { padding: 6px 10px; font-size: .95em; } .footer p { font-size: .85em; } }

.spinner { width: 48px; height: 48px; position: relative; margin: 0 auto; }
.double-bounce1, .double-bounce2 { width: 100%; height: 100%; border-radius: 50%; background-color: var(--dark); opacity: .6; position: absolute; top: 0; left: 0; animation: bounce 2s infinite ease-in-out; }
.double-bounce2 { animation-delay: -1s; }
@keyframes bounce { 0%, 100% { transform: scale(0.0);} 50% { transform: scale(1.0);} }

.choco-theme{min-height:100vh;background:linear-gradient(135deg,var(--cream) 0%,var(--pale) 100%);color:var(--dark)}
.choco-theme .login-card{background:var(--surface);border:1px solid var(--pale);border-radius:12px;padding:16px;box-shadow:0 8px 28px rgba(161,188,152,.22)}
.choco-theme .login-title{margin:0 0 8px 0;text-align:center;padding:12px;border-radius:8px;background:var(--cream);border:1px solid var(--pale);color:var(--dark);font-size:18px;font-weight:600}
.choco-theme .divider{height:1px;background:#E1E5C8;margin:12px 0}
.choco-theme .or-text{color:#6b766d;text-align:center;font-size:12px;opacity:.85}
.choco-theme input[type="text"],.choco-theme input[type="password"],.choco-theme .txt_box{width:100%;padding:12px 16px;border:1px solid var(--pale);border-radius:8px;font-size:1rem;margin-bottom:12px;background:var(--cream);color:var(--dark);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.choco-theme input[type="text"]:focus,.choco-theme input[type="password"]:focus,.choco-theme .txt_box:focus{border:1.5px solid var(--mid);outline:none;background:var(--surface);box-shadow:0 0 0 2px #A1BC9833;color:var(--dark)}
.choco-theme .button_box{display:inline-block;padding:.75rem 2rem;font-weight:600;color:var(--cream);background:linear-gradient(90deg,var(--mid) 0%,var(--dark) 100%);border:none;border-radius:8px;box-shadow:0 4px 12px rgba(161,188,152,.25);cursor:pointer;transition:background .3s,transform .1s;margin:8px 0;text-decoration:none}
.choco-theme .button_box:hover{background:linear-gradient(90deg,var(--dark) 0%,var(--mid) 100%);transform:translateY(-2px) scale(1.03)}
.choco-theme .social-login-section{background:var(--pale);border:1px solid #E1E5C8;border-radius:12px;box-shadow:0 1px 6px rgba(161,188,152,.18)}

.login-card .list_header { background: var(--cream); color: var(--dark) !important; border: 1px solid var(--pale); border-radius: 12px; padding: 12px 16px; box-shadow: 0 1px 3px rgba(161,188,152,.18); }
.login-box .list_header { text-align: left; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; width: 100%; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); } }

.card { background: var(--surface); border: 1px solid var(--pale); border-radius: 16px; box-shadow: 0 6px 20px rgba(161,188,152,.18); padding: 16px; width: 100%; }
.card .header { display: flex; align-items: center; gap: 16px; }
.profile-photo { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; border: 2px solid var(--mid); background: var(--cream); }
.title { font-size: 1.4rem; font-weight: 700; color: var(--dark); }
.subtitle { color: #6b766d; font-size: .95rem; }

.app-card { padding: 18px; border-radius: 16px; }
.app-card .list_header { font-size: clamp(1.1rem, 2.4vw, 1.4rem); padding: 14px 18px; }
.app-card .section-title { font-size: clamp(1rem, 2vw, 1.2rem); }
.app-card .social-row { align-items: flex-start; gap: .75rem; }
.app-card .provider-label span, .app-card .profile-label span { font-size: clamp(.95rem, 1.8vw, 1.05rem); }
.app-card .status-connected, .app-card .status-disconnected { font-size: clamp(.9rem, 1.6vw, 1rem); }
.app-card .button_box { padding: .9rem 1.2rem; font-size: clamp(1rem, 1.9vw, 1.05rem); }
.app-card .form-control { font-size: clamp(.95rem, 1.8vw, 1rem); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--cream); border: 1px solid var(--pale); border-radius: 12px; padding: 12px; text-align: center; }
.stat .num { font-size: 1.4rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }

.section-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin: 0 0 8px 0; }

.courses { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .courses { grid-template-columns: repeat(2, 1fr); } }
.course { border: 1px solid var(--pale); border-radius: 12px; padding: 12px; background: var(--cream); box-shadow: 0 2px 8px rgba(161,188,152,.12); }
.school-name { color: #6b766d; font-size: .95rem; }
.status-active { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #DCF1DD; color: #166534; font-weight: 700; border: 1px solid #AFE3B0; }

.payments { display: grid; grid-template-columns: 1fr; gap: 12px; }
.payment { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; border: 1px solid var(--pale); border-radius: 12px; padding: 12px; background: var(--cream); }
.payment .amount { font-weight: 700; color: var(--dark); }
.payment .date { color: #6b766d; }
.status-success { color: #166534; background: #DCF1DD; border: 1px solid #AFE3B0; font-weight: 700; padding: 4px 8px; border-radius: 999px; text-align: center; }
.status-pending { color: #b45309; background: #FDEAD7; border: 1px solid #F9C59B; font-weight: 700; padding: 4px 8px; border-radius: 999px; text-align: center; }

@media (max-width: 600px) { .card .header { flex-direction: column; align-items: flex-start; } .stats { grid-template-columns: 1fr; } .payment { grid-template-columns: 1fr; gap: 6px; } }

@media (max-width: 600px) { .app-card .social-row { flex-direction: column; align-items: stretch; } .app-card .provider-control, .app-card .profile-control { width: 100%; } .app-card .button_box { width: 100%; } }
