
body {
    font-family: Arial, sans-serif;
    background: #f4f6f8 url("background.jpg") no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0; /* ← remove padding so navbar can go full width */
    min-height: 100vh;
}

*{
    text-decoration: none;
}

.navbar {
    
    background: #003E50;
    padding: 0 5%;
    width: 100%;
    box-sizing: border-box; /* ← prevents overflow */
    position: sticky;       /* ← stays at top when scrolling */
    top: 0;
    z-index: 100;           /* ← stays above content */
}

.navdiv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;           /* ← consistent navbar height */
}

.logo a {
    font-size: 18px;        /* ← bigger logo */
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
}

li {
    list-style: none;
    display: inline-block;
}

li a {
    color: white;
    font-size: 17px;
    font-weight: bold;
    margin-left: 25px;      /* ← use margin-left instead of margin-right */
}

li a:hover {
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

/* Add padding back only to main content, not navbar */
.main-layout {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    padding: 20px;          /* ← moved padding here from body */
    box-sizing: border-box;
}

.content-wrapper{
    width: 100%;
    overflow-x: auto;
}

.table-wrapper{
    width: 100%;
    overflow-x: auto;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
    min-height: 400px;
}


.left-panel button {
    width: 20%;
    padding: 20px;
    background: #1C485B;
    color: white;
    border: none;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.report-header {
    display: flex;               /* flex container */
    justify-content: space-between; /* push items to edges */
    align-items: center;         /* vertically center heading & button */
    margin-bottom: 20px;         /* space below */
}

table {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width:100%;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
    min-width: 600px;
    text-align: center;
    table-layout: auto;
    font-size: 14px;
}

td {
    font-size:14px;
}
table tbody tr {
    height: 40px;
}

.table-wrapper {
    height: 400px;          /* fixed height */
    overflow-y: auto;       /* scroll instead of shrinking */
    overflow-x: auto;
}

td, th {
    border: 1px solid #ddd;
    padding: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    padding: 6px 8px;

}

tr {
    background-color: #f2f2f2;
}

tr:hover {background-color: #dddddd;}

th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: center;
  background-color: #898987;
  color: white;
  position: sticky;  
  top: 0;           
  z-index: 1;      
}

.report-container {
    min-height: 60%; 
    background: rgb(248, 248, 248);
    padding: 30px 40px;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-color: #1C485B;
    border-style: solid;

    display: flex;           /* make container flex */
    flex-direction: column;  /* stack items vertically */
    gap: 20px;  
}

.report-container button {
    align-self: flex-end; /* moves the button to the right */
    width: auto;
}

/* Stats container: flex row */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%; 

}

/* Each stat box */
.stat-box {
    flex: 1;
    background-color: rgb(248, 248, 248);
    border-color: #1C485B;
    border-style: solid;
    
    padding: 15px;
    border-radius: 10px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);

    display: flex;
    flex-direction: column;
    justify-content: space-between; /* pushes content apart */
    min-height: 120px;
}

.stat-box h3 {
    font-size: 1.5rem;   
    margin:  0;
    align-self: flex-start;
    color: #555;  
}

.stat-box h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 0;
    align-self: flex-end;
    text-align: right;   /* ensures text aligns right */
    width: 100%;         /* allows full width push */
}

/* LEFT SIDE */
.left-panel {
    flex: 3;
    min-width: 0;
}

/* RIGHT SIDE */
.right-panel {
    flex: 1; /* sidebar size */
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-top: 0;
    margin-left: 30px;
    min-width: 250px;
    align-self: right;
    max-width:300px;
    border-color: #1C485B;
    border-style: solid;
    
}

.create-btn {
    font-weight: bold;
    display: inline-block;
    padding: 12px 20px;
    background: #ffca0f;
    color: black;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 5px 5px 5px rgba(0,0,0,0.3);
}

/* Make inputs clean */
.right-panel input,
.right-panel select {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);

    box-sizing: border-box; /* FIX */

}

.stats-number {
    font-size: 200%;
}


.right-panel button {
    width: 100%;
    padding: 10px;
    background: #1C485B;
    color: white;
    border: none;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    font-weight: bold;
}

button:hover {
    opacity: 0.9;
        }

.reaarange {
    padding: 20px;
}

#forArrangement {
    margin-top: 10%;
}


/* Laptops ~ 1366px or smaller */
@media (max-width: 1366px) {

    .main-layout {
        gap: 15px; /* ⬅️ reduce spacing */
    }

    .report-container {
        padding: 20px; /* ⬅️ smaller padding */
        
    }

    .stats-container {
        gap: 15px; /* ⬅️ tighter stat boxes */
    }

    .stat-box {
        min-height: 100px; /* ⬅️ slightly smaller */
        padding: 10px;
    }

    .stat-box h3 {
        font-size: 1.1rem; /* ⬅️ smaller label */
    }

    .stat-box h1 {
        font-size: 2.2rem; /* ⬅️ scale down numbers */
    }

    .report-header h1 {
        font-size: 1.3rem; /* ⬅️ smaller title */
    }

    .right-panel {
        margin-top: 0;
        padding: 15px; /* ⬅️ less bulky sidebar */
    }

    .left-panel button {
        width: auto; /* ⬅️ prevent awkward stretching */
        padding: 10px 15px;
    }
     td, th {
        font-size: 12px;
    }
}