/* ======================================================
   RESET
====================================================== */
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body{
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg,#1e3c72,#2a5298,#6a11cb);
  font-family:'Inter',sans-serif;
  background-size: 400% 400%;
  animation: bgMove 12s ease infinite;
  color: #fff;
}

/* ======================================================
   FLOATING BACKGROUND ICONS
====================================================== */
body::before{
  content:"💵 💶 💷 💴 💸 💲";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 80px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  animation: floatIcons 20s linear infinite;
}

@keyframes floatIcons{
  0%{ transform: translateY(0); }
  100%{ transform: translateY(-100vh); }
}

/* ======================================================
   IMAGE
====================================================== */
img{
  max-width: 100%;
  height: auto;
}

/* ======================================================
   HEADER
====================================================== */
.header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  flex-wrap: nowrap;
}

.logo{
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img{
  width: 40px;
}

/* (your override kept) */
.logo img{
  width: 60px;
}

.site-name{
  font-size: 28px;
  font-weight: 700;
  color: #00eaff;
}

.nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a{
  margin: 5px 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: 0.3s;
}

.nav a:hover{
  color: #00eaff;
  text-shadow: 0 0 10px #00eaff;
}

/* ======================================================
   TITLE
====================================================== */
.title{
  text-align: center;
  margin: 0 !important;
  padding: 2px 0 !important;
}

.title h1{
  font-size: 32px;
  margin: 0 !important;
  padding: 5px 0 !important;
  line-height: 1.3;
}

/* mobile title override */
@media(max-width:480px){
  .title h1{
    font-size: 20px;
  }
}

/* ======================================================
   LAYOUT GRID
====================================================== */
.main-layout{
  display: grid;
  grid-template-columns: 240px 1fr 340px;
  gap: 35px;
  max-width: 1600px;
  margin: auto;
  padding: 20px;
  align-items: start;
}

/* fallback responsive duplicates kept (SAFE) */
@media(max-width:768px){
  .main-layout{
    display: flex;
    flex-direction: column;
  }

  .sidebar,
  .rightbar{
    position: relative !important;
    top: auto;
  }

  .center{
    justify-content: center;
  }
}

@media(max-width:480px){
  .main-layout{
    flex-direction: column;
    gap: 20px;
  }
}

/* ======================================================
   SIDEBARS
====================================================== */
.sidebar{
  position: relative;
  background: transparent;
}

.side-box{
  position: sticky;
  top: 10px;
}

.rightbar{
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 340px;
}

/* ======================================================
   CENTER BOX
====================================================== */
.center{
  display: flex;
  justify-content: center;
  align-items: center;
}

.box{
  width: 100%;
  max-width: 760px;
  padding: 35px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);

  transition: 0.3s;
  animation: fadeUp 0.8s ease-out;
}

/* override preserved */
.box{
  max-width: 750px;
}

/* ======================================================
   INFO BOX
====================================================== */
.info-box{
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 20px;
}

/* ======================================================
   CONTENT BOX
====================================================== */
.content-box{
  background: rgba(255,255,255,0.08);
  padding: 30px;
  border-radius: 15px;
  border-left: 4px solid #00eaff;
  backdrop-filter: blur(15px);
}

/* ======================================================
   INPUTS
====================================================== */
input, select{
  width: 100%;
  padding: 14px;
  margin: 8px 0;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.3);

  background: rgba(0,0,0,0.4);
  color: #fff;

  font-size: 15px;
  font-weight: 600;
  outline: none;
}

input:focus,
select:focus{
  background: rgba(0,255,255,0.15);
  box-shadow: 0 0 10px #00eaff;
}

