/* Глобальные стили для всех страниц */

:root{
  --bg:#1a2030;--card:#232c3d;--input:#1a2333;
  --border:rgba(255,255,255,0.09);--border2:rgba(255,255,255,0.18);
  --accent:#5b6ef5;--accent-bg:rgba(91,110,245,0.14);
  --tx:#e8eaf2;--tx2:#8a95b0;--tx3:#4e586e;
  --green:#1d9e75;--red:#e24b4a;--amber:#ef9f27;
  --r:10px;--rs:7px;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #1e293b;
    height: 100%;
    padding: 0;
    margin: 0;
}

h1 {
    outline: none !important;
}
/* TopBar links style*/

.btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 0.6rem 1rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 14px;
    transition: all 0.3s ease;
    border-radius: 30px;
    border: 1px solid transparent;
}

.nav-links:hover {
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.nav-links.active {
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.icon-link button {
    background: transparent;
}

.page-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

/*Home page*/

.slider-container {
    display: flex;
    align-items: center;
    max-width: 97%;
    margin: 0 auto;
}

.slider-wrapper {
    flex: 1 1 auto;
    overflow: hidden;
    min-width: 0;
    position: relative;
    border-radius: 20px;
}

.slider-wrapper, .slider-container {
    position: relative;
    z-index: 1;
}

.slider {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.slide-wrapper {
    display: flex;
    flex: 0 0 100%;
    min-width: 100%;
    padding: 2rem;
    box-sizing: border-box;
}

.slide {
    width: 100%;
    flex: 0 0 100%;
    min-height: 60vh;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    color: white;
    font-size: 28px;
    text-align: center;
    box-sizing: border-box;
}

.dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    gap: 10px;
    z-index: 10;
}

.dot {
    cursor: pointer;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ffffff;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot:hover {
    transform: scale(1.2);
    cursor: pointer;
}

.dot.active {
    background-color: rgba(255, 255, 255, 0.4);
}

.slider-btn {
    padding: 10px 15px;
    font-size: 24px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.intro-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem;
    padding: 2rem;
    max-width: 100%;
}

.title-side {
    flex: 1 1 200px;
    margin: 0;
    max-width: 100%;
}

.title {
    border: 2px solid #fff;
    border-radius: 10px;
}

.title h1{
    outline: none;
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: start;
}

.text {
    margin-top: 1rem;
    border: 2px solid #fff;
    border-radius: 10px;
    padding-bottom: 0 !important;
}

.text p {
    text-align: start;
    color: #fff;
    font-size: 1.0rem;
}

.img-side {
    flex: 1 1 230px;
    height: 100%;
    text-align: center;
}

.img-side img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.glass-bg {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/*AboutUs section*/

.about-page-blocks  {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-direction: row;
    gap: 3rem;
    margin-bottom: 2rem;
}

.about-block {
    border: 0 solid transparent;
    padding: 1rem;
    border-radius: 10px;
    width: 25%;
}

.about-page-blocks h1 {
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    font-size: 2rem;
}

.about-page-blocks p {
    color: #ffffff;
    text-align: center;
    font-size: 1.2rem;
}

/*About college section*/

.about-college-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 3rem;
}

.about-college-blocks {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 90%;
    gap: 2rem;
}

.about-college-blocks h1 {
    text-align: start;
    outline: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 2rem;
}

.about-college-blocks p {
    text-align: start;
    color: #ffffff;
    font-size: 1.2rem;
}

.about-college-block {
    padding-bottom: 0 !important;
    border: 0 solid transparent;
    border-radius: 10px;
}

/*News page*/

.news-page {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 90%;
    gap: 2rem;
}

.news-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-image {
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-body {
    padding: 1rem;
    flex: 1;
}

.news-body h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.news-body p {
    font-size: 1.2rem;
    opacity: 0.8;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    padding: 1rem;
}

.more-btn {
    width: 100%;
    padding: 0.6rem;
    border: none;
    border-radius: 10px;
    background: #4b6cff;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.more-btn:hover {
    background: #3b55cc;
}

.no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(75,108,255,0.3), rgba(139,92,246,0.3));
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

.no-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left,
    rgba(255,255,255,0.15),
    transparent 60%);
}

.pagination {
    gap: 1rem;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.news-btn {
    padding: 10px 15px;
    font-size: 24px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}


/*News ID*/
.news-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.news-details {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);  
    border-radius: 20px;
    color: white;
}

.news-header h1 {
    margin: 0 0 0.5rem 0;
}

.news-date {
    opacity: 0.6;
    font-size: 0.9rem;
}

.news-gallery {
    margin: 2rem 0;
    display: grid;
    gap: 1rem;
    overflow: hidden;
}

.news-gallery img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
}

