* {
  box-sizing: border-box;

}

body {
    font-family: 'Poppins', sans-serif;
    background: #ccc;
}

/* Style the header */
header {
  background-color: #73c5ebff;
  padding: 0px;
  text-align: center;
  font-size: 35px;
  color: #0c0d0eff;
}
.logo-small {
    width: 5%;
    height: 5%;
   float: left;
}
#up {
    font-size: 12px;
    color: #7c08caff;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    float: right;
    margin-top: -40px;
    margin-right: 10px;
    background: linear-gradient(to right, #3ed3f8ff, #a7d4f1ff);
}
h4 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    background: linear-gradient(90deg, #015527ff, #ee0707ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  animation: fadeIn 1.2s ease-in-out;
    letter-spacing: 1px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Create two columns/boxes that floats next to each other */
nav {
  float: left;
  width: 60%;
  height: 700px; /* only for demonstration, should be removed */
  background: #ccc;
  padding: 10px;
}

/* Style the list inside the menu */
#chart {
    height: 600px !important;
    width: 60%;
}
.container
{
    width:100%;
    height:50%;
    border: 2px solid #baf50a; 
    border-style: inset; 
    float: left;
}

article {
  float: left;
  padding: 20px;
  width: 40%;
 background: #ccc;
  height: 700px; /* only for demonstration, should be removed */
}
.top-campaign
{
 background: #e3bcbc; 
 border: 2px inset #baf50a; 
 width: 700px;
 height: 600px;
 padding: 15px;
 overflow-y: auto;   
}
  .info-cards {
                  display: flex;
                  flex-wrap: wrap;
                  gap: 12px;
                  margin: 20px 0;
                  justify-content: center;
        }

.info-card {
  background: linear-gradient(to right, #e0f7fa, #80deea);
  padding: 10px 18px;
  border-radius: 10px;
  font-family: Arial, sans-serif;
  color: #000;
  text-align: center;
  min-width: 160px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
          }

.info-card h2 {
  font-size: 16px;
  margin: 0;
  color: #004d40;
}

.info-card span {
  font-size: 13px;
}

.info-card p {
  font-size: 11px;
  margin-top: 4px;
}

#display {
    margin-top: 2px;       /* small gap below the textbox */
    padding: 3px;
    background-color: #ADBBBD;
    width: 100%;
    display: none;         /* hidden until results come */
}


#listbox {
    width: 100%;
    height: 120px;      /* smaller height */
    font-size: 12px;
    overflow-y: auto;   /* vertical scroll */
    overflow-x: hidden; /* no horizontal scroll */
    border: 1px solid #3a0202;
}

#chart-container {
	
  border: 2px solid #f83206; 
    border-style: inset;
    align:left;
	  width: 100%;
    height: 50%;
}
#chart-containerr {
	border: 2px solid #f83206; 
    border-style: inset;
    align:left;
	  width: 150%;
    height: 50%;
    
}
/* Clear floats after the columns */
section::after {
  content: "";
  display: table;
  clear: both;
}

footer {
  background-color: #777;
  padding: 10px;
  text-align: center;
  color: white;
}
.menu-small {
    font-size: 15px;
    font-weight: bold;
    color: #790505ff;
    margin-left: 20px; 
}

.menu-small:hover {
    color: #ff5733;      /* hover color */
    transition: 0.3s;
}
.ul1 {
    display: flex;
    justify-content: left; 
    align-items: center;
    left: 20%;
    gap: 10px;        
    padding: 0;       
    margin: 0;        
    list-style: none; 
}
.nav-item {
    margin-left: 20px; /* space between items */
  
    list-style: none;     

}
#resultList {
    list-style: none;       /* remove bullets */
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 22px;
}

#resultList li {
    padding: 4px 0;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

#resultList li:last-child {
    border-bottom: none;
}
form.example {
  display: flex;        /* put input + button in one row */
  width: 20%;
  height: 4%;
}

form.example input[type=text] {
   width: 100%;
    padding: 10px;
    font-size: 12px;
    box-sizing: border-box;
  
  border: 1px solid rgb(24, 1, 1);
  animation: glow 1.5s infinite;
  background: #f1f1f1;
  
}

form.example button {
  position:relative;
  padding: 10px;
  background: #2196F3;
  color: white;
  font-size: 12px;
  border: 1px solid rgb(51, 1, 1);
  border-left: none;
  cursor: pointer;
  width: 50px;         /* fixed button width */
}

form.example button:hover {
  background: #0b7dda;
}



form.example::after {
  content: "";
  clear: both;
  display: table;
}
.table-responsive-data2 {
    max-width: 80%;     /* reduce width */
    margin: auto;       /* center table */
    border: 1px solid #500202;
    padding: 10px;
    border-radius: 4px;
    background: #f8f9fa;
    max-height: 400px;   /* reduce vertical size */
    overflow-y: auto;    /* vertical scroll */
}

/* Table style */
.table-data2 {
   
     max-width: 80%;     /* reduce width */
    margin: auto; 
    font-size: 12px;        /* reduce font size */
     padding: 10px;
  border: 1px solid #500202;
}

/* Header style */
.table-data2 thead th {
    background: #227dec;
   color: rgb(243, 247, 5) !important;
    padding: 3px;
    border: 1px solid #0f0101;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Table cell style */
.table-data2 td {
    padding: 6px;
    border: 1px solid #240202;
    color: #1d04ac !important;
   
    top: 0;
}

/* Row hover */
.table-data2 tbody tr:hover {
    background: #eef6ff;
    cursor: pointer;
     border: 1px solid #240202;
}

/* Optional: zebra stripes */
.table-data2 tbody tr:nth-child(even) {
    background: #f4f4f4;
}
@keyframes glow {
    0%   { box-shadow: 0 0 3px #2196F3; }
    50%  { box-shadow: 0 0 12px #2196F3; }
    100% { box-shadow: 0 0 3px #2196F3; }
}
/* Responsive layout - makes the two columns/boxes stack on top of each other instead of next to each other, on small screens */
@media (max-width: 600px) {
  nav, article {
    width: 100%;
    height: auto;
  }
}