/* ======================================================
   BUTTONS
====================================================== */
.btn-group{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

button{
  flex: 1;
  padding: 16px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

button:hover{
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0,255,255,0.5);
}

.convert{
  background: linear-gradient(45deg,#00c6ff,#0072ff);
  color: #fff;
}

.clear{
  background: linear-gradient(45deg,#ff4d4d,#ff0000);
  color: #fff;
}

.total{
  background: linear-gradient(45deg,#28a745,#00ff88);
  color: #000;
}

/* ======================================================
   RESULT
====================================================== */
.result{
  margin-top: 15px;
  padding: 15px;
  font-size: 22px;
  text-align: center;
  background: rgba(0,255,200,0.15);
  color: #00ffcc;
  box-shadow: 0 0 20px rgba(0,255,200,0.3);
}

/* ======================================================
   FOOTER
====================================================== */
.footer-box{
  width: 100%;
  max-width: 1000px;
  margin: auto;
  padding: 25px;
  border-radius: 15px;
  text-align: center;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(15px);
}

/* ======================================================
   ANIMATIONS
====================================================== */
@keyframes fadeUp{
  from{ opacity:0; transform: translateY(20px); }
  to{ opacity:1; transform: translateY(0); }
}

/* ======================================================
   MOBILE IMPROVEMENTS
====================================================== */
@media(max-width:480px){
  button{
    font-size: 18px;
    padding: 18px;
  }

  .box{
    padding: 20px;
  }
}

/* ======================================================
   LIGHT MODE
====================================================== */
.light{
background:#f5f7fa;
color:#222;
}

.light .box,
.light .info-box,
.light .content-box{
  background: #f5f5f5 !important;
  color: #000 !important;
}

/* ================= MOBILE HEADER FIX ================= */
@media(max-width:768px){

  .header{
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .logo{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav{
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav a{
    font-size: 16px;
    margin: 6px 10px;
  }
}

/* ================= MOBILE ORDER FIX ================= */
@media(max-width:768px){

  .main-layout{
    display: flex;
    flex-direction: column;
  }

  .center{
    order: 1;   /* calculator upar */
  }

  .sidebar{
    order: 2;
  }

  .rightbar{
    order: 3;
  }
}

@media(max-width:768px){
  .rightbar{
    width: 100%;
  }
}

/* ================= PREMIUM BLOG HEADINGS ================= */

.content-box h2{
  position: relative;
  color: #00eaff;
  font-size: 26px;
  margin-bottom: 15px;
  display: inline-block;
  cursor: pointer;
  transition: 0.3s;
}

/* underline effect */
.content-box h2::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg,#00eaff,#00ff88);
  transition: 0.4s;
  border-radius: 5px;
}

/* hover effect */
.content-box h2:hover{
  color: #00ffcc;
  text-shadow: 0 0 10px rgba(0,255,255,0.7);
}

.content-box h2:hover::after{
  width: 100%;
}

/* ===== SELECT DROPDOWN COLOR FIX ===== */

/* Selected value (jo box me dikh raha hai) */
select{
  color: #00ffcc;   /* apni pasand ka color */
}

/* Dropdown ke andar options */
select option{
  color: #000;      /* black text */
  background: #fff; /* white background */
}

/* ===== LATEST BLOG TITLES FIX ===== */

/* Right sidebar / latest blogs */
.rightbar h3,
.info-box h3,
.rightbar a,
.info-box a{
  color: #00eaff !important;   /* color change */
  font-weight: bold;           /* bold */
}

/* hover effect (optional) */
.rightbar a:hover,
.info-box a:hover{
  color: #00ffcc;
}

.box,
.content-box,
.info-box{
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    border:1px solid rgba(255,255,255,0.15);
    border-radius:20px;
    box-shadow:0 8px 30px rgba(0,0,0,.3);
}

.convert,
.total{
    background: linear-gradient(45deg,#00eaff,#00ff88);
    border:none;
    color:#000;
    padding:12px 25px;
    border-radius:30px;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
}

.convert:hover,
.total:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(0,255,255,.4);
}

.hero-card{
    max-width:900px;
    margin:20px auto;
    padding:25px;
    text-align:center;
    border-radius:20px;
    background:linear-gradient(135deg,#00eaff,#6a11cb);
    color:white;
    box-shadow:0 10px 30px rgba(0,0,0,.3);
}

.hero-card h2{
    margin-bottom:10px;
}

.hero-stats{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-top:15px;
    flex-wrap:wrap;
}

.hero-stats div{
    background:rgba(255,255,255,.15);
    padding:10px 15px;
    border-radius:10px;
}

.rate-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
    gap:12px;
}

.rate-card{
    background:linear-gradient(135deg,#00eaff,#6a11cb);
    padding:15px;
    border-radius:15px;
    text-align:center;
    color:#fff;
    box-shadow:0 5px 15px rgba(0,0,0,.3);
}

.rate-card h3{
    margin:0;
    font-size:16px;
}

.rate-card p{
    margin-top:8px;
    font-size:18px;
    font-weight:bold;
}

.rate-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
gap:15px;
}

.rate-card{
background:linear-gradient(135deg,#00eaff,#0072ff);
padding:20px;
border-radius:15px;
text-align:center;
color:white;
}

#themeBtn{
    background:linear-gradient(45deg,#00eaff,#6a11cb);
    border:none;
    color:white;
    padding:10px 15px;
    border-radius:50%;
    cursor:pointer;
    font-size:18px;
}

.light{
    background:#f5f7fa;
    color:#222;
}

.ticker{
    overflow: hidden;
    white-space: nowrap;
    padding: 10px;
    font-weight: bold;
    animation: scroll 20s linear infinite;
}

@keyframes scroll{
    0%{
        transform: translateX(100%);
    }
    100%{
        transform: translateX(-100%);
    }
}

.sidebar ul li a{
    color:#ffb703;
    font-weight:600;
    transition:.3s;
    text-decoration:none;
}

.sidebar ul li a:hover{
    color:#fb8500;
    padding-left:8px;
}

.sidebar ul li{
    background:rgba(255,255,255,.08);
    margin-bottom:10px;
    padding:12px;
    border-radius:12px;
    transition:.3s;
    list-style:none;
}

.sidebar ul li:hover{
    background:rgba(255,183,3,.15);
    transform:translateX(5px);
}

.sidebar h2{
    color:#ffb703;
    margin-bottom:15px;
    text-align:center;
}

#progressBar{
    position:fixed;
    top:0;
    left:0;
    width:0%;
    height:4px;
    background:#00eaff;
    z-index:9999;
}