.news-content {
    line-height: 1.6;
    font-size: 1rem;
}

.news-back {
    margin-top: 2rem;
}

.gallery {
    margin: 2rem 0;
}

.gallery-main {
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 18px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.thumb {
    flex: 0 0 100px;
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.thumb:hover {
    opacity: 1;
}

.thumb.active {
    opacity: 1;
    border: 2px solid #4b6cff;
}

/*Login Page*/
.login-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 2rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: white;
}

.login-page {

    max-width: 90%;
}

.auth-form-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    gap: 1.5rem;
}

.ukhpc-logo {
    max-width: 700px;
    width: 100%;
    margin-bottom: 1rem;
}

.auth-form-section form {
    width: 40%;
}

.text-input {
    width: 100%;
    padding: 0.8rem 1rem;
    margin: 0.5rem 0;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: white;
    outline: none;
    transition: 0.2s ease;
}

.text-input:focus {
    border: 1px solid rgba(75,108,255,0.8);
    box-shadow: 0 0 10px rgba(75,108,255,0.4);
}

.password-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toggle-visibility {
    margin-right: 0.5rem;
}

.login-buttons {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

.auth-btn {
    padding: 0.8rem 0.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    flex: 1;
    text-align: center;
    text-decoration: none;
}

.auth-btn:hover {
    background: rgba(255,255,255,0.15);
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

.back-btn {
    text-align: center;
}

/*Profile page*/

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    width: 95%;
    min-height: 100vh;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: white;
}

.greeting {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.18);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    position: relative;
    color: #ffffff;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1;
}

.profile-icon h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

