/* conforoom-public.css */
.conforoom-proprio-dashboard {
	font-family: 'Inter', 'Roboto', sans-serif;
	background: #f4f7f6;
	padding: 15px;
	border-radius: 15px;
	max-width: 600px;
	margin: 0 auto;
	color: #333;
}

.conforoom-proprio-dashboard * {
	box-sizing: border-box;
}

/* Header */
.cpd-header {
	background: linear-gradient(135deg, #2c3e50, #3498db);
	color: white;
	padding: 25px 20px;
	border-radius: 12px;
	margin-bottom: 20px;
	text-align: center;
	box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
}

.cpd-header h2 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
}

.cpd-header p {
	margin: 5px 0 0;
	font-size: 0.9rem;
	opacity: 0.9;
}

/* Cards Container */
.cpd-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 15px;
	margin-bottom: 25px;
}

/* Base Card Style */
.cpd-card {
	background: white;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s, box-shadow 0.2s;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.cpd-card:active {
	transform: scale(0.98);
}

.cpd-card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
}

.cpd-card.gains::before { background: #27ae60; }
.cpd-card.charges::before { background: #e74c3c; }
.cpd-card.solde::before { background: #2980b9; }

.cpd-card-title {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #7f8c8d;
	margin-bottom: 8px;
	font-weight: 600;
}

.cpd-card-amount {
	font-size: 1.8rem;
	font-weight: 800;
	margin: 0;
	line-height: 1.2;
}

.cpd-card.gains .cpd-card-amount { color: #27ae60; }
.cpd-card.charges .cpd-card-amount { color: #e74c3c; }
.cpd-card.solde .cpd-card-amount { color: #2980b9; }

.cpd-card-sub {
	font-size: 0.9rem;
	color: #95a5a6;
	margin-top: 5px;
}

/* Select Box */
.cpd-select-wrapper {
	margin-bottom: 20px;
}
.cpd-select-wrapper select {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 1rem;
	background: white;
	color: #333;
	font-family: inherit;
	box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Justificatifs Table */
.cpd-section-title {
	font-size: 1.2rem;
	color: #2c3e50;
	margin: 0 0 15px;
	font-weight: 700;
	border-bottom: 2px solid #ecf0f1;
	padding-bottom: 10px;
}

.cpd-list {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cpd-list-item {
	padding: 15px;
	border-bottom: 1px solid #f1f2f6;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.cpd-list-item:last-child {
	border-bottom: none;
}

.cpd-list-item-info strong {
	display: block;
	color: #2c3e50;
	font-size: 1rem;
	margin-bottom: 3px;
}

.cpd-list-item-info span {
	font-size: 0.8rem;
	color: #7f8c8d;
}

.cpd-list-item-amount {
	text-align: right;
}

.cpd-list-item-amount span {
	display: block;
	font-weight: 700;
	color: #e74c3c;
}

.cpd-btn-justif {
	display: inline-block;
	margin-top: 5px;
	padding: 5px 10px;
	background: #ecf0f1;
	color: #2c3e50;
	border-radius: 5px;
	font-size: 0.75rem;
	text-decoration: none;
	transition: background 0.2s;
}

.cpd-btn-justif:hover {
	background: #bdc3c7;
}

/* Animations */
@keyframes slideUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

.cpd-animate {
	animation: slideUp 0.5s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

.cpd-delay-1 { animation-delay: 0.1s; }
.cpd-delay-2 { animation-delay: 0.2s; }
.cpd-delay-3 { animation-delay: 0.3s; }

