/* ========== Google Fonts ========== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;800&display=swap");

/* ========== Global Reset ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* ========== Color Variables ========== */
:root {
    --primary-color: #8b5cf6;     /* purple */
    --secondary-color: #38bdf8;   /* blue */
    --dark-bg: #0f172a;
    --card-bg: #020617;
    --card-soft: #111827;
    --text-color: #e5e7eb;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --border-radius: 12px;
    --shadow: 0 30px 70px rgba(0,0,0,.45);
}


/* ========== Body & Layout ========== */
body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at top left, #1e293b, #0f172a 60%);
  color: var(--text-color);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}




/* Centered Container */
.container {
    /* max-width: 850px; */
    margin: auto;
    padding: 30px 25px;
    background: var(--card-bg);
   border-radius: 18px;
    box-shadow: var(--shadow);
    /* backdrop-filter: blur(10px); */
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}



.container h1, .container h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    color: #FFF;
    margin-bottom: 15px;
}

.container .file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.container .file-item {
    background: var(--card-soft);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container .file-item:hover {
   background: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
}

.container .file-item .file-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--primary-color);
    text-transform: capitalize;
}

.container .file-item .file-date {
    font-size: 14px;
    color: #5E8298;
}




/* ========== Navbar ========== */
.navbar {
    background: var(--primary-color);
    padding: 15px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.navbar a:hover {
    color: var(--secondary-color);
}

/* ========== Buttons ========== */
.btn {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
}

.btn:hover {
    background: var(--secondary-color);
}

/* ========== Forms ========== */
form {
    background: var(--card-bg);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

label {
    display: block;
    font-weight: bold;
    font-size: 15px;
    margin-top: 12px;
    color: var(--text-color);
}

input,
textarea,
select {
     background: #020617;
     color: var(--text-color);
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    font-size: 16px;
    transition: border 0.3s ease-in-out;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* ========== Tables ========== */
.table {
    background: var(--card-bg);
    color: var(--text-color);
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: visible !important;
}

.table th,
.table td {
    padding: 12px;
    text-align: center;
    border-color: var(--border-color);
}

.table th {
     background: linear-gradient(135deg,var(--primary-color),var(--secondary-color));
    color: #020617;
}

.table tr:nth-child(even),
.table tr:nth-child(odd) {
    background: transparent;
}
.table tbody tr:hover {
    background: var(--dark-bg);
}

/* ========== File List Styling ========== */
.file-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.file-item{
display:flex;
flex-direction:column;

padding:16px 18px;
margin-bottom:14px;

border-radius:14px;

background:linear-gradient(160deg,#020617,#111827);

border:1px solid rgba(255,255,255,.06);

box-shadow:
0 10px 25px rgba(0,0,0,.45);

transition:.25s;

position:relative;
overflow:hidden;
}

.file-item:hover{

transform:translateY(-4px);

border-color:#38bdf8;

box-shadow:
0 20px 40px rgba(0,0,0,.6);

}

.file-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow);
}

.file-name{

font-size:15px;
font-weight:600;

color:#e5e7eb;

letter-spacing:.3px;

text-decoration:none;

}

.file-name:hover{

color:#38bdf8;

}
.file-item::before{

content:"";

position:absolute;
left:0;
top:0;
height:100%;
width:4px;

background:linear-gradient(#8b5cf6,#38bdf8);

border-radius:4px;

}
/* ========== Sidebar Styling ========== */
.sidebar-header {
  padding: 16px 10px 10px;
  text-align: left;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}


.logo-wrapper img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
  margin-left: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.header-text .main {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.header-text .sub {
  font-size: 11px;
  color: #c8d3e2;
  margin-top: 2px;
}
.menu-links .active {
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid #ffd95a;
  font-weight: 600;
  color: #ffe98a !important;
}


.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    /* background: linear-gradient(to bottom, #5E8298, #AA8CA4); */
    /* background-image: url("/static/wallpapers/1.jpg"); */
    background: transparent !important;
    box-shadow: none;
    color: white;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    z-index: 10;
    overflow-y: auto;
}

.sidebar-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 999;
    cursor: pointer;
    color: white;
    font-size: 22px;
}

.sidebar.collapsed {
    width: 0;
    overflow: hidden;
}

.main-content {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed~.main-content {
    margin-left: 0;
}

.sidebar .image-text {
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

.sidebar img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.sidebar .menu-links {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.sidebar .menu-links li {
    margin: 0;
}

.sidebar .menu-links li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    margin: 4px 10px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    border-radius: 8px;
    transition: 0.3s;
    position: relative;
}

.sidebar .menu-links li a i {
    margin-right: 12px;
    font-size: 18px;
}

.sidebar .menu-links li a:hover,
.sidebar .menu-links li a.active {
    background: rgba(139,92,246,.15);
    color: #fff;
    transform: translateX(5px);
}

.sidebar .menu-links li a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 4px;
    background-color: #FFD700;
    border-radius: 5px;
    opacity: 0;
    transition: 0.3s ease-in-out;
}

.sidebar .menu-links li a:hover::before,
.sidebar .menu-links li a.active::before {
    opacity: 1;
}

/* ========== Responsive Sidebar ========== */
@media (max-width: 900px) {
    .sidebar {
        width: 70px;
    }

    .sidebar .image-text,
    .sidebar .menu-links li a span {
        display: none;
    }

    .sidebar .menu-links li a {
        justify-content: center;
        padding: 12px;
    }

    .main-content {
        margin-left: 70px;
    }
}

@media (max-width: 600px) {
    .sidebar {
        left: -250px;
    }

    .sidebar.open {
        left: 0;
    }
}

/* END */
/* ========== Responsive Design for Mobile ========== */
@media screen and (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    form {
        padding: 15px;
    }

    h1,
    h2 {
        font-size: 22px;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }
.file-info{

display:flex;
flex-wrap:wrap;

gap:10px;

margin-top:6px;

font-size:12px;

color:#94a3b8;

}

.file-number{

color:#facc15;
font-weight:700;

}
    .file-type,
    .created-by,
    .file-time,
    .file-status {
        margin-top: 5px;
    }
}

hr {
    border: none;
    height: 4px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2), #5E8298, rgba(0, 0, 0, 0.2));
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    margin: 20px 0;
}

.log-entry {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--primary-color);
    color: var(--text-muted);
}

/* Glassmorphic Form Styling */
.form-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.form-wrapper.show {
    max-height: 1000px;
    opacity: 1;
    margin-top: 20px;
}

.glass-form {
    background: rgba(2,6,23,0.75);
        border: 1px solid var(--border-color);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px 12px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 12px;
    background: transparent;
    outline: none;
    transition: 0.3s ease;
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    pointer-events: none;
    transition: 0.3s ease;
    background: white;
    padding: 0 5px;
}

.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label,
.input-group select:focus+label,
.input-group select:not([value=""])+label {
    top: -8px;
    font-size: 12px;
    color: var(--primary-color);
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 6px rgba(170, 140, 164, 0.3);
}

.glass-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 12px;
    border: none;
    background: var(--primary-color);
    color: white;
    transition: background 0.3s;
}

