:root {
    /* BRAND */
    --brand-red: #e53935;
    --brand-red-soft: #fdecec;
    --brand-red-dark: #c62828;

    /* SOFT ACCENTS (light & colorful) */
    --blue-soft: #eef4ff;
    --blue: #3b82f6;

    --teal-soft: #ecfeff;
    --teal: #14b8a6;

    --purple-soft: #f5f3ff;
    --purple: #8b5cf6;

    --orange-soft: #fff7ed;
    --orange: #f97316;

    --green-soft: #ecfdf5;
    --green: #22c55e;

    --yellow-soft: #fffbe5;
    --yellow: #f0c40c;

    --purple-soft: #f6f3ff;
    --purple: #a45cfe;

    /* BASE */
    --bg-main: #f3f6fc;
    --card-bg: #ffffff;
    --border: #e5e7eb;

    /* TEXT */
    --text-main: #111827;
    --text-muted: #6b7280;

    /* EFFECTS */
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 18px 45px rgba(0, 0, 0, 0.12);
    --radius: 18px;

    /* SIDEBAR */
    --sidebar-bg: #ffffff;
    --sidebar-hover-bg: #fdecec;
    --sidebar-accent: var(--brand-red);

    /* SCROLLBAR */
    --scrollbar-thumb: #d1d5db;
    --scrollbar-track: transparent;
}

/* Scrollbar Styles */

::-webkit-scrollbar {
    width: 8px;
    border-radius: 5rem;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-red);
    border-radius: 5rem;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-red-dark);
}

/* base styles */

* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

html {
    font-family: Poppins, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5rem;
}

body {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
    background: linear-gradient(180deg,
            #f3f6fc 0%,
            #eef2ff 100%);
}

main {
    padding: min(30px, 7%);
}

img {
    -webkit-user-drag: none;
    user-select: none;
}

.content-card,
.action-card,
.calendar-card,
.events,
.table-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    transition: transform .3s ease, box-shadow .3s ease;
}

.content-card:hover,
.action-card:hover,
.events:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.content-card {
    padding: 20px;
    border-radius: 16px;
    animation: fadeUp .6s ease;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header span a {
    font-weight: 500;
    font-size: .8rem;
}

.feedback-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Dashboard styles */

.dashboard {
    /* padding: 22px; */
    /* display: grid;
    gap: 22px;
    background: transparent; */
    padding: 0;
}

.dashboard-columns {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 18px;
    padding: 18px;
}

.left-column,
.right-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Updates Styles */

.updates-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.max-height {
    max-height: 16rem;
    object-fit: cover;
}

.img-fit {
    object-fit: cover;
    max-height: 8rem;
}

/* Cards styles */

.greeting-card {
    color: black;
    /* padding: 10px; */
    animation: slideFade 0.6s ease;
    align-self: start;
    width: 100%;
}

.greeting-card h1 {
    font-size: 1.5rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    gap: 18px;
}

.action-card {
    padding: 20px;
    border-radius: 16px;
    transition: transform .3s ease;
}

.action-card.blue {
    background: var(--blue-soft);
    border-left: 6px solid var(--blue);
}

.action-card.green {
    background: var(--green-soft);
    border-left: 6px solid var(--green);
}

.action-card.amber {
    background: var(--orange-soft);
    border-left: 6px solid var(--orange);
}

.action-card:hover {
    transform: translate(-6px);
}

.action-card h3 {
    color: var(--text-main);
    font-size: 1.3rem;
}

.add-btn {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    padding: 1rem;
    font-weight: 500;
    transition: all .25s ease;
    gap: .75em;
    border-radius: 1.5rem;
    cursor: pointer;
    font: inherit;
    box-shadow: var(--shadow-soft);
    font-size: 0.9rem;
}

.add-btn.green {
    background: var(--green-soft);
    color: var(--green);
    border: 1px solid var(--green);
}

.green:hover {
    background: var(--green);
    color: white;
}

.add-btn.orange {
    background: var(--orange-soft);
    color: var(--orange);
    border: 1px solid var(--orange);
}

.orange:hover {
    background: var(--orange);
    color: white;
}

.add-btn.blue {
    background: var(--blue-soft);
    color: var(--blue);
    border: 1px solid var(--blue);
}

.blue:hover {
    background: var(--blue);
    color: white;
}

.add-btn.purple {
    background: var(--purple-soft);
    color: var(--purple);
    border: 1px solid var(--purple);
}

.purple:hover {
    background: var(--purple);
    color: white;
}

/* Feedback Styles */

.feedback-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.icon-wrap svg {
    width: 22px;
    height: 22px;
}

.text h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.text p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.feedback-btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    background: var(--brand-red);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.45);
}