.profile-icon {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.profile-icon i {
    margin-right: 0.5rem;
}

.scrollable-list {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.scrollable-list ul {
    padding-left: 1rem;
    margin: 0;
}

.scrollable-list li {
    margin-bottom: 0.5rem;
}

.card .btn {
    align-self: flex-start;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card .btn:hover {
    background: rgba(255,255,255,0.15);
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

.library-section {
    display: flex;
    flex-direction: column;
}

.profile-library-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.profile-library-card .scrollable-list {
    max-height: 120px;
    overflow-x: auto;
    display: flex;
    gap: 1rem;
}

.profile-library-card .scrollable-list ul {
    display: flex;
    flex-direction: column;
}

.pages-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95%;
    height: 100%;
}

/*Submit Infraction*/

.card.submit-infraction-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card.submit-infraction-card .profile-icon h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.card.submit-infraction-card .form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.form input {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: white;
    outline: none;
    transition: all 0.2s ease;
}

.form select {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: white;
    outline: none;
    transition: all 0.2s ease;
}

.form select:focus,
.form input:focus {
    background: rgba(255,255,255,0.15);
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
    color: white;
}

.form select option {
    color: #1e293b; 
}

.form .btn {
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    color: white;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.form .btn:hover {
    background: rgba(255,255,255,0.15);
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

/*Edu Department Request*/

.submit-edudeprequest-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 600px;  
}

.submit-edudeprequest-card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

/*Common Table Style*/

.table-card {
    margin-top: 0;
    max-height: 25rem;
    overflow-y: auto;
    overflow-x: auto;
    width: 100%;
    border-radius: 10px;
    min-width: 0;
}

.common-table table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    color: #ffffff;
    overflow-x: auto;
}

.common-table th, .common-table td {
    border: 1px solid #ccc;
    padding: 10px;
}

.common-table th {
    background: #353f4f;
    position: sticky;
    top: 0;
    z-index: 1;
}

.common-table td {
    color: #000000;
    background: #bababa;
}

.common-table tr:first-child th:first-child {
    border-top-left-radius: 10px;
}

.common-table tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

.common-table tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

/*Education Department Page*/
.edudep-cards {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-form-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-form-card input {
    width: 100%;
}
.status-form-card .form-group{
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
}

/*Library Page*/
.library-cards {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
}

.library-card {
    height: 100%;
    padding: 1.2rem;
    backdrop-filter: none;
}

.library-card:focus-within {
    z-index: 50;
}

.library-form {
    display: flex;
    flex-direction: column;
}

.library-add-card {
    height: 100%;
    backdrop-filter: none;
}

.library-add-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
}

.allocated {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 0.2rem 1rem;
    margin-bottom: 1rem;
}

.allocated h1 {
    margin-top: 0.5rem;
    font-weight: bold;
    font-size: 2rem;
}

/*Admin Page*/
.admin-page {
    height: 100%;
    width: 100%;
    box-sizing:border-box;
    margin:0;
    padding:0;
}

.page-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:1.25rem;
}

.page-title {
    font-size:17px;
    font-weight:500;
    display:flex;
    align-items:center;
    gap:8px;
}
.page-title i {
    color:var(--accent);
    font-size:18px;
}

.admin-btn {
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:6px 12px;
    border-radius:var(--rs);
    font-size:12px;
    font-weight:500;
    cursor:pointer;
    border:1px solid var(--border2);
    background:transparent;
    color:var(--tx2);
    transition:all .15s;
    text-decoration: none;
}

.admin-btn:hover {
    background:rgba(255,255,255,0.06);
    color:var(--tx);
}

.btn-accent {
    background:var(--accent-bg);
    border-color:rgba(91,110,245,.4);
    color:var(--accent);
}

.btn-accent:hover {
    background:rgba(91,110,245,.22);
}

.btn-danger {
    background:rgba(226,75,74,.1);
    border-color:rgba(226,75,74,.3);
    color:var(--red);
}

.btn-danger:hover {
    background:rgba(226,75,74,.18);
}

.btn-sm {
    padding:5px 9px 4px 8px;
    font-size:11px;
}

.btn-full {
    width:100%;
    justify-content:center;
}

.btn-row {
    display:flex;
    gap:6px;
}

.tab-strip {
    display:flex;
    gap:2px;
    background:var(--card);
    border:1px solid var(--border);
    border-radius:var(--r);
    padding:4px;
    margin-bottom:1.25rem;
}

.tab {
    flex:1;
    padding:5px 4px;
    text-align:center;
    font-size:12px;
    font-weight:500;
    color:var(--tx2);
    border-radius:var(--rs);
    cursor:pointer;
    transition:all .15s;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    white-space:nowrap;
}

.tab i {
    font-size:14px;
}

.tab:hover {
    color:var(--tx);
    background:rgba(255,255,255,0.05);
}

.tab.active {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
}

.tab-text {
    margin-top: 5px;
}

.pane {
    display:none;
}

.pane.active {
    display:block;
}

.stat-row {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
    margin-bottom:1.1rem;
}

.stat {
    background:var(--card);
    border:1px solid var(--border);
    border-radius:var(--r);
    padding:1rem 1.1rem;
}

.stat-lbl {
    font-size:11px;
    color: white;
    text-transform:uppercase;
    letter-spacing:.7px;
    margin-bottom:6px;
    display:flex;
    align-items: center;
    gap:5px;
}

.stat-lbl i {
    font-size:13px
}

.stat-val {
    font-size:24px;
    font-weight:500;
    line-height:1
}

.stat-sub {
    font-size:11px;
    color:var(--tx2);
    margin-top:4px
}

.stat-sub.up {
    color:var(--green)
}

.stat-sub.warn {
    color:var(--amber)
}

.admin-card {
    background:var(--card);
    border:1px solid var(--border);
    border-radius:var(--r);
    padding:1.1rem 1.25rem;
    margin-bottom:1rem
}

.admin-card-hd {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding-bottom:.75rem;
    margin-bottom:.9rem;
    border-bottom:1px solid var(--border)
}

.admin-card-title {
    font-size:13px;
    font-weight:500;
    display:flex;
    align-items:center;
    gap:7px
}

.admin-card-title i {
    color:var(--accent);
    font-size:15px
}

.search-row {
    display:flex;
    gap:8px;
    margin-bottom:.9rem;
    align-items:center;
}

.si {
    position:relative;
    flex:1;
}

.si i {
    position:absolute;
    left:9px;top:50%;
    transform:translateY(-50%);
    color:var(--tx3);
    font-size:14px;
    pointer-events:none;
}

.si input {
    padding-left:30px !important;
    padding-top: 10px !important;
}

.admin-page input[type=text], .admin-page input[type=date], .admin-page select {
    background:var(--input);
    border:1px solid var(--border);
    border-radius:var(--rs);
    padding:7px 10px;
    color:var(--tx);
    font-size:12px;
    outline:none;
    width:100%;
    transition:border-color .15s;
}

.admin-page input[type=text]:focus, .admin-page input[type=date]:focus, .admin-page select:focus { 
    border-color:var(--accent);
}

.admin-page select option {
    background:var(--card);
}

.tbl-wrap {
    max-height: 25rem;
    overflow-x:auto;
}

.admin-page table {
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
}

.admin-page thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--card); 
    text-align:left;
    padding:6px 10px;
    font-size:10px;
    font-weight:500;
    color: white;
    text-transform:uppercase;
    letter-spacing:.9px;
    border-bottom:1px solid var(--border);
}

