html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

.container {
    flex: 1;
    width: 80%;
    margin: 0 auto;
    padding: 20px 0;
}

header, footer {
    background: #35424a;
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
    border-bottom: #e8491d 3px solid;
}

header a, footer a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header ul, footer ul {
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
}

header li, footer li {
    margin: 0 15px;
}

header #branding {
    float: left;
}

header #branding h1 {
    margin: 0;
}

header .highlight, header .current a {
    color: #e8491d;
    font-weight: bold;
}

header a:hover, footer a:hover {
    color: #cccccc;
}

button, input[type="submit"], .btn {
    background-color: #35424a;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 4px;
}

button:hover, input[type="submit"]:hover, .btn:hover {
    background-color: #e8491d;
}

footer {
    margin-top: auto;
    width: 100%;
    padding: 20px 0;
    background-color: #35424a;
    color: #ffffff;
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.9);
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #ffffff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.modal .close:hover,
.modal .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.panorama-viewer {
    width: 100%;
    height: 100%;
}

/* Thumbnail styling */
.thumbnail {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.ad-description {
    max-width: 150px;
    word-wrap: break-word;
}

.login-container, .form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 20px;
}

.login-box, .form-box {
    background: #ffffff;
    padding: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-box h2, .form-box h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.login-box form, .form-box form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-box input[type="text"], .login-box input[type="password"], .form-box input[type="text"], .form-box textarea, .form-box input[type="file"] {
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 300px;
}

.error-message {
    color: red;
    text-align: center;
    margin-bottom: 10px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th, .table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.table th {
    background-color: #35424a;
    color: white;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-group input[type="text"], .form-group input[type="password"], .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