/* Newsletter styles */

.newsletter-card {
    background: linear-gradient(135deg,
            #ffffff,
            #f8fafc);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.3s;
}

.newsletter-card:hover {
    transform: translateY(-6px);
}

.newsletter {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 16px;
}

.newsletter-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.content-card .card-header span a {
    text-decoration: none;
    color: var(--brand-red);
}

.content-card .card-header span a:hover {
    color: white;
}

.content-card .card-header h3 {
    font-size: 1.5rem;
}

.go-to {
    text-align: center;
    border: 1px solid var(--brand-red);
    border-radius: 16px;
    padding: .6rem .8rem;
    font-weight: 500;
    transition: all .25s ease;
    cursor: pointer;
    font: inherit;
    box-shadow: var(--shadow-soft);
    background: var(--brand-red-soft);
    color: var(--brand-red);
    font-size: .5rem;
}

.go-to:hover {
    color: white;
    background: var(--brand-red);
}

/* Pagination */

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
}

.pagination li a {
    padding: 8px 14px;
    background: #f1f3f5;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

.pagination li.active a {
    background: var(--brand-red);
    color: #fff;
}

.pagination li a:hover {
    background: var(--sidebar-hover-bg);
    color: var(--sidebar-accent);
}

.pagination li.disabled a {
    pointer-events: none;
    background: #e0e0e0;
    color: #999;
    opacity: 0.5;
}

/* Employee table styles */

.back {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fdecec;
    color: #c62828;
    border: 1px solid var(--brand-red);
    font-size: 1.4rem;
    font-weight: 600;
    transition: 0.3s;
    text-decoration: none;
}

.back:hover {
    background: #c62828;
    color: #fff;
}

.search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-container {
    padding: 20px;
    /*background: var(--card-bg);*/
    /*border-radius: 10px;*/
    /*box-shadow: 0 10px 25px rgba(0, 0, 0, .05);*/
    /*display: flex;*/
    /*align-items: center;*/
    /*justify-content: space-between;*/
    /*overflow-x: auto;*/
}

.dept-title {
    font-size: 1.8rem;
    text-align: center;
    padding-bottom: 0.75rem;
}

.table-container h3 {
    font-size: 1.2rem;
}

/*.search {*/
/*    width: 45%;*/
/*}*/

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    color: #999;
    font-weight: 600;
    padding: 15px 10px;
    font-size: 0.9rem;
}

tbody tr {
    border-bottom: 1px solid #eee;
}

td {
    padding: 15px 10px;
    vertical-align: middle;
    font-size: 0.9rem;
}

.empImg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.img-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.employee-content {
    max-width: 30%;
    max-height: 70%;
    border-radius: 12px;
    user-select: none;
    pointer-events: none;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    color: #fff;
    cursor: pointer;
}

tbody tr:hover {
    background: #fafafa;
}

tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.no-data {
    font-size: 1.2rem;
    color: red;
    text-align: center;
}

.btns {
    display: flex;
    gap: 2rem;
}

.btns .delete-btn, .edit-btn {
    font-size: 1.5rem;
}

