/* Custom styles for IR-CRM Admin Panel */

/* Dynamic Fields styling */
.dynamic-field-item {
    position: relative;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 10px;
}

.dynamic-field-item:hover {
    background-color: #e9ecef;
}

.dynamic-field-item .remove-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Collection field styling */
.collection-wrapper {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.collection-wrapper .add-btn {
    margin-top: 10px;
}

/* Form row alignment for dynamic fields */
.dynamic-fields-form .form-group {
    margin-bottom: 0;
}

/* Invoice status badges */
.badge.bg-secondary { opacity: 0.8; }
.badge.bg-info { background-color: #17a2b8 !important; }
.badge.bg-success { background-color: #28a745 !important; }
.badge.bg-warning { background-color: #ffc107 !important; color: #212529 !important; }
.badge.bg-danger { background-color: #dc3545 !important; }

/* Dashboard cards */
.dashboard-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Quick action buttons */
.quick-actions .btn {
    transition: all 0.2s;
}

.quick-actions .btn:hover {
    transform: scale(1.02);
}

/* Table improvements */
.table-responsive {
    margin-bottom: 0;
}

/* File upload styling */
.vich-file .custom-file-input:hover {
    cursor: pointer;
}

/* Money field formatting */
.money-field {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 500;
}

/* Collection field items in EasyAdmin */
.ea-collection-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    background-color: #fafafa;
}

.ea-collection-item:hover {
    background-color: #f5f5f5;
}

/* Improved form layout */
.form-panel .form-group label {
    font-weight: 500;
}

/* Status indicator dots */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-dot.success { background-color: #28a745; }
.status-dot.warning { background-color: #ffc107; }
.status-dot.danger { background-color: #dc3545; }
.status-dot.info { background-color: #17a2b8; }
.status-dot.secondary { background-color: #6c757d; }
