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

body {
    font-family: 'Arial', sans-serif;
    background: #f8f9fa;
}

.admin-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

/* ─── Sidebar ─── */
.sidebar {
    background: #2c3e50;
    color: white;
    padding: 20px;
    min-height: 100vh;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.sidebar-header h2 {
    color: #ffd700;
    font-size: 24px;
    margin: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li { margin-bottom: 10px; }

.sidebar-menu a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    font-weight: 500;
}

.sidebar-menu a:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.sidebar-menu a.active {
    background: #ffd700;
    color: #2c3e50;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ─── Main Content ─── */
.main-content { padding: 30px; }

.page-title {
    margin-bottom: 30px;
    color: #2c3e50;
}

/* ─── Form ─── */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}

.form-group input[type="file"] {
    padding: 8px;
    border: 2px dashed #e1e8ed;
    background: #f8f9fa;
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    min-height: 150px;
    border: 2px dashed #e1e8ed;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
}

.image-preview img {
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-preview img:hover { transform: scale(1.05); }

.submit-btn {
    background: #ffd700;
    color: #2c3e50;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.submit-btn:disabled {
    background: #e1e8ed;
    cursor: not-allowed;
    transform: none;
}

/* ─── Property List ─── */
.property-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.property-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.property-card:hover { transform: translateY(-5px); }

.property-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover img { transform: scale(1.05); }

.property-info { padding: 15px; }
.property-info h3 { color: #2c3e50; margin-bottom: 10px; }
.property-info p { color: #666; margin: 5px 0; }

.property-actions {
    padding: 15px;
    border-top: 1px solid #e1e8ed;
    display: flex;
    gap: 10px;
}

.edit-btn,
.delete-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    flex: 1;
    transition: all 0.3s ease;
}

.edit-btn {
    background: #ffd700;
    color: #2c3e50;
}

.edit-btn:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

.delete-btn {
    background: #e74c3c;
    color: white;
}

.delete-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* ─── Dashboard Stats ─── */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #ffd700;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e67e22;
}

.stat-card .stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 5px;
}