.admin-page tbody tr {
    border-bottom:1px solid rgba(255,255,255,0.03);
    transition:background .1s;
}

.admin-page tbody tr:last-child {
    border:none;
}

.admin-page tbody tr:hover {
    background:rgba(255,255,255,0.025);
}

.admin-page td {
    padding:9px 10px;
    vertical-align:middle;
    overflow:auto;
    text-overflow:ellipsis;
    white-space: normal; 
    word-break: break-word;
}

.td2 {
    color:var(--tx2);
    font-size:12px;
}

.badge {
    display:inline-flex;
    align-items:center;
    padding:4px 8px 2px 8px;
    border-radius:20px;
    font-size:10px;
    font-weight:500;
    letter-spacing:.3px;
}

.b-green {
    background:rgba(29,158,117,.15);
    color:#5dcaa5;
}

.b-red {
    background:rgba(226,75,74,.12);
    color:#e87977;
}

.b-blue {
    background:rgba(91,110,245,.15);
    color:#8a9cff;
}

.b-amber {
    background:rgba(239,159,39,.15);
    color:#f5c26b;
}

.form-group {
    margin-bottom:.75rem;
}

.form-group label {
    display:block;
    font-size:11px;
    color:var(--tx2);
    margin-bottom:5px;
    font-weight:500;
    letter-spacing:.3px;
}


.g2 {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:1rem;
    margin-bottom:1rem;
}

.g3 {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:1rem;
    margin-bottom:1rem;
}

.activity-item {
    display:flex;
    gap:10px;
    padding:8px 0;
    border-bottom:1px solid rgba(255,255,255,0.04);
}

.activity-item:last-child {
    border:none;
}
.adot {
    width:7px;
    height:7px;
    border-radius:50%;
    background:var(--accent);
    flex-shrink:0;
    margin-top:4px;
}

.adot.warn {
    background:var(--amber);
}

.adot.ok {
    background:var(--green);
}

.a-main {
    font-size:12px;
    line-height:1.45;
}
.a-time {
    font-size:11px;
    color:var(--tx3);
    margin-top:2px;
}

.bar-row {
    margin-bottom:10px;
}

.bar-meta {
    display:flex;
    justify-content:space-between;
    font-size:12px;
    margin-bottom:4px;
    color:var(--tx2);
}

.bar-track {
    background:var(--input);
    border-radius:4px;
    height:5px;
}

.bar-fill {
    height:100%;
    border-radius:4px;
    background:var(--accent);
}

.modal-backdrop-new {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
}

.modal-new {
    display: flex;
    flex-direction: column;
    background: #232c3d;  
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 1.4rem 1.5rem;
    width: 400px;   
    max-height: 90vh;
    height: auto;
    overflow-y: auto;
    position: relative;   
    z-index: 1001;       
}

.modal-header-new {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.modal-header-new h5 {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    gap: 7px;
}

.modal-header-new h5 i {
    color: white;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--tx3);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--rs);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--tx);
}

.btn-icon i {
    font-size: 16px;
}

.modal-body-new {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.modal-footer-new {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 1.1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
}

.mtab-strip {
    display:flex;
    gap:2px;
    background:var(--input);
    border-radius:var(--rs);
    padding:3px;
    margin-bottom:1rem;
}

.mtab {
    flex:1;
    padding:5px;
    text-align:center;
    font-size:11px;
    font-weight:500;
    color:var(--tx2);
    border-radius:5px;
    cursor:pointer;
    transition:all .15s;
}

.mtab:hover {
    color:var(--tx);
}

.mtab.active {
    background:var(--card);
    color:var(--tx);
}

.mpane {
    display:none;
}

.mpane.active {
    display:block;
}

.ver {
    text-align:center;
    padding:.75rem 0 0;
    color:var(--tx3);
    font-size:11px;
}

.infraction-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.infraction-row:last-child { 
    border: none; 
}

.infraction-info {
    display: flex;
    flex-direction: column;
    width: 200px;
    flex-shrink: 0;
}

.infraction-name { 
    font-size: 13px; 
}

.infraction-group { 
    font-size: 11px; 
    color: var(--tx2); 
}

.infraction-bar-wrap {
    flex: 1;
    border-radius: 4px;
    height: 5px;
    background:var(--input);
}
.infraction-bar {
    height: 100%;
    border-radius: 4px;
    background: #e87977;
    transition: width 0.3s ease;
}

.infraction-count {
    font-size: 13px;
    font-weight: 500;
    color: white;
    width: 20px;
    text-align: right;
    flex-shrink: 0;
}

.custom-select-wrap {
    position: relative;
    min-width: 140px; 
    flex-shrink: 0;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: var(--rs);
    cursor: pointer;
    font-size: 12px;
    color: var(--tx);
    transition: border-color .15s;
    white-space: nowrap;
    overflow: hidden;
}

.custom-select-trigger:hover { 
    border-color: var(--border2); 
}

.custom-select-trigger i { 
    font-size: 13px; 
    color: var(--tx3); 
    flex-shrink: 0; 
    margin-left: 4px; 
}

.custom-select-drop {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    /* width: 200px; */
    min-width: 318px;
    background: var(--card);
    border: 1px solid var(--border2);
    border-radius: var(--rs);
    z-index: 50;
    overflow: hidden;
}

.custom-select-search {
    position: relative;
    padding: 6px;
    border-bottom: 1px solid var(--border);
}

.custom-select-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tx3);
    font-size: 13px;
    pointer-events: none;
}

