body {
  margin: 0;
  font-family:'Noto Naskh Arabic', serif;
  background: #9DDDA9;
  color: #404040;
}

/* mian1 container */
#mian1 {
  width: 100%;
  margin: 0 auto;
}

/* ============================================================
   1) ----------- HEADER 1 (اصلي مینیو) 100% FULL WIDTH --------
   ============================================================ */
#header{
  direction: rtl;
  background: #808080;
  height: 58px;
  border-bottom: 1px solid #FFA500;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 0 10px;
  box-sizing: border-box;
}

/* wrapper so menu stays centered */
#header ul#new-nav{
  background: #303335;
  width: 100%;
  max-width: 1900px;

  display: flex;
  justify-content: center;
  gap: 6px;

  list-style: none;
  padding: 0;
  margin: 0;
}

/* menu items */
#new-nav li {
  position: relative;
  height: 44px;
  background-color: rgba(0,0,0,0.05);
  border: 2px solid #000;
  border-radius: 5px 5px 0 0;
  border-bottom-color: #1f2326;

  background-image: linear-gradient(to bottom,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0)
  );
	width: 200px;
	text-align:center;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 2px #262a2e,
    0 3px #1f2326,
    0 4px 3px rgba(0,0,0,0.2);

  cursor: pointer;
  color: #ccc;
}

/* links with auto font-size on small screens */
#new-nav li a {
  display: block;
  padding: 0px;
  line-height: 44px;
  font-size: clamp(12px, 1.5vw, 17px);
  font-weight: bold;
  color: #FFA500;
  text-decoration: none;
}

#new-nav li:hover {
  color: #FFA500;
  text-shadow: 0 1px black, 0 0 20px rgba(255,255,255,0.5);
}

#new-nav li.active {
  margin-top: 5px;
  height: 43px;
  color: #FF0000;
  background: #808080;
  background-image: linear-gradient(to bottom,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0)
  );
}

.active1 { color: #FFA500; }

/* ============================================================
   2) ----------- HEADER 2 (دوهم مینیو) FULL WIDTH -------------
   ============================================================ */
.header2{
  direction: rtl;
  background: #808080;
  height: 60px;
  border-bottom: 2px solid #FFA500;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 0 10px;
  box-sizing: border-box;
}

.header2 ul#new-navfff{
  background: #303335;
  width: 100%;
  max-width: 1900px;

  display: flex;
  justify-content: center;
  gap: 6px;

  list-style: none;
  padding: 0;
  margin: 0;
}

/* second menu items */
#new-navfff li {
  position: relative;
  height: 44px;
  background-color: rgba(0,0,0,0.05);
  border: 2px solid #000;
  border-radius:5px 5px 0 0;
  border-bottom-color: #1f2326;

  background-image: linear-gradient(to bottom,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0)
  );
	width: 200px;
	text-align:center;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 2px #262a2e,
    0 3px #1f2326,
    0 4px 3px rgba(0,0,0,0.2);

  cursor: pointer;
  color: #ccc;
}

#new-navfff li a {
  display: block;
  padding: 0px;
  line-height: 44px;
  font-size: clamp(12px, 1.5vw, 17px);
  font-weight: bold;
  color: #FFA500;
  text-decoration: none;
}

#new-navfff li:hover {
  color: #FFA500;
  text-shadow: 0 1px black, 0 0 20px rgba(255,255,255,0.5);
}

#new-navfff li.active {
  margin-top:5px;
  height:43px;
  color:#FFA500;
  background:#808080;
}

/* ------------------ Main Style ------------------ */
.text-bounce {
    font-size: 20px;
    direction: rtl;
    padding: 10px 0px;
    text-align: center;
    font-family: 'Noto Nastaliq Urdu', serif;

    animation: 
        bounceIn 10.8s ease-out forwards,
        colorBlink 1.6s infinite 3.5s;
}

/* ------------------ Responsive Font Sizes ------------------ */
@media (max-width: 992px) {
    .text-bounce { font-size: 10px; }
}

@media (max-width: 768px) {
    .text-bounce { font-size: 7px; }
}

@media (max-width: 480px) {
    .text-bounce { font-size: 5px; }
}

