/* style.css */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9fafb; /* Light pastel background */
    color: #333;
}

.header {
    background: #e0f7fa; /* Soft teal */
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 80px;
    width: 80px;
    margin-right: 15px;
    border-radius: 10px;
    object-fit: cover;
}

.header-text h1 {
    margin: 0;
    font-size: 2em;
    color: #00695c;
}

.header-text h2 {
    margin: 0;
    font-size: 1em;
    color: #00796b;
}

.user-info {
    font-size: 0.9em;
}

.btn {
    padding: 8px 15px;
    background-color: #009688;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    margin: 5px;
    display: inline-block;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #00796b;
}

.navbar {
    background-color: #b2dfdb;
    padding: 10px 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.content {
    padding: 20px;
    min-height: 60vh;
}

h2 {
    text-align: center;
    color: #004d40;
}

table {
    /*width: 100%;*/
    
    margin: 20px 0;
    border-collapse: collapse;    /* Remove gaps between cells if any */
    width: auto;                  /* Auto width to fit content */
}

table, th, td {
    border: 1px solid #ccc;
    white-space: nowrap;        /* No wrapping of text inside cells */
    overflow: hidden;             /* Optional: hide overflow if text is too long */
    text-overflow: ellipsis;      /* Optional: show ellipsis for overflowing text */
    height: 20px;                 /* Set a fixed small height for cells */
    padding: 2px 2px;             /* Reduce padding to make cells smaller */
    line-height: 10px;
}

th, td {
    padding: 6px;
    text-align: left;
}

form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form label {
    font-weight: bold;
}

input[type=text], input[type=number], input[type=date], select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

button.submit-btn {
    padding: 12px;
    background-color: #009688;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
}

button.submit-btn:hover {
    background-color: #00796b;
}

.footer {
    background: #e0f7fa;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    font-size: 0.9em;
}

.table-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.table-links .btn {
    font-size: 1.1em;
    padding: 12px 20px;
    background-color: #009688;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}

.table-links .btn:hover {
    background-color: #00796b;
    transform: scale(1.05);
}

/* Prevent text wrapping in table cells */
table td {
    white-space: nowrap;        /* No wrapping of text inside cells */
    overflow: hidden;             /* Optional: hide overflow if text is too long */
    text-overflow: ellipsis;      /* Optional: show ellipsis for overflowing text */
    height: 20px;                 /* Set a fixed small height for cells */
    padding: 2px 5px;             /* Reduce padding to make cells smaller */
    line-height: 20px;            /* Match line-height to cell height for compactness */
}

/* Optional: set table to auto width to fit content */
table {
    border-collapse: collapse;    /* Remove gaps between cells if any */
    width: auto;                  /* Auto width to fit content */
}