/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-img {
    height: 40px;
    width: auto;
    max-width: 120px;
}

.nav-menu {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px 20px;
    border-top: 1px solid #dfe1e5;
}

.nav-link {
    text-decoration: none;
    color: #4285F4; /* Google Blue */
    font-weight: bold;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #DB4437; /* Google Red */
}

.admin-link .admin {
    color: #0F9D58; /* Google Green */
}

.admin-link .admin:hover {
    color: #F4B400; /* Google Yellow */
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Search Section */
.search-section {
    margin: 0;
}

.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.search-input {
    width: 60vw;
    max-width: 600px;
    min-width: 300px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.1);
    outline: none;
    transition: box-shadow 0.3s;
}

.search-input:focus {
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

.search-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4285F4; /* Google Blue */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #DB4437; /* Google Red */
}

/* History Link */
.history-link {
    margin-top: 20px;
}

/* Error Result */
.error-result {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 8px;
    text-align: left;
    max-width: 600px;
    margin: 20px auto;
}

.error-message {
    color: #DB4437; /* Google Red */
    font-weight: bold;
}

.guide-link {
    display: inline-block;
    margin-top: 10px;
    color: #0F9D58; /* Google Green */
    text-decoration: none;
    font-weight: bold;
}

.guide-link:hover {
    color: #F4B400; /* Google Yellow */
}

/* History Table */
.history-table {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.1);
}

.history-table th,
.history-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #dfe1e5;
}

.history-table th {
    background-color: #4285F4; /* Google Blue */
    color: #fff;
}

.history-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Guide Page */
.guide-image {
    max-width: 300px;
    border: 1px solid #dfe1e5;
    border-radius: 4px;
    margin: 10px 0;
}

.guide-steps {
    background-color: #fff;
    padding: 15px;
    border: 1px solid #dfe1e5;
    border-radius: 4px;
    max-width: 600px;
    margin: 10px auto;
    text-align: left;
}

/* Footer Styles */
.footer {
    background-color: #fff;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #dfe1e5;
    color: #666;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 10px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }

    .search-input {
        width: 90%;
        min-width: 280px;
    }
}