.custom-select-search input {
    padding-left: 28px !important;
    font-size: 12px;
    border-radius: 5px;
}

.custom-select-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 4px;
}

.custom-select-option {
    padding: 7px 10px;
    font-size: 12px;
    color: var(--tx2);
    border-radius: 5px;
    cursor: pointer;
    transition: background .1s;
}

.custom-select-option:hover { 
    background: rgba(255,255,255,0.05); 
    color: var(--tx); 
}

.custom-select-option.selected { 
    background: var(--accent-bg); 
    color: var(--accent); 
}

.custom-select-empty {
    padding: 10px;
    text-align: center;
    font-size: 12px;
    color: var(--tx3);
}

.custom-select-backdrop {
    position: fixed;
    inset: 0;
    z-index: 49;
}

.custom-select-trigger-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: var(--rs);
    padding: 6px 10px;
    transition: border-color .15s;
    cursor: text;
}

.custom-select-trigger-input:focus-within {
    border-color: var(--accent);
}

.custom-select-trigger-input input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--tx);
    font-size: 12px;
    width: 100%;
    padding: 0;
}

.custom-select-trigger-input input::placeholder {
    color: var(--tx3);
}

.custom-select-new {
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

.custom-select-new i {
    font-size: 13px;
}

/* Library page */
.lib-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
}

.lib-input {
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: var(--rs);
    padding: 7px 10px;
    color: var(--tx);
    font-size: 12px;
    outline: none;
    width: 100%;
    transition: border-color .15s;
}

.lib-input:focus {
    border-color: var(--accent);
}

@media (max-width: 900px) {
    .lib-cards {
        grid-template-columns: 1fr;
    }
}

/*Password Change Page*/
.password-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.password-cards input {
    padding: 1rem 1rem;
    border-radius: 10px;
    border: 1px solid #ffffff;
    margin-bottom: 1rem;
}

/*Create Report Page*/

.process-btn {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 1rem;
}

.vertical-bar {
    border-left: 2px solid rgba(255,255,255,0.18); 
    height: 90px;                    
}

.process {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.process:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    height: 100%;
}

.btn-wrapper a {
    text-decoration: none;
}

/*Modal Window*/

.modal-block .modal-content {
    background: rgba(255, 255, 255, 0.08); 
    backdrop-filter: blur(18px);           
    -webkit-backdrop-filter: blur(18px); 
    border-radius: 20px;                   
    border: 1px solid rgba(255, 255, 255, 0.18); 
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);     
    color: white;                          
}

.modal-block {
    border-bottom: none;   
}

.modal-block .modal-body {
    font-size: 1rem;
    line-height: 1.5;
}

.modal-block .modal-footer {
    border-top: none;
    justify-content: flex-end;
    gap: 0.5rem;
}

.modal-block .modal-close-btn {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    color: white;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.modal-block .modal-close-btn:hover {
    background: rgba(255,255,255,0.2);
}

.modal-content label{
    color: white !important;
} 

.gallery-main {
    cursor: zoom-in;
}

.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-modal-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
}

.image-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
}

/*Dropdown modal*/

.cards-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: scroll;
    gap: 0.5rem;
}

.group-card {
    width: 350px;
    border: 1px solid #ffffff;
    border-radius: 10px;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
    background: #bababa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    background: #bababa;
    transition: background 0.2s;
}