.glass-form .btn:hover {
    background: var(--secondary-color);
}

.plus-icon {
    display: inline-block;
    transition: transform 0.4s ease-in-out;
}

.plus-icon.rotate {
    transform: rotate(45deg);
    /* or 135deg for ✖️ feel */
}

.wave-hand {
    display: inline-block;
    animation: wave-hand-animation 2s infinite;
    transform-origin: 70% 70%;
    /* pivot from wrist */
    font-size: 24px;
    animation-delay: 0.3s;
}

.wave-wrapper {
    font-size: 25px;
}

@keyframes wave-hand-animation {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}
.footer-credit {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  background: rgba(2,6,23,.6);
 backdrop-filter: blur(10px);
  color: var(--text-muted);
  font-size: 12px;          /* smaller, sleeker font */
  padding: 4px 0 5px 0;     /* thinner line height */
  border-top: 1px solid var(--border-color);
  font-weight: 500;
  z-index: 999;
  letter-spacing: 0.3px;
}

.footer-credit a {
  color: #E1306C;
  text-decoration: none;
  margin-left: 5px;
  font-size: 14px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-credit a:hover {
  color: #b9134f;
  transform: scale(1.15);
}

.glow-heart {
  color: #e63946;
  animation: smoothGlow 2s infinite ease-in-out alternate;
  text-shadow: 0 0 6px rgba(255, 0, 0, 0.5);
}

@keyframes smoothGlow {
  0% {
    text-shadow: 0 0 4px rgba(255, 0, 0, 0.3),
                 0 0 8px rgba(255, 0, 0, 0.5),
                 0 0 16px rgba(255, 0, 0, 0.6);
  }
  100% {
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.6),
                 0 0 18px rgba(255, 0, 0, 0.8),
                 0 0 30px rgba(255, 0, 0, 1);
  }
}
/* 🎅 Santa Claus Decoration */
/*.santa-claus {*/
/*  position: fixed;*/
/*  right: 40px;*/
/*  bottom: 35px;*/

