/* Font Definition */
@font-face {
  font-family: 'MySolaimanLipi';
  src: url('../font/SolaimanLipi_22-02-2012.woff2') format('woff2'),
       url('../font/SolaimanLipi_22-02-2012.woff') format('woff'),
       url('../font/SolaimanLipi_22-02-2012.ttf') format('truetype');
}

/* Global Reset & Box Sizing */
* {
  box-sizing: border-box;
}

body {
  background-color: #eef2f7;
  font-family: MySolaimanLipi, Verdana, Geneva, sans-serif;
  font-size: 16px;
  margin: 0;
  padding: 0;
}

@media print {
  .dontPrint {
    display: none !important;
  }
}

/* Main Container */
.main {
  width: 94%;
  max-width: 1400px;
  margin: 15px auto;
  text-align: left;
  background: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
  display: block;
  padding: 15px;
  border-radius: 12px;
}

/* --- Header Section --- */
.head_section {
  width: 100%;
  margin-bottom: 0px; /* গ্যাপ আরো কমানো হয়েছে */
}

.ins_name {
  width: 100%;
  border-radius: 12px;
  color: #ffffff;
  font-size: 30px;
  padding: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* বাম দিকে গাঢ় নীল, ডান দিকে হালকা হলুদ */
  background: linear-gradient(to right, #051526 0%, #1a4c8a 40%, #f9f59d 100%);
  box-shadow: 0 10px 25px rgba(0, 60, 180, 0.4);
  position: relative;
  overflow: hidden;
}

.ins_name::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                   radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 40%);
  pointer-events: none;
}

.header-logo {
  flex: 0 0 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.header-logo img {
  height: 110px;
  width: 110px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  object-fit: cover;
  background: #fff; /* লোগোর পেছনে সাদা পটভূমি */
}

.header-title {
  flex-grow: 1;
  text-align: left;
  z-index: 1;
}

.header-title h1 {
  margin: 0;
  font-size: 42px;
  letter-spacing: 2px;
  /* নীল থেকে হলুদ গ্রেডিয়েন্ট টেক্সট */
  background: linear-gradient(to right, #ffffff, #ffe066); 
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
}

.sub-title {
  font-size: 18px;
  color: #ffffff;
  margin-top: 5px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.sub-title span {
  color: #00ffea;
}

/* Right Side Frame */
.header-right-box {
  flex: 0 0 450px;
  /* হলুদ পটভূমির উপর লেখা পড়ার জন্য গাঢ় নীল ব্যাকগ্রাউন্ড */
  background: rgba(5, 21, 38, 0.85); 
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 10px 15px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 1;
}

.notice-head {
  font-size: 18px;
  color: #ffe066; /* হলুদ রং এর হেডিং */
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 5px;
  margin-bottom: 5px;
}

.notice-body {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.4;
}

/* --- Navigation Menu --- */
.menu-wrapper {
  margin: 0px 0; /* গ্যাপ আরো কমানো হয়েছে */
}

#nav {
  display: block;
  width: 100%;
  padding: 0;
  background: linear-gradient(to right, #1e293b, #0f172a); 
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0, .3);
  position: relative;
  height: auto;
  z-index: 1000;
  list-style: none;
}

#nav::after {
  content: "";
  clear: both;
  display: table;
}

#nav li {
  margin: 0;
  float: left;
  position: relative;
  list-style: none;
}

#nav a {
  font-weight: bold;
  font-size: 16px;
  color: #e2e8f0;
  text-decoration: none;
  display: block;
  padding: 12px 18px;
  text-shadow: 1px 1px 2px rgba(0,0,0, 0.8);
  transition: all 0.3s ease;
}

#nav .current a, #nav li:hover > a {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Sublevels */
#nav ul li:hover a, #nav li:hover li a {
  background: none;
  color: #cbd5e1;
  border: none;
  text-shadow: none;
}

#nav ul li a:hover {
  background: #2563eb;
  color: #ffffff;
}

/* Drop down Logic */
#nav li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#nav ul {
  opacity: 0;
  visibility: hidden;
  padding: 8px;
  width: 220px;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0, .5);
  transition: all .3s ease;
  list-style: none;
  z-index: 1001;
  transform: translateY(10px);
}