.group-card.open .group-header {
    background: #bababa;
    border-bottom: 1px solid #e8d5d2;
}

.group-name {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
}

.arrow {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease, background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.group-card.open .arrow {
    transform: rotate(180deg);
}

.group-card.open {
    stroke: #fff;
}

.group-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.group-card.open .group-body {
    grid-template-rows: 1fr;
}

.group-body-inner {
    overflow: hidden;
}

.group-info {
    padding: 18px 20px;
    font-size: 0.88rem;
    color: #000000;
    line-height: 1.65;
}

/* NEW PROFILE STYLE */

.profile-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.profile-role-cards {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.profile-role-card {
    flex: 1;
    max-width: 320px;
}

.profile-role-desc {
    font-size: 12px;
    color: var(--tx2);
    margin-bottom: 0.9rem;
    line-height: 1.5;
}

.profile-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1rem;
    max-height: 260px;
    overflow-y: auto;
}

.profile-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.profile-list-item:last-child {
    border: none;
}

.profile-list-text {
    font-size: 12px;
    color: var(--tx2);
    line-height: 1.4;
}

.profile-list-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 1.5rem 0;
    color: var(--tx3);
    font-size: 12px;
    justify-content: center;
}

.profile-list-empty i {
    font-size: 16px;
}

/* NEW SUBMIT INFRACTION STYLE */

.submit-card {
    width: 100%;
    max-width: 480px;
}

/* NEW PASSWORD PAGE STYLE*/

.password-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 860px;
}

.password-warning-card {
    border-color: rgba(226, 75, 74, 0.3);
    background: rgba(226, 75, 74, 0.05);
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrap .lib-input {
    padding-right: 36px;
}

.password-input-wrap i {
    position: absolute;
    right: 10px;
    color: var(--tx3);
    font-size: 16px;
    cursor: pointer;
    transition: color .15s;
}

.password-input-wrap i:hover {
    color: var(--tx);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.6rem;
    font-size: 12px;
    color: var(--tx2);
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.form-check label {
    cursor: pointer;
}

/* NEW ANALYTICS PAGE STYLE */

.file-input {
    font-size: 11px;
    color: var(--tx2);
    width: 100%;
}

.file-input::file-selector-button {
    background: var(--accent-bg);
    border: 1px solid rgba(91,110,245,.4);
    color: var(--accent);
    border-radius: var(--rs);
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: all .15s;
    margin-right: 8px;
}

.file-input::file-selector-button:hover {
    background: rgba(91,110,245,.22);
}

.process-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.process-bar-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 140px;
}

.process-bar-label {
    font-size: 10px;
    color: var(--tx3);
    text-transform: uppercase;
    letter-spacing: .7px;
}

.process-bar-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--tx);
}

.process-bar-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
    flex-shrink: 0;
}

.process-bar-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.report-cards {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1rem;
}

.report-group-card {
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: var(--rs);
    overflow: hidden;
    cursor: pointer;
}

.report-group-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 500;
}

.report-group-body {
    padding: 10px 12px;
    border-top: 1px solid var(--border);
}

.report-stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.report-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.report-stat-lbl {
    font-size: 10px;
    color: var(--tx3);
    text-transform: uppercase;
    letter-spacing: .6px;
}

.report-stat-val {
    font-size: 14px;
    font-weight: 500;
    color: var(--tx);
}

.report-grades {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.report-modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 0.5rem;
}

.report-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
}

.report-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1800px) {
    .intro-container {
        flex-direction: column;
        margin: 1rem;
        padding: 1rem;
    }

    .title h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .text p {
        text-align: center;
    }

    .slide {
        min-height: auto;
        padding: 1.5rem;
    }

    .img-side img {
        max-height: 350px;
    }
    
    .about-page-blocks {
        flex-direction: column;
    }

    .about-block {
        width: 100%;
    }
}

