
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


body {
    background-color: #f0f2f5;
    color: #333;
    padding: 15px;
    min-height: 100vh;
}


.container {
    max-width: 1200px;
    margin: auto;
    padding: 25px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}


h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.nav-links span {
    font-weight: bold;
    color: #2c3e50;
    margin-right: auto;
}

.nav-links a, .dropbtn {
    padding: 8px 14px;
    background-color: #3498db;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
    cursor: pointer;
}

.nav-links a:hover, .nav-links a.active, .dropbtn.active {
    background-color: #2980b9;
}

/* Dropdown styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #3498db;
    min-width: 140px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 1;
}

.dropdown-content a {
    display: block;
    padding: 8px 12px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.dropdown-content a:hover, .dropdown-content a.active {
    background-color: #2980b9;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    flex: 1 1 150px;
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.card h3 {
    font-size: 16px;
    color: #34495e;
    margin-bottom: 8px;
}

.card p {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}


form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form label {
    font-weight: 500;
    margin-bottom: 5px;
}

form input[type="text"],
form input[type="date"],
form input[type="number"],
form select,
form textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    width: 100%;
    transition: 0.3s;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: #3498db;
    outline: none;
}

form textarea {
    min-height: 80px;
    resize: vertical;
}


button {
    padding: 12px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s;
}

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


table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 12px 10px;
    text-align: center;
    font-size: 14px;
}

table th {
    background-color: #3498db;
    color: white;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}


.gate-board{
    margin-top:30px;
    padding:25px;
    background:#ffffff;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.gate-board h3{
    margin-bottom:20px;
    font-size:22px;
    color:#2c3e50;
}


.terminal-selector{
    margin-bottom:20px;
    display:flex;
    align-items:center;
    gap:10px;
}

.terminal-selector label{
    font-weight:600;
}

.terminal-selector select{
    padding:8px 12px;
    border-radius:6px;
    border:1px solid #ccc;
    font-size:14px;
}


.terminal-gates{
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 15px;
    width: 100%;
}


@media (max-width:1024px){
    .terminal-gates{
        grid-template-columns: repeat(4, 1fr); 
    }
}


@media (max-width:768px){
    .terminal-gates{
        grid-template-columns: repeat(3, 1fr); 
    }
}


@media (max-width:480px){
    .terminal-gates{
        grid-template-columns: repeat(2, 1fr); 
    }
}


.gate{
    width:100%;
    padding:15px;
    border-radius:10px;
    text-align:center;
    background:#f8f9fb;
    border:1px solid #e6e9ef;
    transition:all 0.2s ease;
}

.gate:hover{
    transform:translateY(-4px);
    box-shadow:0 8px 18px rgba(0,0,0,0.08);
}

.gate span{
    display:block;
    font-weight:600;
    margin-bottom:10px;
    color:#34495e;
}


.status{
    padding:6px 10px;
    border-radius:20px;
    font-size:12px;
    font-weight:bold;
    letter-spacing:0.5px;
    display:inline-block;
    min-width:50px;
}


.status.green{
    background:#e8f8f1;  
    color:#1abc9c;       
    border:1px solid #1abc9c;
}


.status.red{
    background:#fdecea;  
    color:#e74c3c;       
    border:1px solid #e74c3c;
}

.chart-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    text-align: center; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    flex-direction: column;
}

.chart-card canvas {
    max-width: 80%; 
    width: 100%;
    height: 300px !important;
}

.chart-card h3 {
    font-size: 16px;
    color: #34495e;
    margin-bottom: 15px;
}



p.success {
    color: #27ae60;
    font-weight: bold;
    margin-bottom: 10px;
}

p.error {
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 10px;
}


@media (max-width: 1024px) {
    .cards { gap: 15px; }
    .card { flex: 1 1 45%; }
    .gate { flex: 1 1 45%; }
}

@media (max-width: 768px) {
    body { padding: 10px; }
    .container { padding: 15px; }
    .cards { flex-direction: column; }
    .card { flex: 1 1 100%; }
    .gate { flex: 1 1 45%; }
    .nav-links { flex-direction: column; }
    .nav-links a { width: 100%; text-align: center; }
    .chart-card { padding: 15px; }
    .chart-card h3 { font-size: 14px; }
    .chart-card canvas { height: 250px !important; }
}

@media (max-width: 480px) {
    .gate { flex: 1 1 100%; }
    table th, table td { font-size: 12px; padding: 8px; }
    button { font-size: 14px; padding: 10px 15px; }
    .chart-card canvas { height: 200px !important; }
}

.issue-filter {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.issue-filter label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.issue-filter select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}


@media (max-width: 768px) {
    .issue-filter {
        flex-direction: column;
        align-items: flex-start;
    }

    .issue-filter select {
        width: 100%;
    }
}

