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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Main wrapper for logged in pages */
.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container for auth pages (login/register) */
.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* Header styles */
.main-header {
    background: #006ab3;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 30px 0;
    border-radius: 25px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-name {
    color: white;
    font-size: 25px;
    font-weight: 600;
}

.btn-add-new {
    background: white;
    color: #006ab3;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-add-new:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.header-right {
    display: flex;
    align-items: center;
}

.btn-logout {
    background: white;
    color: #006ab3;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-logout:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.main-content {
    flex: 1;
    padding: 30px;
    background: #f8f9fa;
}

/* Table styles */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #006ab3;
    color: white;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.data-table th:last-child {
    border-right: none;
}

.data-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table td {
    padding: 15px;
    color: #333;
    font-size: 14px;
    border-right: 1px solid #e0e0e0;
}

.data-table td:last-child {
    border-right: none;
}

.data-table .empty-message {
    text-align: center;
    color: #999;
    padding: 40px;
    font-style: italic;
}

.data-table .controls {
    display: flex;
    gap: 10px;
}

.data-table .btn-control {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.data-table .btn-edit {
    background: #006ab3;
    color: white;
}

.data-table .btn-edit:hover {
    background: #005a9e;
}

.data-table .btn-hotspots {
    background: #28a745;
    color: white;
}

.data-table .btn-hotspots:hover {
    background: #218838;
}

.data-table .btn-preview {
    background: #3fc4eb;
    color: white;
}

.data-table .btn-preview:hover {
    background: #2db3d9;
}

.data-table .btn-delete {
    background: #dc3545;
    color: white;
}

.data-table .btn-delete:hover {
    background: #c82333;
}


.auth-box {
    background: white;
    border-radius: 10px;
    padding: 10px 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.auth-box h2 {
    text-align: center;
    color: #006ab3;
    margin-bottom: 30px;
    font-size: 28px;
}

.logo-container {
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container svg {
    max-width: 125px;
    height: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #006ab3;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #006ab3;
    color: white;
}

.btn-primary:hover {
    background: #005a9e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 106, 179, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: #5a6268;
}

.alert {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-link a {
    color: #006ab3;
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #006ab3;
}

.dashboard-header h1 {
    color: #006ab3;
    font-size: 32px;
}

.dashboard-content {
    margin-top: 30px;
}

.info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
}

.info-card h3 {
    color: #006ab3;
    margin-bottom: 20px;
    font-size: 24px;
}

.info-item {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: #333;
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 600px) {
    .auth-box,
    .dashboard {
        padding: 30px 20px;
    }
    
    .main-header {
        padding: 12px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .header-left {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .header-right {
        width: 100%;
        justify-content: center;
    }
    
    .btn-logout,
    .btn-add-new {
        width: 100%;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px;
        font-size: 12px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .dashboard-header h1 {
        font-size: 24px;
    }
    
    .btn-secondary {
        width: 100%;
    }
}

/* Role Badge */
.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 10px;
}

.role-badge.role-admin {
    background: #006ab3;
    color: white;
}

.role-badge.role-user {
    background: #e3f2fd;
    color: #006ab3;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-header {
    background: #006ab3;
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #ccc;
}

.modal-body {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1.75fr;
    gap: 25px;
    overflow-y: auto;
    flex: 1;
    background: #f8f9fa;
    position: relative;
    align-items: start;
}


.modal-left {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    align-self: flex-start;
    height: fit-content;
}

.modal-right {
    display: flex;
    flex-direction: column;
    padding: 0 25px;
    border-left: 2px solid #e0e0e0;
    max-height: 100%;
    overflow-y: auto;
}

#panoramas-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panorama-block {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modal-left .form-group,
.modal-right .form-group {
    display: flex;
    flex-direction: column;
}

.modal-left label,
.modal-right label {
    font-weight: 600;
    color: #006ab3;
    font-size: 14px;
    margin-bottom: 5px;
}

.modal-left input[type="text"],
.modal-right input[type="text"] {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s;
}

.modal-left input[type="text"]:focus,
.modal-right input[type="text"]:focus {
    outline: none;
    border-color: #006ab3;
}

.modal-left input[type="text"].field-error,
.modal-right input[type="text"].field-error,
.modal-right input[type="file"].field-error {
    border-color: #dc3545;
}

.modal-left input[type="text"].field-error:focus,
.modal-right input[type="text"].field-error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.options-section {
    margin-top: 10px;
}

.options-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 10px;
}

.action-buttons .btn {
    flex: 1;
}

.btn-create-tour {
    background: #006ab3;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-create-tour:hover {
    background: #005a9e;
}

.btn-add-panoramas {
    background: #3fc4eb;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-add-panoramas:hover {
    background: #2eb3d9;
}

.upload-limits {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.limit-item {
    color: #666;
    font-size: 12px;
    margin-bottom: 5px;
}

.panorama-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.panorama-header h3 {
    font-size: 18px;
    color: #006ab3;
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.panorama-header .btn-remove-pano {
    margin-left: auto;
    flex-shrink: 0;
}

.btn-remove-pano {
    background: #dc3545;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    white-space: nowrap;
    width: auto;
}

.btn-remove-pano:hover {
    background: #c82333;
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-input-wrapper.field-error .file-label {
    background: #dc3545;
    border: 2px solid #dc3545;
}

.file-input {
    display: none;
}

.file-label {
    background: #006ab3;
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    line-height: 1.5;
    min-width: 120px;
}

.file-label:hover {
    background: #005a9e;
}

.file-name {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.file-display {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.file-name-display {
    color: #666;
    font-size: 14px;
    font-weight: 600;
}

.modal-right small {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}


/* Responsive for modal */
@media (max-width: 968px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
}

