body {
    margin: 0;
    font-family: 'Segoe UI';
   background: #f4f6f9;
}



h1 {
    text-align: center;
    color: #0b3d5c;
}


.logo img {
    width: 100px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.title {
    text-align: center;
    flex: 1;
    position: static;
    transform: none;
}

.title h1,
.title p {
    padding-right: 0;
}

.nav {
    display: flex;
    margin-left: auto;
    padding-right: 0;
    gap: 20px;
}

/*For herader freeze*/
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    background: white;

    position: fixed;   /* 🔥 freeze */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;     /* stay above */
}

/* .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    background: white;
} */


/*Nav style */
.nav a {
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
    color: black;
}

/* Add spacing between links */
.nav a {
    margin-left: 25px;
}

/

 /* hover effect on links */
.nav a:hover {
    color: #1e3c72;
    transition: 0.3s;
}
/* ===== HR LINE ===== */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #ccc, transparent);
    margin: 5px 40px;
}



.container {
    width: 92%;
     max-width: 1200px; 
    /* margin: 30px auto; */
     margin: 150px auto 20px; /* space for fixed header */
    padding: 0 20px;
}

/* 🔲 CARD */
.card {
    background: white;
    border-radius: 16px;
    flex: 1 1 250px;  /* responsive cards */
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
}
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* 🔘 BUTTONS */
button {
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    transform: translateY(-2px);
}

.reset-btn {
    background: #eef1f7;
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
}

.total-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
}

/* 🔍 GRID */
.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.total-section {
    grid-column: 5;   /* right side */
}

.field {
    position: relative;
}

.field label {
    font-size: 13px;
}

/* 📦 INPUT */
.input-box {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px;
    background: #fff;
}

.input-box input {
    border: none;
    width: 100%;
    outline: none;
}

/* 📅 */
/* .date-range {
    display: flex;
    gap: 5px;
}
 */
.date-range input[type="date"] {
    width: 100%;
    padding: 10px;
    cursor: pointer;   /* 🔥 makes full box clickable */
}

.date-range {
    display: flex;
    gap: 6px;   /* increase from 5px */
    align-items: center;
}


.total-section .date-range {
    border: 1px solid #e5e7eb;   /* normal border */
    padding: 6px 8px;
    border-radius: 10px;
    transition: 0.3s;
}

.total-section .date-range:hover {
    border-color: #10b981;   /* 🔥 green on hover */
}

.total-section .date-range:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

#upStart, 
#upEnd {
    width: 100px;      /* 🔥 control size */
    padding: 2px;
    border-radius: 10px;  /* same rounded look */
}
/* 🔍 SEARCH BUTTON */
.search-btn {
    width: 100%;
    padding: 12px;
    background: #1e3c72;
    color: white;
    border-radius: 10px;
    border: none;
}

.search-btn:hover{
	background: #16325c;
}

.search-btn-box {
    grid-column: 1 / 5;   /* only left side */
    display: flex;
    justify-content: center;
}

.total-section .date-range input {
    width: 120px;
    padding: 6px;
}

/* 📊 TABLE */
.table-header {
    display: flex;
    justify-content: space-between;
}

.table-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* search bar highlights */
.highlight {
    background-color: yellow;
    font-weight: bold;
}

.extract-btn1 {
    background: #1e3c72;   /* 🔥 new color */
    color: white;          /* text + icon white */
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;              /* space between icon & text */
}

/* 🔥 Hover effect */
.extract-btn1:hover {
    background: #16325c;
}

/* 🔥 Click effect */
.extract-btn1:active {
    transform: scale(0.97);
}
table {
    width: 100%;
    margin-top: 20px;
}

td, th {
    padding: 10px;
}

/* 🔴 HIGHLIGHT */
.danger-row {
    background: #ff3b3b;
    border-left: 5px solid #ff3b3b;
}

/* 🔔 ICON */
.reminder-icon{
    color:#22c55e;
    margin-left:10px;
    cursor:pointer;
    font-size:18px;
}

.reminder-icon:hover{
    color:#4ade80;
    transform:scale(1.3);
}

/* 👁 & 🗑 */
.view-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 5px 8px;
    border-radius: 6px;
}

.delete-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 5px 8px;
    border-radius: 6px;
}

/* 📄 PAGINATION */
.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* 🔽 SUGGESTIONS */
.suggestions-box {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    width: 100%;
    max-height: 150px;
    overflow-y: auto;
    z-index: 999;
}

.suggestions-box div {
    padding: 8px;
    cursor: pointer;
}

.suggestions-box div:hover {
    background: #f1f5f9;
}

.highlight {
    background-color: yellow;
    font-weight: bold;
}

/* ========================================================= */
/* ===== MOBILE VIEW FOR FETCH PAGE (FIRST PAGE STYLE) ===== */
/* ========================================================= */
@media (max-width: 768px) {

    body {
        margin: 0;
        overflow-x: hidden;
        background: #f4f6f9;
    }

    /* ===== HEADER ===== */
    .header {
        padding: 8px 10px 4px;
        display: flex;
        flex-direction: column;
        width: 100%;
        position: sticky;
        top: 0;
        left: 0;
        background: white;
        z-index: 1000;
        border-bottom: 1px solid #ccc;
    }

    /* ===== LOGO ===== */
    .logo img {
        width: 50px;
        height: auto;
        object-fit: contain;
    }

    /* ===== TITLE ===== */
    .title {
        text-align: center;
        flex: 1;
        margin-left: 0;
        position: static;
        transform: none;
        width: 100%;
    }

    .title h1 {
        font-size: 18px;
        white-space: normal;
        letter-spacing: 1px;
        margin: 0;
        padding-right: 0;
        line-height: 1.1;
    }

    .title p {
        font-size: 11px;
        margin-top: 3px;
        margin-bottom: 1px;
        white-space: normal;
        padding-right: 0;
        line-height: 1.1;
    }

    /* ===== NAVBAR ===== */
    .nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-left: 0;
        padding-right: 0;
        margin-top: 0;
        flex-wrap: wrap;
        width: 100%;
    }

    .nav a {
        font-size: 13px;
        margin: 0;
        padding: 4px 6px;
        white-space: nowrap;
        text-decoration: none;
        line-height: 1.2;
    }

    /* ===== HR ===== */
    hr {
        display: none;
    }

    /* ===== MAIN CONTENT ===== */
    .main-content {
        width: 100%;
        margin: 0;
        padding: 12px;
    }

    .section {
        margin-bottom: 18px;
        width: 100%;
    }

    .section h3 {
        font-size: 15px;
        padding: 12px;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    input {
        width: 100%;
        max-width: 100%;
        margin: 6px 0;
        padding: 14px;
        font-size: 14px;
        border-radius: 8px;
        display: block;
    }

    label {
        display: block;
        margin-top: 8px;
        font-size: 13px;
        font-weight: bold;
    }

    .box {
        display: block;
        width: 100%;
        margin: 8px 0;
    }

    .box select {
        width: 100%;
        height: 45px;
        font-size: 14px;
        border-radius: 8px;
    }

    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 13px;
    }

    th,
    td {
        padding: 8px;
        min-width: 80px;
    }

    button,
    .action-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        margin-top: 8px;
        border-radius: 8px;
    }

    center {
        width: 100%;
        margin-bottom: 20px;
    }
}

}