.edit-btn {
    border: none;
    color: blue;
    background: none;
}

.edit-btn:hover {
    transform: scale(1.1);
}

.delete-btn {
    border: none;
    color: red;
    background: none;
}

.delete-btn:hover {
    transform: scale(1.1);
}

/* Calendar card styles */

.calendar-card {
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    animation: fadeUp .7s ease;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.nav-btn {
    background: linear-gradient(135deg,
            #ffffff,
            var(--brand-red-soft));
    border: 1px solid var(--border);
    color: var(--brand-red);
    font-size: 1.5rem;
    padding: 0 14px;
    border-radius: 18px;
    cursor: pointer;
    transition: background .2s ease;
}

.nav-btn:hover {
    background: linear-gradient(135deg,
            var(--brand-red),
            #f87171);
    color: white;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: .7rem;
    font-weight: 500;
    color: var(--brand-red);
    margin-bottom: 8px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    border-radius: 8px;
    cursor: default;
    color: var(--text-main);
    transition: background .2s ease, color .2s ease;
}

.calendar-day:hover {
    background: var(--brand-red-soft);
}

.calendar-day.today {
    background: var(--brand-red);
    color: white;
    font-weight: 600;
}

.calendar-day.muted {
    color: #cbd5e1;
}

/* Birthday card styles */

.birthday-card {
    border-radius: 22px;
    color: white;
    position: relative;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
    /* height: 17.7rem; */
}

.birthday-card.orange {
    background: linear-gradient(135deg, var(--brand-red), var(--orange));
}

.birthday-card.cyan {
    background: linear-gradient(135deg, #55e6c1, #3dc1d3);
}

.birthday-card.no-celebration {
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.banners {
    position: absolute;
    top: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
}

.banner {
    width: 30px;
    height: 40px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.banner.purple {
    background: #6c5ce7;
}

.banner.pink {
    background: #fd79a8;
}

.banner.white {
    background: #ffffff;
}

.birthday-card img {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid white;
}

.birthday-card h1 {
    font-size: 1.5rem;
    font-weight: 400;
}

.birthday-card h2 {
    font-size: 1.2rem;
}

.birthday-card h3 {
    font-size: 1.1rem;
}

.birthday-card p {
    font-size: 1rem;
}

.confetti span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    opacity: 0.9;
    top: -10px;
    animation: fall 4s linear infinite;
}

.confetti span:nth-child(odd) {
    background: #fd79a8;
}

.confetti span:nth-child(even) {
    background: #6c5ce7;
}

.confetti span:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.confetti span:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
}

.confetti span:nth-child(3) {
    left: 30%;
    animation-delay: 2s;
}

.confetti span:nth-child(4) {
    left: 40%;
    animation-delay: 0.5s;
}

.confetti span:nth-child(5) {
    left: 50%;
    animation-delay: 1.5s;
}

.confetti span:nth-child(6) {
    left: 60%;
    animation-delay: 2.5s;
}

.confetti span:nth-child(7) {
    left: 70%;
    animation-delay: 0.8s;
}

.confetti span:nth-child(8) {
    left: 80%;
    animation-delay: 1.8s;
}

.confetti span:nth-child(9) {
    left: 90%;
    animation-delay: 2.8s;
}

.confetti span:nth-child(10) {
    left: 95%;
    animation-delay: 1.2s;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

.month-list {
  padding: 20px;
  background: linear-gradient(135deg,#ffe2ec,#e2f5ff);
  border-radius: 16px;
}

.month-list h2 {
  text-align: center;
  margin-bottom: 14px;
  color: #333;
}

.birthday-list {
  list-style: none;
  padding: 0;
  margin: 0;
  /*max-height: 220px;*/
  overflow-y: hidden;
}

.birthday-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: white;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.name {
  font-weight: 600;
  color: #222;
}

.dept {
  color: #666;
  font-size: 12px;
}

.date {
  color: var(--brand-red);
  font-weight: 600;
}

/* Add forms */

.add-employee-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Marquee styles */

.marquee-container {
    box-shadow: var(--shadow-soft);
    background-color: black;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 20;
    color: white;
}

.marquee-content {
    display: flex;
    animation: marquee 27s linear infinite;
}

.marquee-item {
    flex: 0 0 auto;
    padding: 0 20px;
    font-size: .9rem;
    font-weight: 600;
}

/* Optional: Pause animation on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Centers styles */

/* .centers {
    padding: 2rem;
} */

.top-center h1 {
    font-weight: 600;
    text-align: center;
}

.filters {
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.filter-btn {
    padding: .5rem 1rem;
    border: 1px solid var(--brand-red);
    border-radius: .75rem;
    background: var(--brand-red-soft);
    color: var(--brand-red);
    font-weight: 600;
    font-size: 1rem;
}

.filter-btn.active {
    border: none;
    background: var(--brand-red);
    color: white;
}

.center-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.clickable {
    cursor: pointer;
}

.center-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

/* Side navigation bar styles */

#menuToggle {
    display: none;
}

#sidebar {
    box-sizing: border-box;
    width: 250px;
    padding: 5px 0.2em;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    left: 0;
    align-self: start;
    transition: 300ms ease-in-out;
    overflow: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    text-wrap: nowrap;
    height: 100vh;
    /* grid-area: sidebar; */
}

#sidebar.close {
    padding: 5px;
    width: 60px;
}

#sidebar ul {
    list-style: none;
    padding-left: 0.5rem;
}

#sidebar>ul>li:first-child {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 16px;
}

#sidebar>ul>li:first-child .logo {
    font-weight: 600;
}

