/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    padding: 0px;
}

.logo {
    background: url('/img/logo.svg') no-repeat center;
    width: 200px;
    height: 60px;
    display: block;
}

.menu {
    display: flex;
    justify-content: center;
    background-color: #333;
    padding: 10px;
}

.menu-toggle {
  display: none; /* Hidden on desktop by default */
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 10px 15px;
}

.menu a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    text-align: center;
}

.menu a:hover {
    background-color: #575757;
}
/* Container */
.container {
    max-width: 75%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1em;
    color: #7f8c8d;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color:  white;
    color: black;
    font-weight: bold;
}

table tr:hover {
    background-color: #f1f1f1;
    transition: background-color 0.3s ease;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: #3498db;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #2980b9;
}


/* Form Styling */
form {
    margin-bottom: 20px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

form input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

form input[type="text"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

/* Form Inline Styling */
.form-inline {
    display: flex;
    gap: 10px; /* Adds space between input and button */
    align-items: center; /* Aligns items vertically */
}

/* Override input width to fit inline layout */

.form-inline input[type="text"] {
    width: 80%;
    padding: 10px;
    margin-bottom: 0; /* Removes margin that could push elements apart */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

/* Keep existing button styles, but ensure it doesn't stretch */
.form-inline .button {
    white-space: nowrap; /* Prevents button from stretching */
    padding: 10px 20px; /* Ensures consistent button size */
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: #2c3e50;
    color: #fff;
    border-radius: 8px;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .form-inline {
        flex-direction: column;
    }
    
    input[type="text"] {
        width: 100%;
    }
    
    .button {
        width: 100%;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tablink {
        width: 100%;
        text-align: left;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    .menu-toggle {
    display: block;
    width: 100%;
    padding: 25px;
    background: #333;
    border: none;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    color: white;
    font-size: medium;
    }
  
    .menu {
        flex-direction: column;
        align-items: center;
        display: none; /* Hidden initially */
        width: 100%;
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu a {
        padding: 12px;
        width: 100%;
        text-align: center;
        border-top: 1px solid #575757;
        color: white;
        text-decoration: none;
    }
    
    .menu a:hover 
        background: #e0e0e0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    th, td {
        padding: 8px 5px;
        font-size: 14px;
    }

    .menu a {
    font-size: 1em;
    padding: 10px;
    }
    
    .pagination-btn {
        padding: 5px 8px;
        font-size: 14px;
    }
    
    .collapsible {
        font-size: 14px;
        padding: 10px;
    }
    
    .content {
        font-size: 14px;
    }
}
