/* SIMPLE FLIGHTS TABLE STYLES */
body, .zadar-simple-flights-table,
.zadar-simple-flights-table table,

.zadar-simple-flights-table tbody,
.simple-flights-header,
.simple-flight-pagination,
.loading-message,
.flight-error {
    
    font-weight: 500; 
    background-color: white !important;
    margin:0;
}
#zadar-simple-arrival-flights, #zadar-simple-departure-flights{
    width: 100%;
    overflow: auto;
}
.simple-flights-header {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    padding: 10px;
}

.simple-flights-header h3 {
    margin: 0;
    font-weight: 700; 
    font-size: 1.2em;
}

.flights-heading {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600; 
}

.flights-heading a {
    font-weight: 600; 
}

.flight-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.flight-icon:hover {
    transform: scale(1.1);
}

/* Table Styling */
.zadar-simple-flights-table table {
    width: 100%;
    
    
    border: none;
	font-size: 12px!important;
	
}

.zadar-simple-flights-table th,
.zadar-simple-flights-table td {
   
	display: flex;
	align-items: center;
	
    text-align: left;
    border:none;
	
    
	
}

.zadar-simple-flights-table th {
    font-weight: 600; 
	max-width: 115px;
	width: 105px;
    
    
}

.zadar-simple-flights-table td {
    font-weight: 500; 
	max-width: 115px;
	width: 95px;
	background: transparent;
	
	font-size: 12px;
	
}
.zadar-simple-flights-table tr {
   
	display: flex;
	align-items: center;
	justify-content: space-around;
	height:80px;
    border-top: 1px solid #eee;
	
	
}
.zadar-simple-flights-table tr:nth-child(odd) {
  background-color: #fff;
  color:black;
}
.zadar-simple-flights-table tr:nth-child(even) {
  background-color: #e3f3f89a ; 
  color:black;
}

.zadar-simple-flights-header-row{
    background: #e3f3f89a!important;
    color:black!important;
}

/* Pagination */
.simple-flight-pagination {
    display: flex;
    gap: 5px;
    align-items: center;
}

.page-btn,
.simple-flight-pagination .page-btn {
    background: white !important;
    border: 1px solid #fafafa;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 14px;
    min-width: 30px;
    text-align: center;
    transition: all 0.2s;
    font-weight: 700; 
    color: black;
    padding: 5px 10px;
}

.page-btn:hover {
    background: #f0f0f0 !important;
}

.page-btn.active,
.simple-flight-pagination .page-btn.active {
    background-color: #0073aa !important;
    color: white !important;
    border-color: #006799 !important;
}

/* STATUS BADGES */
.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600; 
    background: white;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    color:#000;
}

.status-landed {
    background: #05b557;
    color: white !important;
}
.status-cancelled {
    background: #b50505 !important;
    color:white;
}
.status-delayed {
    background: #b55405 !important;
    color: white;
}
.status-boarding {
    background: #0572b5 !important;
    color: white;
}
.track-flight{
    color: #000;
    text-decoration: none;
}

/* LOADING & ERROR */
.loading-message,
.flight-error {
    font-weight: 500; 
    padding: 15px;
    text-align: center;
	color: black;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .zadar-simple-flights-table table {
        width: 95%; /* 5% less wide on small screens */
        margin-left: auto;
        margin-right: auto;
    }
    
    .zadar-simple-flights-table th,
    .zadar-simple-flights-table td {
		
        padding: 10px 15px;
		/* Slightly reduced padding */
    }
    
    .simple-flights-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .flight-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 500px) {
    .zadar-simple-flights-table table {
        width: 90%; /* 10% less wide on very small screens */
		
    }
    
    
	
    
    .status-badge {
        font-size: 11px; /* Smaller status badges */
        padding: 2px 6px;
    }
    
    .simple-flight-pagination {
        flex-wrap: wrap; /* Allow pagination to wrap */
        justify-content: center;
    }
    
    .page-btn {
        padding: 4px 8px;
        min-width: 26px;
        font-size: 12px;
    }
}

/* Extra Small Devices (under 425px) */
@media (max-width: 425px) {
    .zadar-simple-flights-table table {
        width: 88%; /* Even narrower table */
    }
    
    
    
    .simple-flights-header h3 {
        font-size: 1.1em; /* Smaller heading */
    }
    
    .flight-icon {
        width: 20px;
        height: 20px; /* Smaller icon */
    }
    
    .status-badge {
        font-size: 10px; /* Tiny status badges */
        padding: 3px 5x;
    }
    
    .page-btn {
        padding: 3px 6px;
        min-width: 22px;
        font-size: 11px;
    }
    
    .simple-flight-pagination {
        gap: 3px; /* Tighter pagination spacing */
    }
}

/* Very Small Devices (under 390px) */
@media (max-width: 390px) {
    .zadar-simple-flights-table table {
        width: 85%; /* Even more compact table */
    }
    
    
    
    .simple-flights-header h3 {
        font-size: 1em; /* Smaller heading */
    }
    
    .flight-icon {
        width: 18px;
        height: 18px; /* Tiny icon */
    }
    
    .status-badge {
        font-size: 9px; /* Minimal readable badge size */
        padding: 3px 5px;
        white-space: nowrap; /* Prevents text wrapping */
    }
    
    .page-btn {
        padding: 2px 4px;
        min-width: 20px;
        font-size: 10px; /* Very small buttons */
    }
    
    .simple-flight-pagination {
        gap: 2px; /* Extremely tight spacing */
        justify-content: flex-start; /* Better for tiny screens */
    } 
}


