/* modules/manage-units/style.css */

.venus-manage-units-page {
    padding: 20px 0;
}

/* هدر */
.units-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.units-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.units-header h1 {
    color: #ffffff;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.units-header h1 i {
    color: #f0b400;
}

.units-total {
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 14px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.units-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* آمار */
.units-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.07);
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

/* فیلترها */
.units-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.filter-group select,
.filter-group input {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 13px;
    font-family: 'Estedad', 'Vazir', sans-serif;
    transition: all 0.3s ease;
    min-width: 120px;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: rgba(0, 200, 200, 0.4);
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

/* جدول */
.units-table-container {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 4px;
}

.units-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.units-table thead {
    background: rgba(255, 255, 255, 0.04);
}

.units-table th {
    padding: 10px 12px;
    text-align: right;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.units-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.unit-status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.status-active {
    background: rgba(0, 200, 200, 0.2);
    color: #00c8c8;
}

.status-inactive {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.status-reserved {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

/* عملیات */
.unit-actions {
    display: flex;
    gap: 4px;
}

.unit-actions button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 13px;
}

.unit-actions button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.unit-actions .edit-btn:hover {
    color: #4da6ff;
}

.unit-actions .delete-btn:hover {
    color: #ff6b6b;
}

/* Pagination */
.units-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

#page-info {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.empty-row {
    text-align: center !important;
    padding: 30px 20px !important;
    color: rgba(255, 255, 255, 0.3);
}

.empty-row i {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .units-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select,
    .filter-group input {
        width: 100%;
        min-width: unset;
    }
    
    .units-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .units-header-actions {
        width: 100%;
    }
    
    .units-header-actions .venus-auth-btn {
        flex: 1;
        text-align: center;
    }
    
    .units-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}