#sidebar a,
#sidebar .dropdown-btn,
#sidebar .logo {
    border-radius: .5em;
    padding: .85em;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 1em;
}

#sidebar a,
#sidebar .dropdown-btn {
    transition: all .25s ease;
    font-weight: 500;
}

#sidebar ul li.active a {
    color: var(--sidebar-accent);
}

#sidebar ul li.active a svg {
    fill: var(--brand-red);
}

#sidebar ul li a.active {
    background: var(--brand-red);
    color: white;
    font-weight: 600;
}

#sidebar ul li a.active svg {
    fill: white;
    transform: scale(1.1);
}

#sidebar a:hover,
#sidebar .dropdown-btn:hover {
    background: var(--brand-red-soft);
    color: var(--brand-red);
    transform: translateX(6px);
}

#sidebar a:hover svg,
#sidebar .dropdown-btn:hover svg {
    fill: var(--sidebar-accent);
}

.dropdown-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
}

#sidebar svg {
    flex-shrink: 0;
    fill: var(--text-muted);
    transition: all .25s ease;
}

#sidebar a span,
#sidebar .dropdown-btn span {
    flex-grow: 1;
}

#sidebar a:hover,
#sidebar .dropdown-btn:hover {
    background-color: var(--sidebar-hover-bg);
}

#sidebar .sub-menu {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: max-height .3s ease, opacity .3s ease;
    max-height: 0;
    opacity: 0;
    margin-left: .5em;
}

#sidebar .sub-menu>div {
    overflow: hidden;
}

#sidebar .sub-menu.show {
    grid-template-rows: 1fr;
    max-height: 430px;
    opacity: 1;
}

.dropdown-btn svg {
    transition: 200ms ease;
}

.rotate svg:last-child {
    transform: rotate(180deg);
}

#sidebar .sub-menu a {
    /* padding-left: 2em; */
    color: rgb(75, 75, 75);
    font-size: .8rem;
}

.sub-link {
    padding-left: 2em;
}

.sub-link span {
    font-size: .8rem;
    color: rgb(75, 75, 75);
}

#sidebar .sub-menu .light {
    color: var(--text-muted);
}

