* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.8)), 
                url('../img/bg.png') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 95%;
    height: 95vh;
    border: 1px solid rgba(155, 155, 155, 0.5);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: 100px 1fr;
    gap: 0px;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    grid-row: 1 / 3;
    background: linear-gradient(180deg, #0f3d3e, #1c7c7d);
    padding: 20px;
    overflow-y: auto;
}

.logo img { width: 120px; display: block; margin: 0 auto 30px; }

.line-divider {
    padding: 12px; color: white; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: bold; border-left: 3px solid #46dbc7;
    margin-top: 15px; border-radius: 0 8px 8px 0; user-select: none;
}

.sidebar ul { list-style: none; display: none; padding-left: 10px; }
.sidebar ul.show { display: block; }

.sidebar a {
    color: rgba(255, 255, 255, 0.8); text-decoration: none;
    display: flex; align-items: center; gap: 10px;
    padding: 10px; transition: 0.3s; font-size: 14px;
}

.sidebar a:hover, li.active a { color: white; background: rgba(255,255,255,0.1); border-radius: 8px; }

/* --- Header Section --- */
.header-content {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr auto auto; 
    align-items: center; 
    gap: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 0 30px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-title { font-size: 18px; color: #0f3d3e; }
.welcome-text { color: #1a5d1a; font-size: 12px; font-weight: 600; }

.profile-img { display: flex; align-items: center; gap: 12px; }
.profile-img img {
    width: 40px; height: 40px; border-radius: 50%; border: 2px solid #1a5d1a;
}

.main-content {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto 1fr; 
    gap: 15px;
    padding: 20px;
    align-items: start;
    height: 100%;
}

/* (Select) */
.filter-box{
    border: 1px solid #ddd;
    width: fit-content;
    border-radius: 10px;
    background-color: #f9f9f9;
    padding: 10px 15px;
}

.filter-box select {
    color: #333;
    outline: none;
    cursor: pointer;
    border: none;
}

.filter-box i{
    color: #1c7c7d; 
    font-size: 15px;
}

/* (Input + Button) */
.search {
    display: flex;
    align-items: center;
    background: white;
    padding: 5px;
    border-radius: 10px;
    border: 1px solid #ddd;
    grid-column: 2;
    grid-row: 1;
    gap: 5px;
    width: fit-content;
}

.search input[type="search"] {
    border: none;
    padding: 8px 15px;
    outline: none;
    width: 200px;
    background: transparent;
}

.search input[type="submit"] {
    background-color: #1c7c7d;
    color: white;
    border: none;
    width: 100px;
    padding: 8px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
}

/* (Add New User) */
.btn-add {
    grid-column: 3;
    grid-row: 1;
    margin-left: 0;
    background-color: #1c7c7d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    width: auto;
    transition: 0.3s ease;
}

.btn-add:hover {
    background-color: #268a85;
    transform: scale(1.05);
}

.table-wrapper {
    grid-column: 1 / 4;
    grid-row: 2;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    overflow-y: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.users-table th {
    background-color: #f8f9fa;
    padding: 15px;
    color: #555;
    font-size: 14px;
    border-bottom: 2px solid #eee;
}

.users-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
}

/* خاص بأنواع السكن */
.type-tag {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.type-tag.hotel { background: #e3f2fd; color: #1976d2; }
.type-tag.house { background: #f3e5f5; color: #7b1fa2; }

/* زر عرض الوثائق */
.btn-view-docs {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: 0.3s;
}

.btn-view-docs:hover {
    background: #268a85;
    color: white;
}

.btn-icon { width: 32px; height: 32px; border: none; border-radius: 8px; cursor: pointer; transition: 0.2s; }
.btn-icon.edit { background: #e0f2fe; color: #0284c7; }
.btn-icon.block { background: #fee2e2; color: #dc2626; }

.actions-cell button:hover {
    transform: scale(1.1);
}


/* Btn Add new property */
/* --- Global Styles --- */
* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Urbanist', 'Segoe UI', sans-serif;
}

/* --- Modal Setup --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 61, 62, 0.7); /* لون داكن شفاف */
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 25px;
    padding: 30px;
    position: relative;
    overflow-y: auto;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

/* --- Header & Close Button --- */
.form-header {
    text-align: center;
    margin-bottom: 25px;
    padding-right: 20px;
}

.close-modal {
    position: absolute;
    top: 20px; right: 25px;
    background: #f1f5f9;
    border: none;
    font-size: 24px;
    width: 35px; height: 35px;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    transition: 0.3s;
}

.close-modal:hover {
    background: #fee2e2;
    color: #dc2626;
}

.form-header h1 {
    color: #1c7c7d;
    font-size: 26px;
    margin-bottom: 5px;
}

.form-header p { color: #666; font-size: 14px; }

/* --- Sections & Inputs --- */
.form-section { margin-bottom: 25px; }
.form-section h3 {
    font-size: 16px;
    color: #1c7c7d;
    border-bottom: 2px solid #f0f7f7;
    padding-bottom: 8px;
    margin-bottom: 15px;
    display: flex; align-items: center; gap: 10px;
}

.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.full-width { grid-column: 1 / 3; }

.input-group label {
    display: block; font-weight: 600; font-size: 13px;
    margin-bottom: 5px; color: #444;
}

.input-group input, .input-group select, .input-group textarea {
    width: 100%; padding: 10px 12px;
    border: 1px solid #ddd; border-radius: 10px;
    outline: none; font-size: 14px; transition: 0.3s;
}

.input-group input:focus { border-color: #1c7c7d; }

/* --- Upload Area --- */
.upload-area {
    border: 2px dashed #1c7c7d;
    background: #f0f7f7;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
}

.upload-area i { font-size: 30px; color: #1c7c7d; margin-bottom: 10px; }

/* --- Buttons --- */
.form-footer {
    display: flex; justify-content: flex-end; gap: 12px;
    margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee;
}

.btn-cancel {
    padding: 10px 20px; border: none; background: #f1f5f9;
    color: #64748b; border-radius: 8px; font-weight: 600; cursor: pointer;
}

.btn-submit {
    padding: 10px 25px; border: none; background: #1c7c7d;
    color: white; border-radius: 8px; font-weight: 700;
    cursor: pointer; transition: 0.3s;
}

.btn-submit:hover { background: #268a85; transform: translateY(-2px); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #1c7c7d; border-radius: 10px; }