@media (max-width: 1300px) {

    .intro-container {
        flex-direction: column;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .slide h1 {
        font-size: 1rem;
        text-align: center;
    }

    .slide p {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .slider {
        display: block;
        transform: none !important;
    }
    
    .img-side {
        margin-bottom: 1.5rem;
    }
    
    .slide {
        padding: 1.5rem 1.5rem 0 1.5rem;
    }

    .slide-wrapper {
        flex: 1 1 0;    
        margin-bottom: 2rem;
    }

    .about-college-wrapper {
        margin-top: 0;
        margin-bottom: 1.5rem;
    }

    .dots,
    .slider-btn {
        display: none;
        pointer-events: none;
    }

    .news-card {
        padding: 1rem;
    }

    .news-gallery.count-2,
    .news-gallery.count-3 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .news-gallery.count-3 .news-img-wrapper:nth-child(3) {
        grid-column: auto;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .news-body p {
        font-size: 1.1rem;
    }

    .news-image {
        height: 180px;
    }
    
    .news-details {
       width: 90%;
    }
    
    .pagination {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .library-cards {
        flex-wrap: wrap;
        justify-content: center;
    }

    .library-card,
    .library-add-card {
        width: 45%;
    }

    .submit-edudeprequest-card {
        padding: 1.5rem;
    }

    .admin-cards {
        flex-wrap: wrap;
        justify-content: center;
    }

    .add-card {
        width: 45%;
    }
}

@media (max-width: 900px) {
    .profile-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-role-cards {
        flex-wrap: wrap;
    }

    .login-page-container {
        padding: 1rem;
        padding-top: 3rem;
    }

    .auth-form-section {
        width: 100%;
        padding: 1.5rem;
        border-radius: 16px;
    }

    .auth-form-section form {
        width: 100%;
    }

    .ukhpc-logo {
        max-width: 220px;
        margin-bottom: 0.5rem;
    }

    .text-input {
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
    }

    .auth-btn {
        padding: 0.7rem;
        font-size: 0.95rem;
    }

    .login-buttons {
        gap: 0.7rem;
    }

    .library-cards {
        flex-direction: column;
        align-items: center;
    }

    .library-card,
    .library-add-card {
        width: 100%;
    }

    .library-card {
        padding: 1rem;
    }

    .library-add-form input,
    .library-add-form select {
        width: 100%;
    }

    .allocated {
        text-align: center;
        padding: 0.7rem;
    }
    
    .common-table {
        width: 100%;
        overflow-x: auto;
    }

    .submit-edudeprequest-card {
        padding: 1.2rem;
        border-radius: 16px;
    }

    .submit-edudeprequest-card h1 {
        font-size: 1.2rem;
        text-align: center;
    }

    .submit-edudeprequest-card select,
    .submit-edudeprequest-card input {
        padding: 0.7rem;
        font-size: 0.95rem;
    }

    .submit-edudeprequest-card button {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .admin-cards {
        flex-direction: column;
        align-items: center;
    }

    .add-card {
        width: 100%;
    }

    .export-card {
        width: 100%;
    }
    
    .common-table {
        width: 100%;
        overflow-x: auto;
    }
    
    .admin-page > div[style*="flex-direction: row"] {
        flex-direction: column !important;
        gap: 0.5rem;
    }

    .admin-page > div[style*="flex-direction: row"] button {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .admin-page > div[style*="flex-direction: row"] {
        flex-wrap: wrap;
        min-width: 0;
    }

    .admin-page > div[style*="flex-direction: row"] > div {
        min-width: 0;
        flex: 1;
    }
    
    .action-btn {
        width: 100%;
        margin-bottom: 0.4rem;
    }
    
    .search-bar {
        width: 100%;
    }

    .common-table td button {
        display: block;       
        width: 100%;          
        margin-bottom: 4px;   
        box-sizing: border-box;
        font-size: 0.85rem; 
    }

    .news-details {
        margin: 1.5rem 1rem;
        padding: 1.2rem;
        border-radius: 16px;
    }
    
    
    .news-content {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .gallery-main {
        height: 250px; 
        border-radius: 14px;
    }

    .gallery-thumbs {
        gap: 0.5rem;
        margin-top: 0.8rem;
        padding-bottom: 0.3rem;
    }

    .thumb {
        width: 75px;
        height: 55px;
        border-radius: 8px;
    }

    .thumb:hover {
        transform: none; 
    }

    .news-back {
        margin-top: 1.5rem;
    }

    .more-btn {
        width: 100%; 
    }
}

@media (max-width: 600px) {

    .profile-cards {
        grid-template-columns: 1fr;
    }

    .profile-role-card {
        max-width: 100%;
        width: 100%;
    }

    .profile-list {
        max-height: 200px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 95%;
    }

    .news-image {
        height: 150px;
    }

    .news-body p {
        font-size: 1rem;
        -webkit-line-clamp: 4; 
    }

    .news-btn {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .pagination {
        flex-direction: row;
        gap: 0.5rem;
    }

    .pagination span {
        font-size: 0.9rem;
    }

    .submit-card {
        max-width: 100%;
    }

    .password-warning-card {
        order: 2;
    }
    
}

@media (max-width: 450px) {
    .img-side {
        margin-bottom: 0;
    }
    
    .news-details {
        margin: 1rem 0.5rem;
        padding: 1rem;
    }

    .gallery-main {
        height: 200px;
    }

    .thumb {
        width: 65px;
        height: 50px;
    }

    .news-content {
        font-size: 0.9rem;
    }
}


/* NEW MEDIA QUERIES */
@media (max-width: 1024px) {

    .stat-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .g2 {
        grid-template-columns: 1fr;
    }

    .tab-strip {
        flex-wrap: wrap;
        gap: 4px;
    }

    .tab {
        flex: 1 1 calc(33% - 4px);
        min-width: 100px;
    }

    .lib-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .tbl-wrap {
        overflow-x: auto;
    }

    table {
        min-width: 600px;
    }
}

@media (max-width: 640px) {

    .admin-page {
        padding: 0 0.25rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .page-title {
        font-size: 15px;
    }

    .stat-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-val {
        font-size: 20px;
    }

    .tab-strip {
        flex-wrap: wrap;
        gap: 3px;
        padding: 3px;
    }

    .tab {
        flex: 1 1 calc(50% - 3px);
        font-size: 11px;
        padding: 6px 4px;
    }

    .tab i {
        display: none;
    }

    .g2, .g3 {
        grid-template-columns: 1fr;
    }

    .admin-card {
        padding: 0.9rem 1rem;
    }

    .card-hd {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .lib-cards {
        grid-template-columns: 1fr;
    }

    .search-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .si {
        width: 100%;
    }

    .custom-select-wrap {
        width: 100%;
    }

    .custom-select-trigger {
        width: 100%;
    }

    #st colgroup col:nth-child(1),
    #st thead th:nth-child(1),
    #st tbody td:nth-child(1) {
        display: none;
    }

    #st colgroup col:nth-child(4),
    #st thead th:nth-child(4),
    #st tbody td:nth-child(4) {
        display: none;
    }

    #gt colgroup col:nth-child(1),
    #gt thead th:nth-child(1),
    #gt tbody td:nth-child(1),
    #gt colgroup col:nth-child(4),
    #gt thead th:nth-child(4),
    #gt tbody td:nth-child(4) {
        display: none;
    }

    table {
        min-width: unset;
        width: 100%;
        table-layout: fixed;
    }

    thead th, tbody td {
        font-size: 11px;
        padding: 7px 6px;
        white-space: normal;
        word-break: break-word;
    }

    .btn-row {
        flex-direction: column;
        gap: 4px;
    }

    .admin-btn.btn-sm {
        font-size: 10px;
        padding: 4px 7px;
    }

    .modal {
        width: calc(100vw - 2rem);
        padding: 1rem 1.1rem;
    }

    .badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .page-header .admin-btn {
        width: 100%;
        justify-content: center;
    }

    .bar-meta {
        font-size: 11px;
    }

    .infraction-info {
        width: 100px;
    }

    .ver {
        font-size: 10px;
    }

    .custom-select-wrap {
        width: 100%;
    }

    .custom-select-trigger {
        width: 100%;
        font-size: 12px;
        padding: 8px 10px;
    }

    .custom-select-drop {
        position: fixed;
        left: 1rem;
        right: 1rem;
        width: auto;
        top: auto;
        bottom: 1rem;
        border-radius: 12px;
        z-index: 200;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
    }

    .custom-select-search {
        padding: 8px;
    }

    .custom-select-search input {
        font-size: 14px; 
        padding: 8px 10px 8px 30px;
    }

    .custom-select-list {
        height: 220px !important; 
        overscroll-behavior: contain;
    }

    .custom-select-option {
        font-size: 13px;
        padding: 10px 12px; 
    }

    .custom-select-empty {
        font-size: 12px;
        padding: 12px;
    }

    .custom-select-backdrop {
        position: fixed;
        inset: 0;
        z-index: 199;
        background: rgba(0, 0, 0, 0.3); 
    }

    .password-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .process-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .process-bar-divider {
        width: 100%;
        height: 1px;
    }

    .process-bar-actions {
        flex-direction: column;
    }

    .report-stat-row {
        grid-template-columns: 1fr;
    }

    .report-modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 380px) {

    .stat-row {
        grid-template-columns: 1fr;
    }

    .tab {
        flex: 1 1 100%;
    }

    .stat-val {
        font-size: 18px;
    }

    .page-title {
        font-size: 13px;
    }

    .custom-select-drop {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
    }

    .custom-select-option {
        font-size: 12px;
        padding: 9px 10px;
    }

    .custom-select-list {
        height: 180px !important;
    }
}