/* Global Reset and Typography */
body { font-family: 'Segoe UI', Arial, sans-serif; background-color: #f0f2f5; margin: 0; padding: 20px; user-select: none; -webkit-user-select: none; -ms-user-select: none; }
.container { max-width: 1200px; margin: auto; background: white; padding: 20px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
h1 { color: #1a73e8; text-align: left; margin-bottom: 30px; }

/* Form Elements */
input, select { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }

/* Buttons and Animations */
.btn-save, .btn-del, .btn-add, .btn-edit { cursor: pointer; transition: all 0.2s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.15); border: none; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn-save { background: #1a73e8; color: white; border: none; padding: 8px 15px; border-radius: 4px; font-weight: bold; }
.btn-del { background: #ea4335; color: white; width: 30px; height: 30px; border-radius: 8px; font-size: 16px; }
.btn-edit { background: #1a73e8; color: white; width: 30px; height: 30px; border-radius: 8px; font-size: 14px; }
.btn-add { background: #34a853; color: white; border: none; padding: 10px 15px; border-radius: 5px; margin-bottom: 15px; font-weight: bold; }

.btn-save:hover, .btn-del:hover, .btn-add:hover, .btn-edit:hover { transform: translateY(-2px) scale(1.1); box-shadow: 0 6px 14px rgba(0,0,0,0.25); filter: brightness(1.1); }
.btn-save:active, .btn-del:active, .btn-add:active, .btn-edit:active { transform: scale(0.95); }

/* Common UI Components */
.result-cell { font-family: 'Courier New', monospace; font-weight: bold; color: #2e7d32; background: #e8f5e9; padding: 0 10px; border-radius: 4px; font-size: 13px; border: 1px solid #c8e6c9; min-width: 380px; display: flex; align-items: center; height: 33px; box-sizing: border-box; white-space: nowrap; flex: 1; }
.db-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.db-section { background: #f8f9fa; padding: 15px; border-radius: 8px; border: 1px solid #ddd; }

/* Clock and Time Cards */
.time-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap:12px; margin-top:20px; }
.time-card { background: #f8f9fa; border-radius: 10px; padding: 12px; text-align: center; border: 1px solid #ddd; box-shadow: 0 2px 6px rgba(0,0,0,0.05); position: relative; }
.clock { font-size: 32px; font-weight: bold; color: #1a73e8; margin-top: 10px; font-family: 'Courier New', monospace; }
.utc-label { margin-top: 8px; color: #666; font-size: 14px; }
.city-list { max-height: 150px; overflow-y: auto; text-align: left; background: white; border: 1px solid #eee; border-radius: 4px; position: absolute; width: calc(100% - 24px); z-index: 10; left: 12px; }
.city-search { width:100%; padding:6px; border-radius:6px; border:1px solid #ccc; margin-bottom: 8px; font-size: 13px; box-sizing: border-box; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th { background-color: #1a73e8; color: white; padding: 6px 4px; text-align: left; font-size: 12px; }
td { padding: 8px 4px; border-bottom: 1px solid #ddd; transition: background-color 0.2s; }

/* Table Row Hover Highlight */
tbody tr:hover { background-color: #f1f8ff; }
/* Overriding inline backgrounds on hover to ensure the row highlight is fully visible */Can we add a clear button for all MVT rows at once?
tbody tr:hover input:not(:focus) { background-color: #f1f8ff !important; }

/* TABS CONTAINER */
.tabs{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:25px;
}

/* Navigation Tabs */
.tabs { display: flex; border-bottom: 2px solid #e0e0e0; margin-bottom: 20px; text-decoration: none; }
.tab-btn { padding: 12px 24px; cursor: pointer; border: none; background: none; font-size: 16px; font-weight: 600; border-radius:10px; color: #5f6368; transition: 0.3s; 
    text-decoration: none; display:inline-flex; align-items:center; justify-content:center; white-space:nowrap;}
.tab-btn-home { padding: 12px 24px; cursor: pointer; border: none; background: none; font-size: 16px; font-weight: 400; color: #5f6368; transition: 0.3s; text-decoration: none; }
.tab-btn.active { color: #1a73e8; border-bottom: 3px solid #1a73e8; }

.tab-btn:hover{
    background:#1558b0;
    color: #fafafa;
}

/* DROPDOWN */
.dropdown{
    position:relative;
    display:inline-block;
}

/* DROPDOWN BUTTON */
.dropdown-btn{
    font-family:inherit;
}

/* DROPDOWN MENU */
.dropdown-menu{
    position:absolute;
    top:110%;
    left:0;
    min-width:240px;
    background:white;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,0.15);
    border:1px solid #ddd;

    opacity:0;
    visibility:hidden;
    transform:translateY(10px);

    transition:0.25s ease;
    z-index:9999;
}

/* SHOW DROPDOWN */
.dropdown:hover .dropdown-menu{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

/* DROPDOWN LINKS */
.dropdown-menu a{
    display:block;
    padding:14px 18px;
    text-decoration:none;
    color:#333;
    font-size:15px;
    transition:0.2s;
}

.dropdown-menu a:hover{
    background:#f3f7ff;
    color:#1a73e8;
}

.site-footer {
    width: 100%;
    margin-top: 30px;
    padding: 20px 0;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a{
    color:white;
    text-decoration:none;
    font-size:14px;
    opacity:0.9;
    transition:0.2s;
}

.footer-links a:hover{
    opacity:1;
    text-decoration:underline;
}

.footer-small{
    font-size:12px;
    opacity:0.8;
    margin-top:8px;
}

.contact-form{
    max-width:600px;
    margin:30px auto;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.contact-form label{
    font-weight:bold;
    color:#333;
    margin-top:5px;
}

.contact-form input,
.contact-form textarea{
    padding:12px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:15px;
    outline:none;
    transition:0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus{
    border-color:#1a73e8;
    box-shadow:0 0 5px rgba(26,115,232,0.3);
}

.contact-form button{
    margin-top:10px;
    background:#1a73e8;
    color:white;
    border:none;
    padding:12px;
    border-radius:10px;
    font-size:16px;
    cursor:pointer;
    transition:0.2s;
}

.contact-form button:hover{
    background:#1558b0;
}

/* Weather & Decoder Shared Styles */
.search-box {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

pre {
    background: #f1f5f9;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
    line-height: 1.5;
    margin: 5px 0;
    color: #1a73e8;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 14px;
    border-left: 4px solid #1a73e8;
}

.weather-options {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 5px;
    color: #555;
    font-size: 14px;
}

.weather-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.weather-options input {
    width: auto !important;
    margin: 0;
    cursor: pointer;
}

/* NOTAM & Decoder Specific Styles */
.subtitle { text-align: center; color: #666; margin-bottom: 25px; }

textarea {
    width: 100%;
    min-height: 180px;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 15px;
    resize: vertical;
    box-sizing: border-box;
}

.buttons { margin-top: 15px; display: flex; gap: 10px; flex-wrap: wrap; }

.result-box {
    margin-top: 20px;
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    line-height: 1.7;
}

.section { margin-bottom: 14px; }
.label { font-weight: bold; color: #007bff; }
.example { margin-top: 20px; background: #fff; padding: 15px; border-radius: 12px; font-size: 14px; color: #555; }

code {
    display: block;
    margin-top: 8px;
    background: #f4f4f4;
    padding: 10px;
    border-radius: 8px;
    overflow-x: auto;
}

.scroll-box { height: 700px; overflow-y: auto; border: 1px solid #ccc; padding: 10px; }
.scroll-box th { position: sticky; top: 0; z-index: 1; background-color: #1a73e8; }
