/* Admin Panel Specific Styles */

/* Admin Header */
.admin-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.admin-header .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
}

.admin-header .nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.admin-header .logo {
    font-size: 1.4rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.admin-header .logo span {
    color: #3498db;
}

.admin-header .nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.admin-header .nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.admin-header .nav-links a:hover {
    color: #3498db;
}

.admin-header .nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-welcome {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #c0392b;
    color: white;
}

/* Admin Sidebar */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 250px;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    padding: 1.5rem 0;
    z-index: 999;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0 1rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: #495057;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    position: relative;
}

.sidebar-menu a:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.sidebar-menu a.active {
    background: #3498db;
    color: white;
    font-weight: 500;
}

.badge {
    position: absolute;
    right: 1rem;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.sidebar-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.sidebar-section h4 {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    padding: 0 1rem;
}

.btn-quick {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1rem;
    background: #2ecc71;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 0.3rem 0;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-quick:hover {
    background: #27ae60;
    color: white;
}

/* Main Content */
.admin-main {
    margin-left: 250px;
    margin-top: 60px;
    padding: 2rem;
    min-height: calc(100vh - 120px);
}

/* Dashboard */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.stat-info h3 {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.dashboard-section {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.view-all {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.table-responsive {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.dashboard-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.rooms-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.room-mini-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.room-mini-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.room-mini-info {
    padding: 1rem;
}

.room-mini-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.room-mini-info p {
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.btn-small {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-action-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.quick-action-btn:hover {
    border-color: #3498db;
    transform: translateY(-3px);
}

.quick-action-btn i {
    font-size: 2rem;
    color: #3498db;
}

.quick-action-btn span {
    color: #2c3e50;
    font-weight: 500;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-primary, .btn-secondary {
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #2980b9;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    color: white;
}

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-box input {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    width: 250px;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.room-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.text-muted {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0.3rem 0 0 0;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-edit, .btn-upload, .btn-delete {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    width: fit-content;
}

.btn-edit {
    background: #3498db;
    color: white;
}

.btn-upload {
    background: #9b59b6;
    color: white;
}

.btn-delete {
    background: #e74c3c;
    color: white;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Forms */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-section h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-help {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.image-upload-section {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.upload-option {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.upload-option h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.upload-divider {
    text-align: center;
    color: #6c757d;
    font-weight: 600;
}

.file-upload-area {
    text-align: center;
}

.file-input {
    display: none;
}

.file-upload-label {
    display: block;
    padding: 3rem;
    border: 2px dashed #3498db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-label:hover {
    background: #f0f8ff;
    border-color: #2980b9;
}

.file-upload-label i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
    display: block;
}

.file-upload-label span {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.file-upload-label p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.image-preview {
    margin-top: 1rem;
}

.preview-container {
    text-align: center;
}

.preview-container img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.help-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.btn-large {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

/* Upload Form */
.file-upload-box {
    position: relative;
}

.file-input-large {
    display: none;
}

.file-upload-label-large {
    display: block;
    padding: 4rem 2rem;
    border: 3px dashed #3498db;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    background: #f8f9fa;
}

.file-upload-label-large:hover,
.file-upload-label-large.highlight {
    background: #f0f8ff;
    border-color: #2980b9;
}

.upload-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.upload-text h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.upload-text p {
    color: #6c757d;
    margin: 0;
}

.upload-preview {
    margin-top: 2rem;
}

.preview-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.preview-card img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.preview-details h5 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.preview-details p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.upload-instructions {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 5px 5px 0;
}

.upload-instructions h4 {
    color: #856404;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.upload-instructions ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #856404;
}

.uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.upload-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.upload-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.upload-info {
    padding: 0.8rem;
    background: #f8f9fa;
}

.upload-info p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

/* Current Room Info */
.current-room-info {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #dee2e6;
}

.current-image {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.current-room-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-box {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.login-header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.login-header p {
    color: #6c757d;
    margin: 0;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.login-btn {
    width: 100%;
    padding: 0.8rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #2980b9;
}

.login-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.login-footer p {
    margin: 0.3rem 0;
}

.login-footer .note {
    font-size: 0.8rem;
    color: #e74c3c;
    margin-top: 0.8rem;
}

.back-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.back-link a {
    color: #3498db;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Admin Footer */
.admin-footer {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    margin-left: 250px;
    border-top: 1px solid #34495e;
}

.admin-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-footer p {
    margin: 0;
    font-size: 0.9rem;
}

.admin-footer strong {
    color: #3498db;
}

/* Responsive Design */
@media (max-width: 992px) {
    .admin-sidebar {
        width: 200px;
    }
    
    .admin-main {
        margin-left: 200px;
    }
    
    .admin-footer {
        margin-left: 200px;
    }
    
    .image-upload-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .upload-divider {
        order: 2;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        display: none;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-footer {
        margin-left: 0;
    }
    
    .admin-header .nav-links {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-footer .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}