body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f5f5f5;
    color: #333;
}

a {
    text-decoration: underline;
    color: black;
}

a:hover {
    text-decoration: none;
    color: #b8c639;
}

header {
    background: url('/img/background.jpg') center/cover no-repeat;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
}

header h1 {
    font-size: 2.5em;
    background: rgba(0,0,0,0.4);
    padding: 10px 20px;
    border-radius: 10px;
    text-align: center;
}

header h1 a {
    color: inherit;
    text-decoration: none;
    font: inherit;
}

header h1 a:hover {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.price {
    font-size: 2em;
    color: #2c7a2c;
    margin-bottom: 10px;
}

.details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.detail-box {
    flex: 1 1 200px;
    background: #fafafa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.gallery img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

table td {
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

table tr:last-child td {
    border-bottom: none;
}

table .label {
    font-weight: bold;
    width: 35%;
    color: #222;
}

table .info {
    color: #555;
}

.contact {
    margin-top: 30px;
    padding: 20px;
    background: #f0f0f0;
    border-radius: 10px;
}

footer {
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
    color: #777;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.lightbox img {
    max-width: 95%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: #fafafa;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
}

.document-item:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

.doc-title {
    font-weight: 600;
}

.doc-arrow {
    font-size: 1.2em;
    color: #666;
}

.doc-size {
    display: inline-block;
    margin-top: 4px;
    font-weight: normal;
    font-style: italic;
    font-size: 0.9em;
    color: #777;
}

.login-card {
    margin-top: 20px;
    padding: 24px;
    background: #fafafa;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.form-row label {
    font-weight: 600;
    margin-bottom: 8px;
}

.form-row input {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus {
    outline: none;
    border-color: #b8c639;
    box-shadow: 0 0 0 3px rgba(184,198,57,0.15);
}

.login-button {
    display: inline-block;
    padding: 12px 24px;
    background: #b8c639;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

a.login-button:hover {
    text-decoration: none;
    color: #000;
    background: #a9b833; 
}


.login-error {
    margin: 15px 0;
    padding: 12px 14px;
    color: #b00020;
    background: #fff3f4;
    border: 1px solid #f3c2c7;
    border-radius: 8px;
    font-weight: 600;
}

.logout-wrapper {
    margin-top: 15px;
    display: flex;
    justify-content: flex-start;
}

.logout-button {
    text-decoration: none !important;
    color: inherit;
    display: inline-block;
}

.section {
    margin-top: 40px;
}

.section:first-of-type {
    margin-top: 0;
}

.section h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

@media (max-width: 600px) {
    header {
        height: 200px;
    }

    header h1 {
        font-size: 1.5em;
    }

    table,
    table tbody,
    table tr,
    table td {
        display: block;
        width: 100%;
    }

    table tr {
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }

    table td {
        padding: 6px 14px;
        border: none;
    }

    table .label {
        width: 100%;
        font-weight: bold;
        padding-bottom: 4px;
    }

    table .info {
        width: 100%;
        padding-top: 0;
    }
}