#sidebar .sub-menu a:hover {
    color: var(--sidebar-accent);
    background: var(--sidebar-hover-bg);
}

#sidebar a.active svg {
    transform: scale(1.1);
}

.sidebar-user {
    margin-top: auto;
    padding: .74em;
    position: relative;
}

.user-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .75em;
    padding: .75em;
    border-radius: .75em;
    cursor: pointer;
    color: var(--text-main);
    font: inherit;
    transition: background .25s ease;
    background: linear-gradient(135deg, #fdecec, #ffffff);
    border: 1px solid var(--border);
}

.user-btn:hover {
    background: var(--sidebar-hover-bg);
}

.sidebar-user img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-user .username {
    flex-grow: 1;
    font-weight: 500;
    font-size: .9rem;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.user-menu {
    position: absolute;
    bottom: 80px;
    left: 10px;
    right: 10px;
    background: var(--brand-red);
    border: 1px solid var(--sidebar-border);
    border-radius: .75em;
    box-shadow: var(--sidebar-shadow);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all .25s ease;
    z-index: 50;

}

.sidebar-user .user-menu a {
    display: block;
    padding: .75em 1em;
    text-decoration: none;
    font-size: .9rem;
    border-radius: 14px;
    border: 1px solid var(--sidebar-border);
    color: white;
}

.logout {
    color: white !important;
}

.sidebar-user .user-menu .logout:hover {
    background: var(--brand-red-soft) !important;
    color: var(--brand-red) !important;
    border: 1px solid var(--brand-red) !important;
}

.sidebar-user:hover .user-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Events styles */

.events {
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow-soft);
    margin: 1.2rem;
    background: var(--card-bg);
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.event-grid img {
    height: 100%;
    width: 100%;
    border: 1px solid var(--border);
    cursor: pointer;
}

.event-img {
    object-fit: cover;
}

.custom-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1056;
    font-size: 34px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
}

.custom-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.prev,
.next {
    width: 60px;
    opacity: 1;
}

.prev-icon,
.next-icon {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    background-size: 60% 60%;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    box-shadow: var(--shadow-soft);
}

