/**
 * Elegant Design - Shared styles for control panel new features
 */

.elegant-card {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
	border: none;
	margin-bottom: 2rem;
	overflow: hidden;
}
.elegant-card-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 1.5rem 2rem;
	border: none;
	border-radius: 12px 12px 0 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}
.elegant-card-header h4 {
	margin: 0;
	font-weight: 600;
	font-size: 1.5rem;
}
.elegant-filter-box {
	background: #f8f9fa;
	padding: 1.5rem;
	border-radius: 8px;
	margin-bottom: 1.5rem;
	border: 1px solid #e9ecef;
}
.elegant-btn {
	border-radius: 8px;
	padding: 0.5rem 1.5rem;
	font-weight: 500;
	transition: all 0.3s ease;
	border: none;
}
.elegant-btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}
.elegant-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
	color: white;
}
.elegant-table {
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e9ecef;
}
.elegant-table thead {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}
.elegant-table thead th {
	border: none;
	padding: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.5px;
}
.elegant-table tbody tr {
	transition: all 0.2s ease;
	border-bottom: 1px solid #f0f0f0;
}
.elegant-table tbody tr:hover {
	background: #f8f9ff;
}
.elegant-table tfoot tr {
	background: #f8f9fa;
	font-weight: 600;
	border-top: 2px solid #e9ecef;
}
.elegant-badge {
	padding: 0.4rem 0.8rem;
	border-radius: 20px;
	font-weight: 500;
	font-size: 0.85rem;
}
.badge-pending { background: #fff3cd; color: #856404; }
.badge-approved { background: #d4edda; color: #155724; }
.badge-delivered { background: #d4edda; color: #155724; }
.badge-applied { background: #d4edda; color: #155724; }
.badge-assigned { background: #cce5ff; color: #004085; }
.badge-returned { background: #e2e3e5; color: #383d41; }
.badge-soon { background: #fff3cd; color: #856404; }
.badge-type-add { background: #d4edda; color: #155724; }
.badge-type-deduct { background: #f8d7da; color: #721c24; }
.badge-paid { background: #cce5ff; color: #004085; }
.elegant-empty-state {
	text-align: center;
	padding: 4rem 2rem;
	color: #6c757d;
}
.elegant-empty-state i {
	font-size: 4rem;
	margin-bottom: 1rem;
	opacity: 0.5;
}
.elegant-form-control {
	border-radius: 8px;
	border: 1px solid #e0e0e0;
	padding: 0.6rem 1rem;
	transition: all 0.3s ease;
}
.elegant-form-control:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}
.elegant-modal .modal-content {
	border-radius: 12px;
	border: none;
	box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.elegant-modal .modal-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border-radius: 12px 12px 0 0;
	border: none;
	padding: 1.25rem 1.5rem;
}
.elegant-modal .modal-header .close { color: white; opacity: 0.9; }
.elegant-modal .modal-body { padding: 1.5rem 2rem; }
.elegant-modal .modal-footer {
	border-top: 1px solid #e9ecef;
	padding: 1rem 2rem;
}

/* RTL-Friendly Utilities */
.me-1 { margin-inline-end: 0.25rem !important; }
.me-2 { margin-inline-end: 0.5rem !important; }
.me-3 { margin-inline-end: 1rem !important; }
.me-4 { margin-inline-end: 1.5rem !important; }
.me-5 { margin-inline-end: 3rem !important; }

.ms-1 { margin-inline-start: 0.25rem !important; }
.ms-2 { margin-inline-start: 0.5rem !important; }
.ms-3 { margin-inline-start: 1rem !important; }
.ms-4 { margin-inline-start: 1.5rem !important; }
.ms-5 { margin-inline-start: 3rem !important; }

.pe-1 { padding-inline-end: 0.25rem !important; }
.pe-2 { padding-inline-end: 0.5rem !important; }
.pe-3 { padding-inline-end: 1rem !important; }
.pe-4 { padding-inline-end: 1.5rem !important; }
.pe-5 { padding-inline-end: 3rem !important; }

.ps-1 { padding-inline-start: 0.25rem !important; }
.ps-2 { padding-inline-start: 0.5rem !important; }
.ps-3 { padding-inline-start: 1rem !important; }
.ps-4 { padding-inline-start: 1.5rem !important; }
.ps-5 { padding-inline-start: 3rem !important; }

/* Text alignment utilities */
.text-start { text-align: start !important; }
.text-end { text-align: end !important; }

/* Float utilities */
.float-start { float: inline-start !important; }
.float-end { float: inline-end !important; }

/* Automated Roles */
.automated-role-page .automated-role-card {
	border: 0;
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(28, 40, 64, 0.08);
}
.automated-role-page h2 {
	font-weight: 700;
}
.automated-role-page .card-body h4 {
	font-size: 1.1rem;
	font-weight: 700;
}
.automated-role-page .table thead th {
	background: #f4f7fb;
	border-bottom: 1px solid #e8edf3;
}
.automated-role-page .table tbody tr:hover {
	background: #f9fbff;
}
.automated-role-form .action-row {
	background: #f8fafc;
	border-radius: 10px;
	padding: 10px 0;
}