#nav ul li {
  float: none;
  width: 100%;
  margin: 1px 0;
}

#nav ul a {
  font-weight: normal;
  padding: 10px 15px;
  font-size: 15px;
  border-radius: 4px;
}

/* Sub-submenu (Level 2) */
#nav ul ul {
  left: 215px;
  top: 0;
  background: #0f172a;
}

/* --- Body / Content Section --- */
.body_section {
  width: 100%;
  display: block;
  margin-top: 2px; /* গ্যাপ আরো কমানো হয়েছে */
}

.body_right {
  width: 100%;
  border-radius: 10px;
  background: #FDF6EA;
  padding: 2px;
  min-height: 960px;
  box-shadow: 0 2px 5px rgba(0,0,0, .2);
  float: none;
}

#content-container {
  width: 100%;
  height: 900px;
}

/* --- Storage Panel - Graphical & Compact --- */
.storage-panel {
  width: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
  border-top: 4px solid #2563eb;
  padding: 10px 20px;
  margin-top: 2px; /* গ্যাপ আরো কমানো হয়েছে */
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
}

.storage-panel::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
}

.storage-title {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  background: linear-gradient(90deg, #1e293b, #334155);
  color: #38bdf8;
  padding: 6px;
  border-radius: 6px;
  margin-bottom: 8px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.storage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.storage-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.storage-grid li {
  margin: 4px 0;
}

.storage-grid a {
  display: block;
  padding: 6px 8px;
  text-decoration: none;
  color: #334155;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  transition: 0.3s;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.storage-grid a:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  padding-left: 12px;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.3);
}

/* --- Footer Section --- */
.footer_section {
  width: 100%;
  background: #1e293b;
  border-top: 4px solid #38bdf8;
  margin-top: 2px; /* গ্যাপ আরো কমানো হয়েছে */
  padding: 15px;
  color: white;
  border-radius: 0 0 8px 8px;
}

.footer {
  width: 100%;
  color: white;
}

.footer td {
  color: #cbd5e1;
  padding: 5px 10px;
}

/* --- Modal --- */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: linear-gradient(135deg, #3398ff, #0066cc);
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 350px;
  text-align: center;
  color: white;
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content h2 { margin-bottom: 15px; }
.modal-content input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  margin-bottom: 15px;
  font-size: 15px;
}
.modal-content button {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  background-color: #ffffff;
  color: #0066cc;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.modal-content button:hover { background-color: #e6e6e6; }
.close-btn {
  float: right;
  font-size: 22px;
  cursor: pointer;
}
#errorMsg {
  margin-top: 10px;
  color: #ffdddd;
  font-size: 14px;
}

@keyframes fadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .ins_name {
    flex-wrap: wrap;
  }
  .header-title h1 { font-size: 32px; }
  .header-right-box { 
      flex: 0 0 220px;
      padding: 8px; 
  }
}

@media (max-width: 768px) {
  .main {
    width: 100%;
    padding: 8px;
    margin: 0;
    border-radius: 0;
  }
  
  /* Header Responsive */
  .ins_name {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }
  .header-logo { margin-bottom: 10px; }
  .header-title { margin-bottom: 15px; }
  .header-title h1 { font-size: 28px; }
  
  /* Right box in mobile */
  .header-right-box {
    width: 100%;
    flex: none;
    margin-top: 5px;
    background: rgba(5, 21, 38, 0.9);
  }
  .mobile-hide { display: none; }

  /* Menu Responsive */
  #nav {
    padding: 0;
    position: relative;
  }
  #nav li {
    float: none;
    width: 100%;
  }
  #nav a {
    padding: 12px 15px;
    border-radius: 0;
    border-bottom: 1px solid #334155;
  }
  #nav ul {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    background: #0f172a;
    border: none;
    box-shadow: none;
    padding-left: 20px;
    display: none;
    transition: none;
    transform: none;
  }
  #nav li:hover > ul { display: block; }
  #nav ul ul { background: #020617; left: 0; padding-left: 30px; }
  #nav ul a { font-size: 14px; }

  /* Storage Grid Responsive */
  .storage-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}