@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --primary-color: #2563eb;
    --text-main: #1e293b;
    --text-muted: #64748b;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    margin: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
}

.sidebar-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-align: center;
    text-decoration: none;
    display: block;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255,255,255, 0.8);
    color: var(--primary-color);
    transform: translateX(5px);
}

.nav-item i {
    font-size: 20px;
}

.main-content {
    flex: 1;
    padding: 20px 40px 20px 0;
}

/* Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    margin-bottom: 30px;
}

.header-title h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.header-title p {
    margin: 5px 0 0;
    color: var(--text-muted);
}

.btn-primary-glass {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary-glass:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    color: white;
}

/* Property Grid (YouTube Style) */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.property-card {
    padding: 16px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

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

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

.property-price {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
}

.card-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.card-content p {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-icon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-edit {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
}

.btn-edit:hover {
    background: white;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

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

/* Forms */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-main);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
}

.login-card h2 {
    margin: 0 0 30px;
    font-size: 28px;
}

.login-btn {
    width: 100%;
    padding: 14px;
    justify-content: center;
    font-size: 16px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }
    .sidebar {
        width: auto;
        height: auto;
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding: 15px;
        margin: 15px;
    }
    .sidebar-logo {
        margin-bottom: 0;
        margin-right: 20px;
        align-self: center;
    }
    .nav-menu {
        flex-direction: row;
    }
    .main-content {
        padding: 0 15px 20px;
    }
    .top-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}