.middle {
    transition: .5s ease;
    opacity: 0;
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.middle a {
    background: var(--brand-red);
    color: white;
    padding: 0.7rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

.middle button {
    background: var(--brand-red);
    color: white;
    padding: 0.7rem;
    border-radius: 1rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    border: none;
}

.middle a:hover {
    background: var(--brand-red-soft);
    color: var(--brand-red);
    border: 1px solid var(--brand-red);
}

.middle button:hover {
    background: var(--brand-red-soft);
    color: var(--brand-red);
    border: 1px solid var(--brand-red);
}

.img-hover:hover img {
    opacity: 0.4;
}

.img-hover:hover .middle {
    opacity: 1;
}

/* Footer styles */

.dashboard-footer {
    /* margin-top: 40px; */
    text-align: center;
    color: var(--text-muted);
    /* background: var(--card-bg);
    margin: 0;
    border-radius: 18px; */
    background-color: lightgrey;
    padding-top: 1.5rem;
    padding-bottom: .5rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 5px;
  border-radius: 50%;
  font-size: 1.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Instagram - Gradient Fill */
.bi-instagram {
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
}

/* LinkedIn */
.bi-linkedin {
  color: #0077b5;
}

/* Facebook */
.bi-youtube {
  color: #CD201F;
}

/* Hover Effects */
.socials a :hover {
  transform: translateY(-3px) scale(1.1);
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
}

.dashboard-footer p {
    margin-top: 0.6rem;
}

/* About us styles */

.about-us {
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    animation: slideUp 0.8s ease;
}

.hero {
    background: linear-gradient(135deg, #e63946, #ff6b6b);
    color: #fff;
    padding: 20px;
    text-align: center;
    animation: slideFade 0.8s ease;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    animation: slideFade 0.8s ease;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: auto;
    opacity: 0.95;
    animation: fadeUp 1s ease forwards;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px 80px;
    animation: fadeUp 1s ease forwards;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
    padding: 2rem;
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 15px;
}

/* .about-image {
    height: 320px;
    border-radius: 16px;
} */

.about-image img {
    border-radius: .8rem;
    width: 100%;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    /* margin-top: 60px; */
    padding: 0 2rem;
}

.purpose-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.purpose-card:hover {
    transform: translateY(-6px);
}

.purpose-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary);
}

.purpose-card p {
    color: var(--gray);
    font-size: 15px;
}

.purpose {
    text-align: center;
    background: linear-gradient(135deg, #e63946, #ff6b6b);
    color: #fff;
    padding: 0;
    margin: 0;
}

.main-timeline {
    position: relative;
}

.main-timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #939597;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline {
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -13px;
    background-color: #939597;
    border: 5px solid var(--brand-red);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    padding: 0px 40px 20px 0px;
    left: 0;
}

.right {
    padding: 0px 0px 20px 40px;
    left: 50%;
}

.left::before {
    content: " ";
    position: absolute;
    top: 18px;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.right::before {
    content: " ";
    position: absolute;
    top: 18px;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.right::after {
    left: -12px;
}

.card-timeline {
    padding: 0px 30px;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

#testimonialCarousel {
    position: relative;
}

.testimonial-card {
    background: linear-gradient(145deg, #f3f4f6, #ffffff);
    border-radius: 20px;
    box-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.quote-icon {
    font-size: 3.2rem;
    color: var(--brand-red);
    opacity: 0.3;
}

.ccp,
.ccn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background-color: var(--brand-red);
    border: none;
    border-radius: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Left button */
.ccp {
    left: -25px;
}

/* Right button */
.ccn {
    right: -25px;
}

.ccp .carousel-control-prev-icon,
.ccn .carousel-control-next-icon {
    filter: invert(1);
}

#testimonialCarousel .carousel-indicators {
    bottom: -35px;
    z-index: 5;
}

#testimonialCarousel .carousel-indicators [data-bs-target] {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background-color: var(--brand-red-soft) !important;
    border: 1px solid var(--brand-red) !important;
    opacity: 0.5;
    margin: 0 6px;
}

#testimonialCarousel .carousel-indicators .active {
    opacity: 1 !important;
    background-color: var(--brand-red) !important;
}

.companies {
    border-bottom: 1px solid lightgray;
}

.company-logo {
  width: 60%;
  height: 30px; /* Set desired height */
  object-fit: cover;
}

.vsit {
    width: 90%;
    height: 40px;
    object-fit: cover;
}

.company-container {
    padding-left: 8rem;
    padding-right: 8rem;
}

.leadership-container {
    padding: 4rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.leadership-logo {
    width: 300px;
    height: 180px;
    object-fit: contain;
}

.profile-card {
    max-width: 350px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
    .main-timeline::after {
        left: 31px;
    }

    .timeline {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    .left::after,
    .right::after {
        left: 18px;
    }

    .left::before {
        right: auto;
    }

    .right {
        left: 0%;
    }
}

/* Departments styles */

.departments {
    /* min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; */
    min-height: auto;
}

/* ===== LEGEND ===== */
.legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 0.6rem;
}

.legend span {
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 500;
    color: var(--muted);
    transition: background 0.2s ease, color 0.2s ease;
}

.legend span:hover,
.legend span.active {
    background: #eef2ff;
    color: #1e3a8a;
}

/* ===== SVG ===== */
.wrapper svg {
    width: 100%;
    max-width: 640px;
    height: auto;
    max-height: 90vh;
    /*display: block;*/
}

.track {
    fill: none;
    stroke: var(--track);
}

/* ===== ARCS ===== */
.arc {
    fill: none;
    stroke-linecap: round;
    cursor: pointer;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.arc.dim {
    opacity: 0.15;
}

.arc:hover {
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.25));
}

.arc.active {
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.35));
}

.arc-label.active {
    /* fill: #1d4ed8; */
    opacity: 1 !important;
}

/* ===== LABELS ===== */
.arc-label {
    fill: #020617;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    pointer-events: none;
    opacity: 0.9;
    dominant-baseline: middle;
}

/* .arc.active+text .arc-label {
    fill: #1d4ed8;
} */

/* ===== CENTER ===== */
.center {
    fill: white;
    stroke: #4f46e5;
    stroke-width: 3;
}

.bod {
    fill: #1e293b;
    font-weight: 700;
    font-size: 1rem;
}

/* ===== TOOLTIP ===== */
.tooltip {
    position: fixed;
    background: white;
    border: 1px solid #e5e7eb;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    pointer-events: none;
    color: #020617;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.arc-label.dim {
    opacity: 0.15;
}

.wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    /*max-width: 1400px;*/
    margin: 0 auto;
    padding: 10px 20px 20px;
}