/*  width: 220px;*/
/*  height: 600px;*/

/*  background-image: url("/static/wallpapers/santaa.png");*/
/*  background-size: contain;*/
/*  background-repeat: no-repeat;*/
/*  background-position: bottom center; */

/*  pointer-events: none; */
/*  z-index: 5;*/
/*  opacity: 0.95;*/
/*}*/
/*@media (max-width: 600px) {*/
/*  .santa-claus {*/
/*    width: 150px;*/
/*    height: 180px;*/
/*    right: 20px;*/
/*    bottom: 20px;*/
/*  }*/
/*}*/
/* 🎅 Side Santa Decoration */
/*.santa-claus-side {*/
/*  position: fixed;*/
/*  left: 20px;              */
/*  bottom: 35px;*/

/* width: 220px;*/
/*  height: 600px;;*/

/*  background-image: url("/static/wallpapers/santa-claus-1031820.png");*/
/*  background-size: contain;*/
/*  background-repeat: no-repeat;*/
/*  background-position: bottom center;*/

/*  pointer-events: none;*/
/*  z-index: 4;*/
/*  opacity: 0.9;*/
/*}*/

/* Mobile pe side santa hide */
/*@media (max-width: 768px) {*/
/*  .santa-claus-side {*/
/*    display: none;*/
/*  }*/
/*}*/

/* ❄️ Snow container */
.snow-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

/* ❄️ Individual snowflake */
.snowflake {
  position: absolute;
  top: -10px;
  color: white;
  font-size: 12px;
  opacity: 0.8;
  animation: fall linear infinite;
}

@keyframes fall {
  to {
    transform: translateY(110vh);
  }
}
/* 🚀 Back to Top Button */
#backToTop {
  position: fixed;
  right: 30px;
  bottom: 110px; /* santa se upar rahe */

  width: 52px;
  height: 52px;

  background: linear-gradient(135deg,var(--primary-color),var(--secondary-color));
  backdrop-filter: blur(6px);

  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
color:#020617;
  transition: all 0.4s ease;
  z-index: 10;
}

/* show button */
#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* hover animation */
#backToTop:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 14px 30px rgba(0,0,0,0.3);
}
/* 💡 Thought of the Day Popup */
.thought-popup{
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

.thought-card{
  max-width: 420px;
  width: 90%;
  padding: 26px 24px;
  background: linear-gradient(135deg,#020617,#0f172a);
  border-radius: 20px;
  text-align: center;
  color: #e5e7eb;

  border: 1px solid rgba(56,189,248,.6);
  box-shadow:
    0 0 20px rgba(56,189,248,.6),
    0 0 50px rgba(56,189,248,.35);

  animation: popupZoom .4s ease;
}

.thought-badge{
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56,189,248,.15);
  color: #7dd3fc;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

#quoteText{
  font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 22px;
  text-shadow: 0 0 8px rgba(125,211,252,.4);
}

.thought-card button{
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(135deg,#38bdf8,#6366f1);
  color: #020617;
}

.thought-close{
  position: absolute;
  top: 12px;
  right: 14px;
  cursor: pointer;
  font-size: 18px;
  opacity: .7;
}
.thought-close:hover{
  opacity: 1;
}

@keyframes popupZoom{
  from{ opacity:0; transform:scale(.9); }
  to{ opacity:1; transform:scale(1); }
}
.hidden-badge {
  background: linear-gradient(135deg,#ef4444,#dc2626);
  color: #fff;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 20px;
  margin-left: 6px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}