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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;

}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #1f1f1f;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

/* Site Header */
.site-header {
    background-color: #1f1f1f;
    padding: 15px 30px;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    height: 40px;
    width: auto;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav li {
    display: inline-block;
    position: relative;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #fbbd05;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 5px;
    min-width: 200px;
    z-index: 100;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

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

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    color: #e0e0e0;
    padding: 12px 15px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #fbbd05;
    color: #121212;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.page-header h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-header p {
    color: #a0a0a0;
    font-size: 1.1em;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px;
}

h2 {
    font-size: 1.8em;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fbbd05; /* Accent color */
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 10px;
    font-weight: 600;
    color: #c0c0c0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 5px;
    font-size: 1em;
    color: #e0e0e0;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fbbd05;
    box-shadow: 0 0 0 3px rgba(251, 189, 5, 0.2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.error {
    color: #ff6b6b;
    font-size: 0.9em;
    margin-top: 5px;
}

input.error {
    border-color: #ff6b6b;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: #fbbd05;
    color: #121212;
}

.btn-primary:hover {
    background-color: #ffca2c;
}

.btn-secondary {
    background-color: #333;
    color: #e0e0e0;
}

.btn-secondary:hover {
    background-color: #444;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Maps Section */
.maps-section .maps-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center; /* Vertically align items */
}

.maps-input-group input {
    flex-grow: 1;
    /* Apply same styles as other inputs */
    padding: 12px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 5px;
    font-size: 1em;
    color: #e0e0e0;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.maps-input-group input:focus {
    outline: none;
    border-color: #fbbd05;
    box-shadow: 0 0 0 3px rgba(251, 189, 5, 0.2);
}

.maps-section small {
    color: #a0a0a0;
}

/* Output Section & Tabs */
.output-section {
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.tabs {
    display: flex;
    margin-bottom: 0;
    border-bottom: 1px solid #444;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1em;
    font-weight: 600;
    position: relative;
    color: #a0a0a0;
    transition: color 0.2s;
}

.tab:hover {
    color: #ffffff;
}

.tab.active {
    color: #fbbd05;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fbbd05;
}

.tab-content {
    padding: 20px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-top: none;
    border-radius: 0 0 5px 5px;
}

/* Code & Preview */
.code-container {
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #444;
    color: #e0e0e0;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background-color: #555;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #1e1e1e !important; /* Override highlight.js style if needed */
    color: #d4d4d4;
    padding: 20px;
    border-radius: 5px;
    max-height: 400px;
    overflow-y: auto;
}

.preview-section iframe {
    width: 100%;
    height: 500px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #ffffff; /* Give iframe a light background for contrast */
}

/* Notification Styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    padding: 15px 20px;
    border-radius: 5px;
    color: #121212;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.5s ease;
}

.notification-info { background-color: #3498db; color: white; }
.notification-success { background-color: #fbbd05; } /* Using accent color for success */
.notification-error { background-color: #e74c3c; color: white; }

/* Content Section */
.content-section {
    padding: 20px 30px;
}

.content-section hr {
    border: 0;
    border-top: 1px solid #333;
    margin: 40px 0;
}

.content-section h2 {
    margin-top: 30px;
}

.content-section p,
.content-section li {
    color: #a0a0a0;
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-section ul,
.content-section ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 10px;
}

.content-section strong {
    color: #e0e0e0;
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    color: #a0a0a0;
}

footer a {
    color: #fbbd05;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

footer a:hover {
    color: #ffffff;
}

.tech-credit {
    font-size: 0.9em;
    margin-top: 10px;
}