.dept-btn {
    --accent: #3b82f6;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 8px 14px;
    margin: 6px 0;

    font-size: 14px;
    font-weight: 500;
    color: #1f2937;

    background: linear-gradient(135deg,
            color-mix(in srgb, var(--accent) 18%, #ffffff),
            #ffffff);

    border-radius: 999px;
    /* pill shape */
    border: 1px solid color-mix(in srgb, var(--accent) 35%, #e5e7eb);

    cursor: pointer;
    user-select: none;

    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

/* Accent dot */
.dept-btn::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* Hover */
.dept-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
    background: color-mix(in srgb, var(--accent) 22%, #ffffff);
}

/* Active / Selected */
.dept-btn.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.dept-btn.active::before {
    background: #ffffff;
    box-shadow: none;
}

/* login page styles */

.login {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    padding: 3rem;
    width: 26rem;
}

.login-container h3 {
    text-align: center;
    font-size: 1.5rem;
}

.invalid {
    color: red;
}

.login-head {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* College styles */

.college h1 {
    text-align: center;
}

.college-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 3rem;
}

.clg-btn {
    background: var(--brand-red-soft);
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--brand-red);
    box-shadow: var(--shadow-soft);
    font-weight: 600;
    text-decoration: none;
    color: var(--brand-red);
    text-align: center;
}

.clg-btn:hover {
    /* transform: scale(1.1); */
    color: white;
    background: var(--brand-red);
}

/*FAQ Styles*/

.faq-card {
    margin-top: 1.5rem;
    border: 1px solid lightgrey;
    background: var(--card-bg);
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
    border-radius: 0.6rem;
    padding: 1.5rem;
}

.faq-card:hover {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
    transform: translateY(-2px);
}

/* Media Queries */

@media (max-width: 1366px) {
    .max-height {
        max-height: 10rem;
    }

    .img-fit {
        max-height: 6rem;
    }
}
    
@media (max-width: 1280px) {

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter {
        flex-direction: column;
    }

    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .max-height {
        max-height: 8rem;
    }

    .img-fit {
        max-height: 4rem;
    }
}

@media (max-width: 1024px) {

    .dashboard-columns {
        grid-template-columns: 1fr;
    }
    
    .left-column {
        order: 2;
    }
    
    .right-column {
        order: 1;
    }

    .calendar-card,
    .celebration-card {
        margin-top: 20px;
    }

    .wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .legend {
        order: 2;
        align-items: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .college-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .center-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .wrapper {
        flex-direction: column;
    }
    
    .updates-panel {
        grid-template-columns: 1fr;
    }
    
    .max-height {
        max-height: none;
    }

    .img-fit {
        max-height: none;
    }
    
    .company-container {
        padding-left: 3rem;
        padding-right: 3rem;
    }

}

@media(max-width: 800px) {
    main {
        padding: 2em 1em 60px 1em;
    }

    .quick-actions {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .leadership-container {
        grid-template-columns: 1fr;
    }
    
    .search-container input {
        width: 100% !important;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
        /* hide header */
    }

    tbody tr {
        background: #fff;
        margin-bottom: 15px;
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        border: 1px solid #eee;
    }

    tbody td {
        padding: 8px 10px;
        text-align: right;
        position: relative;
        border-bottom: 1px solid #f1f1f1;
    }

    tbody td:last-child {
        border-bottom: none;
    }

    tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: 600;
        color: #666;
        text-align: left;
    }

    .empImg {
        width: 50px;
        height: 50px;
        margin-left: auto;
    }

    .btns,
    .edit-btn,
    .delete-btn {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {

    body {
        grid-template-columns: 1fr;
    }

    .newsletter-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .college-container {
        grid-template-columns: 1fr;
    }

    .center-container {
        grid-template-columns: 1fr;
    }

    /* Navbar */
    #menuToggle {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1001;
        background: var(--brand-red);
        color: white;
        border: none;
        padding: 10px 14px;
        border-radius: 8px;
        font-size: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    }

    #sidebar {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform .3s ease;
        /* box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2); */
        border-right: none;
        box-shadow: none;
    }

    #sidebar.open {
        transform: translateX(0);
    }

    #sidebar.close {
        width: 240px;
        /* disable mini mode on mobile */
    }

    /* Overlay */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        opacity: 0;
        pointer-events: none;
        transition: .3s ease;
        z-index: 998;
    }

    body.sidebar-open::before {
        opacity: 1;
        pointer-events: auto;
    }

    /* Smaller padding */
    #sidebar a,
    #sidebar .dropdown-btn {
        padding: .7em;
        font-size: .95rem;
    }

    #sidebar svg {
        width: 18px;
        height: 18px;
    }

    /* Submenu spacing */
    #sidebar .sub-menu a {
        padding-left: 1.5em;
        font-size: .85rem;
    }

    /* User card shrink */
    .sidebar-user img {
        width: 30px;
        height: 30px;
    }

    #sidebar a:hover,
    #sidebar .dropdown-btn:hover {
        transform: none;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .legend {
        grid-template-columns: repeat(2, 1fr);
        /*max-width: 100%;*/
    }
    
    /*.table-container {*/
    /*    padding: 10px;*/
    /*}*/
    
    /*.search {*/
    /*    width: 100%;*/
    /*}*/
    
    /*.dept-title {*/
    /*    font-size: 1.5rem;*/
    /*}*/
    
    /*td, th {*/
    /*    padding: 8px 6px;*/
    /*    font-size: 0.8rem;*/
    /*}*/
    
    /*.empImg {*/
    /*    width: 30px;*/
    /*    height: 30px;*/
    /*}*/
    
    .filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    /*#sidebar {*/
    /*    height: 56px;*/
    /*}*/

    #sidebar .icons,
    #sidebar .dropdown-btn {
        /*width: 36px;*/
        height: 36px;
    }

    .user-btn img {
        width: 32px;
        height: 32px;
    }

    /*.user-menu {*/
    /*    position: fixed;*/
    /*    left: 68%;*/
    /*    bottom: 65px;*/
    /*}*/

    /*#sidebar .sub-menu {*/
    /*    height: 56px;*/
    /*}*/
    
    .legend {
        grid-template-columns: repeat(1, 1fr);
        /*max-width: 100%;*/
    }
}

@media (max-width: 420px) {

    /*#sidebar {*/
    /*    height: 52px;*/
    /*}*/

    #sidebar .icons,
    #sidebar .dropdown-btn {
        /*width: 32px;*/
        height: 32px;
    }

    .user-btn img {
        width: 28px;
        height: 28px;
    }

    /*#sidebar .sub-menu {*/
    /*    height: 56px;*/
    /*}*/
}

/* Animations (Subtle & Professional) */

#alert-container .alert {
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFade {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(500px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}