/* ===== ADMIN COMMON STYLES ===== */
/* File CSS chung cho toàn bộ admin panel */

/* Common button styles */
.btn-edit-icon {
    color: #0d6efd;
}

.btn-edit-icon:hover {
    color: #0b5ed7;
}

.btn-edit-icon i {
    font-size: 18px;
    line-height: 1;
}

/* Status indicators */
.status-active,
.status-stop {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    vertical-align: middle;
}

/* Active: xanh + viền mờ */
.status-active {
    background: #16a34a; /* green-600 */
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .22);
}

/* Inactive: đỏ + viền mờ */
.status-stop {
    background: #ef4444; /* red-500 */
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .22);
}

/* Nếu trước đó có pseudo-element tạo vệt trắng thì tắt đi */
.status-active::after,
.status-stop::after {
    content: none !important;
}

/* Avatar styles */
.avatar-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    color: #64748b;
    font-size: 16px;
    border-radius: 50%;
}

/* Common table styles */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px 0;
}

/* Common form styles */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Common card styles */
.card {
    border: 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border-radius: 0.5rem;
}

.card-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}

/* Common spacing utilities */
.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

/* Common text utilities */
.text-muted {
    color: #6b7280;
}

.text-center {
    text-align: center;
}

/* Common responsive utilities */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }
    
    .d-flex {
        flex-direction: column;
    }
    
    .gap-3 {
        gap: 0.5rem !important;
    }
}

/* Common animation utilities */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
