*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background-color:#f7f7f7;
  color: #333;
  line-height: 1.6;
  width: 100%;
}
html {
    &::-webkit-scrollbar {
        width: 8px;     }
    &::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.03); 
        border-radius: 10px;    }
    &::-webkit-scrollbar-thumb {
        background: #cbd5e1; 
        border-radius: 10px;
        transition: background 0.2s ease; }

    &::-webkit-scrollbar-thumb:hover {
        background: #94a3b8; }

    /* --- Custom Scrollbar Styling (Firefox) --- */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;}
    
.nav {
padding: 10px;
display: flex;
justify-content: space-between;
background:#fff;
color: #222;
}
.nav img {
  height: 30px;
}
#menu-link {
  z-index: 3;
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  background:#334866;
}

#menu-link a {
  display: block;
  padding: 7px 14px;
  color: azure;
  text-decoration: none;
}

.btn-close{
margin: 10px;
cursor: pointer;
}
.f-r{float:right;}
.pgn{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 7px;
  gap: 5px;
}
.pgn a{
  padding: 1px 7px;
  background: #fff;
  border-radius: 5px;
  color: #111;
  border: 1px solid #444;
}
.pgn a.active {
  background: #4f46e5; 
  color: #ffffff; 
}
aside{
  padding:5px;
  margin:auto;
}
section {
margin:5px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 5px;
}

.box {
  background: white;
  padding:5px;
  border-radius: 8px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  margin: 5px auto;
}
.card {
  background:#fff;
  padding: 1.2rem;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  border-radius: 1.5rem;
  transition: 0.3s;
}
.flag{
padding: 1px 6px;
border-radius:10px;
background:#6EDFEB;
color:#000;
font-size: clamp(0.8rem, 0.71rem + 0.45vw, 1rem);
}
.col-row{
display: flex;
align-items: flex-end; 
gap:8px;
box-sizing: border-box;
}
.col-child{
flex: 1; 
display: flex;
flex-direction: column;
text-align: left;
}
.row{
  display: flex;
  justify-content: center;
  align-items: center;
  gap:10px;
 }
 .row-sb{
  display: flex;
  justify-content:space-between;
  align-items: center;
  gap: 10px;
  margin: auto;
 }
 .row-l{
  display: flex;
  justify-content:flex-start;
  align-items: center;
  gap: 7px;
 }
.hero h1 {
  font-weight: 800;
  margin-bottom: 1rem;
}
.hero p {
  color: #666;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
}
header{
  width: 100%;
  min-height:250px; 
  background: url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1200&q=80');
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat;
  overflow: hidden;
}
label {
  font-size: 15px;
  display: block;
  float: left;
  color: #000;
  margin: 8px 0px 0px 3px;
}
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding:5px 8px;
  border:0.5px solid #343363;
  font-size: 14px;
  border-radius:5px;
  outline: none;
  color:#343363;
}
input.field, select.field{
padding:8px 12px;
border-radius:15px;
border: 1px solid #345BA8;
margin: 0; 
}

button, 
input[type="submit"], 
.url {
height: 28px;                                       
border-radius: 6px;
cursor: pointer; 
box-sizing: border-box;            
background: #345BA8;
color: white;
padding: 4px 8px;
font-size: 14px;        
border: none;
outline: none;
flex-shrink: 0;
white-space: nowrap;
display: inline-flex;             
align-items: center;
justify-content: center;          
}
.btn-pm{
padding:8px 12px;
background:#345BA8;
border-radius:15px;
}

button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* Error Messages & Alerts */
.alertBox {
  color: #d9534f;
  font-size: 13px;
  margin: 5px;
  font-weight: bold;
}

.table-box {
margin: 7px 0;
width: 100%;
overflow-x: auto;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
-webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse !important;
  width: 100%;
  margin-bottom: 10px;
  text-align: left;
}

td {
padding:2px 4px;
border: 1px solid #555;
color: #334155;
white-space: nowrap;
}
td.long-text {
white-space: normal;
word-break: normal;
overflow-wrap: break-word;
max-width:220px;
}
th {
  background-color:#345BA8;
  color: #fff;
  font-weight:bold;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 2px 4px;
  border: 1px solid #fff;
}

table tr:hover td {
  background-color: #f1f5f9;
}
table select{
  padding:2px;
  margin: 0;
}
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(5px);
display: none;
z-index: 7;
}

.pop {
position: fixed; 
top: 50%;
left: 50%;
width: calc(100% - 24px);
max-width: 600px;
transform: translate(-50%, -50%);
padding: 10px;
background: #ffffff;
border-radius: 8px;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
z-index: 9; 
}
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2rem 5%;
  text-align: center;
}

footer a {
  margin: 10px;
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
}

footer p {
  margin-top: 15px;
  color: azure;
}

footer h2 {
  color: blue;
}
hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 10px 0;
}
a {text-decoration: none;cursor:pointer;}
h1 {  font-size: 26px;}
/* Helper Utility Classes */
.my { margin: 10px auto; }
.mxy { margin: 10px; }
.py { padding: 10px 0; }
.pxy { padding: 10px; }
.w-4{width:400px; }
.mw-6 { max-width: 600px; }
.mw-8 { max-width: 800px; }
.hidden { display: none !important; }
.hider { display: none; }
.muted{ color:#555;font-style: italic;font-size:14px;}
.tc {text-align: center;}
.mo{cursor: pointer;}

.bd{border: 1px solid skyblue;}
.br{border-radius:10px;}
.bs{box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;}
.wc{color:#fff;}
.bc{color: #333;}
.y1{background:#F54927;}
.y2{background:#29BA31;}
.y3{background:#334866;}
.x1{background:#DBFEFF;}
.x2{background:#eafff1;}
.x3{background:#fff4df;}
.x4{background:#ffeaea;}
.x5{background:#DCF2C2;}
.x6{background:#9C3D81;}
.x7{background:#597A2B;}
.x8{background:#226B80;}
.x9{background:#A1675D;}
/* ==========================================
   8. MEDIA QUERIES
   ========================================== */
@media screen and (max-width:768px) {
 .grid {
grid-template-columns: repeat(2, 1fr); 
gap: 10px; 
}
.fr1 {
grid-template-columns: 1fr; 
}
.col-row {
flex-wrap: wrap;
}
.col-row input[type="text"] {
width: 100%;   
flex: 1 1 100%;
max-width: 100%; 
}
.row{
width: 100%;
}

}