/* Basic reset and typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #007acc;
    color: #fff;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin-bottom: 10px;
    font-size: 2rem;
}

header p {
    font-size: 1rem;
    max-width: 720px;
    margin: 0 auto;
}

main {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

h2 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: #007acc;
}

/* Search section */
#search-section {
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.search-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

#search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

#search-btn {
    padding: 10px 15px;
    background-color: #007acc;
    border: none;
    color: white;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

#search-btn:hover {
    background-color: #005f99;
}

/* Results list */
#results {
    margin-top: 15px;
}

.result-item {
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-item strong {
    font-size: 1rem;
}

.visit-btn {
    padding: 6px 10px;
    background-color: #007acc;
    border: none;
    color: #fff;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.visit-btn:hover {
    background-color: #005f99;
}

/* Viewer section */
#viewer-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.viewer-input {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

#username-input {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

#view-btn {
    padding: 10px 15px;
    background-color: #007acc;
    border: none;
    color: white;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

#view-btn:hover {
    background-color: #005f99;
}

#message {
    margin-top: 10px;
    min-height: 20px;
    color: #b30000;
    font-weight: bold;
}

#iframe-container {
    margin-top: 15px;
    width: 100%;
}

iframe {
    width: 100%;
    height: 500px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

footer {
    margin-top: 20px;
    padding: 15px;
    font-size: 0.85rem;
    color: #555;
    text-align: center;
}

/* Developer section styles */
#dev-section {
    margin-top: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
#dev-section h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: #007acc;
}
#dev-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #333;
}
#dev-section input {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 10px;
}
#dev-section .dev-buttons {
    margin-bottom: 10px;
}
#dev-section button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    color: #fff;
    margin-right: 10px;
    transition: background-color 0.2s ease-in-out;
}
#signup-btn {
    background-color: #28a745;
}
#signup-btn:hover {
    background-color: #218838;
}
#login-btn {
    background-color: #17a2b8;
}
#login-btn:hover {
    background-color: #117a8b;
}
#save-site-btn {
    background-color: #28a745;
}
#save-site-btn:hover {
    background-color: #218838;
}
#logout-btn {
    background-color: #dc3545;
}
#logout-btn:hover {
    background-color: #c82333;
}
#dev-section .message {
    font-size: 0.9rem;
    color: #b30000;
    min-height: 20px;
}