/* ------------------ Animations ------------------ */
@keyframes bounceIn {
    0%   { transform: scale(0.5); opacity: 0; }
    60%  { transform: scale(1.05); opacity: 1; }
    80%  { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes colorBlink {
    0%   { color: black; }
    50%  { color: #0a7dd3; }
    100% { color: black; }
}







#notify{
    width: auto;
    height: 50px;
    margin-top:0px;
    border-radius: 8px;
    background-color: #990;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Arial Black', Gadget, sans-serif;
    color:#000099;
    text-shadow:1px 1px 1px #FF6600;
    display: none;
    border: 3px inset #999;
}

.voice {
    background-image: url(../image/l5S4LZ2.png);
    background-position: center;
    background-size: cover;
    width: 25px;
    height: 25px;
    transition: all 0.2s ease-in-out; /* نرم حرکت */
}

/* کله چې کرسر ورشي */
.voice:hover {
    cursor: pointer;
    background-color: #A1FF00;
    transform: scale(1.2); /* غټ شي */
}

/* کله چې کلیک شي */
.voice.active {
    background-color: #FFD700; /* انتخاب شوي حالت لپاره رنګ */
    transform: scale(1.3);    /* نور هم غټ پاتې شي */
}

.edit_class span{
    display: none;
}
.edit_class:hover span{
    display: inline;
    position: absolute;
    font-size: 20px; font-weight: bold; 
	font-family: 'Noto Nastaliq Urdu';
	color: #000080;
	background: linear-gradient(to right, #82FF00, #00FFFC);
	text-shadow:1px 1px 1px #FF6600;
	border-radius: 5px;
    font-size: 15px;
    padding: 5px;
    width: auto;
    margin: 5px;
    margin-top: 20px;
    float: right;
    border: 1px outset #FF00FF;
}
.select{
	width: 258px;
	height: 49px;
	border-radius: 8px;
	border: 3px inset #999;
	text-align: center;
	font-size: 20px;
	font-family: 'Arial Black', Gadget, sans-serif;
	color:#000099;
	font-weight: bold;
	text-shadow:1px 1px 1px #FF6600;
	background-color: #d4d0cb;
}
.autocomplete-list {
    border: 1px solid #ccc;
    width: 14.5%;
    border-radius: 3px;
    max-height: 400px;
    overflow-y: auto;
    position: absolute;
    background: white;
    z-index: 1000;
    background-color: #FF8C00;
	text-align:center;
    font-weight: bold;
    font-size: clamp(12px, 1.5vw, 22px);
}
.autocomplete-item {
    padding: 8px;
    border-bottom: 1px solid;
    cursor: pointer;
}
.autocomplete-item:hover, .autocomplete-item.active {
    background: #f0f0f0;
    color: #0000FF;
}
#submit:hover{
    cursor: pointer;
    background-color: #00FFFF;
    transition: background-color 0.5s ease;
}
#submit:active{
	cursor: pointer;
    background-color: #6C7D00;
    transition: background-color 0.3s ease;
}
#submit:focus {
	cursor: pointer;
    background-color: #00FF90;
    transition: background-color 0.3s ease;
}

#searchButton{
	 background-color: #9DDDA9;
}
#searchButton:hover{
    cursor: pointer;
    background-color: #00FFFF;
    transition: background-color 0.5s ease;
}
#searchButton:active{
	cursor: pointer;
    background-color: #6C7D00;
    transition: background-color 0.3s ease;
}
#searchButton:focus {
	cursor: pointer;
    background-color: #00FF90;
    transition: background-color 0.3s ease;
}

div.gu{
    display: flex;
    justify-content: center; /* ښی + چپ سنټر */
    padding: 0px;
    margin: 0;    /* پورته مارجن + افقی سنټر */
    width: 99% ;
    height: calc(100vh - 130px); /* د مینیو لپاره ځای پرېږده */
    //border: 5px outset;
    border-color: orange;
    margin-left: 0.5%;
    
}
#gud{
	display: flex;
    justify-content: center; /* ښی + چپ سنټر */
    padding: 0px;
    margin: 0;    /* پورته مارجن + افقی سنټر */
    width: 99% ;
}
.tabu{
	font-size: 30px;
	font-family: 'Arial Black', Gadget, sans-serif;
	color:#000099;
	text-shadow:1px 1px 1px #FF6600;
	font-weight: bold;
	border: 1px solid;
	border-radius: 8px;
	border: 3px inset #999;
}
input{
    border: 3px inset pink;
    height: 40px;
    text-align: center;
    font-family:'Noto Naskh Arabic', serif;
    font-weight: bold;
    width: 100%;
    font-size: clamp(12px, 1.5vw, 22px);
}
td{
    height: 40px;
    border: 2px outset yellowgreen;
}
th{
    height: 40px;
    border: 2px outset palegoldenrod;
    
}
button{

}
.name{
    text-align: right;
    width: 30%;
	font-size:18px;
	padding-right:10px;
}
.inp{
    background-color: #E5E4E2;
   
}
.t11{
	width:100%;
	text-align:center;
}
.inpu{
    background-color: #FFFFCC;
	text-align:center;
}
#gudwal{
	min-height: 50px;
	max-height: auto ; /* د جدول لوړوالی محدودول */
    overflow-y: auto;  /* عمودي سکرول بار */
    border: 1px solid #ccc; /* یو لږ سرحد د ښکلا لپاره */
	border-collapse: collapse;
	
}
#gudwal table{
	width:100%;
	border-collapse: collapse;
}
#edit_class th{
	background-color: #065485;
    color: #ffffff;
    text-align: center;
}
#edit_class td{
	text-align: center;
}
#edit_class tr:nth-child(even){
    background-color: #fffccc;
}
/* جدول لپاره کانټینر */
#gudwal {
    margin: 20px auto;          /* د جدول شاوخوا فاصله */
    padding: 10px;
    max-width: 95%;             /* د سکرین 95٪ پورې پراخوالی */
    max-height: 40vh;           /* د سکرین 80٪ لوړوالی */
    overflow-y: auto;           /* عمودي سکرول که ضرورت وي */
    border: 1px solid #ccc;     /* سرحد */
    border-radius: 8px;         /* نرمې څنډې */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}