/**
 * Modern Admin Design - Airbnb Style
 * تصميم إداري حديث بأسلوب Airbnb
 */

/* ==================== البطاقات الحديثة ==================== */
.modern-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.modern-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #F3F4F6;
}

.modern-card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ==================== الإحصائيات ==================== */
.stat-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: bold;
    color: #111827;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card-label {
    color: #6B7280;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ==================== الجداول الحديثة ==================== */
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.modern-table thead {
    background: #F9FAFB;
}

.modern-table th {
    padding: 1rem;
    text-align: right;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #E5E7EB;
}

.modern-table td {
    padding: 1rem;
    border-bottom: 1px solid #F3F4F6;
    color: #1F2937;
}

.modern-table tbody tr {
    transition: all 0.2s ease;
}

/* ==================== الأزرار الحديثة ==================== */
.modern-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.modern-btn-primary {
    background: #000;
    color: white;
    border-color: #000;
}

.modern-btn-secondary {
    background: white;
    color: #374151;
    border-color: #D1D5DB;
}

.modern-btn-danger {
    background: white;
    color: #DC2626;
    border-color: #FCA5A5;
}

.modern-btn-success {
    background: white;
    color: #059669;
    border-color: #6EE7B7;
}

/* ==================== الحقول الحديثة ==================== */
.modern-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
}

.modern-input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.modern-input-icon {
    position: relative;
}

.modern-input-icon input {
    padding-right: 3rem;
}

.modern-input-icon .icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
}

/* ==================== الشارات الحديثة ==================== */
.modern-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
}

.modern-badge-success {
    background: #ECFDF5;
    color: #059669;
    border-color: #6EE7B7;
}

.modern-badge-danger {
    background: #FEF2F2;
    color: #DC2626;
    border-color: #FCA5A5;
}

.modern-badge-warning {
    background: #FFFBEB;
    color: #D97706;
    border-color: #FCD34D;
}

.modern-badge-info {
    background: #EFF6FF;
    color: #2563EB;
    border-color: #93C5FD;
}

.modern-badge-gray {
    background: #F9FAFB;
    color: #6B7280;
    border-color: #E5E7EB;
}

/* ==================== البحث الحديث ==================== */
.modern-search {
    position: relative;
    max-width: 32rem;
}

.modern-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #E5E7EB;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.modern-search input:focus {
    outline: none;
    border-color: #000;
}

.modern-search .search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
}

/* ==================== التبويبات الحديثة ==================== */
.modern-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #E5E7EB;
    margin-bottom: 2rem;
}

.modern-tab {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #6B7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border-left: none;
    border-right: none;
    border-top: none;
}

.modern-tab.active {
    color: #000;
    border-bottom-color: #000;
}

/* ==================== القوائم المنسدلة الحديثة ==================== */
.modern-dropdown {
    position: relative;
    display: inline-block;
}

.modern-dropdown-content {
    position: absolute;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    min-width: 12rem;
    z-index: 50;
    padding: 0.5rem;
}

.modern-dropdown-item {
    padding: 0.75rem 1rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

/* ==================== التنبيهات الحديثة ==================== */
.modern-alert {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 2px solid;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.modern-alert-success {
    background: #ECFDF5;
    border-color: #6EE7B7;
    color: #065F46;
}

.modern-alert-error {
    background: #FEF2F2;
    border-color: #FCA5A5;
    color: #991B1B;
}

.modern-alert-warning {
    background: #FFFBEB;
    border-color: #FCD34D;
    color: #92400E;
}

.modern-alert-info {
    background: #EFF6FF;
    border-color: #93C5FD;
    color: #1E40AF;
}

/* ==================== التحميل ==================== */
.modern-spinner {
    border: 3px solid #F3F4F6;
    border-top-color: #000;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== المرفقات ==================== */
.modern-empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.modern-empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.modern-empty-state-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.modern-empty-state-text {
    color: #6B7280;
    margin-bottom: 1.5rem;
}

/* ==================== الأيقونات ==================== */
.icon-left {
    margin-left: 0.5rem;
}

.icon-right {
    margin-right: 0.5rem;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .modern-card {
        padding: 1rem;
    }

    .stat-card-value {
        font-size: 1.5rem;
    }

    .modern-table {
        font-size: 0.875rem;
    }

    .modern-table th,
    .modern-table td {
        padding: 0.75rem 0.5rem;
    }
}
