/* LFCC Leave Management Frontend Styles */

.lfcc-leave-dashboard {
	max-width: 1000px;
	margin: 20px 0;
}

.lfcc-leave-dashboard h2 {
	color: #0073aa;
	border-bottom: 2px solid #0073aa;
	padding-bottom: 10px;
	margin-bottom: 20px;
}

.lfcc-leave-dashboard h3 {
	color: #333;
	margin-top: 25px;
	margin-bottom: 15px;
}

/* Leave Balance Section */
.leave-balance-section {
	margin-bottom: 30px;
}

.balance-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
	margin-bottom: 20px;
}

.balance-card {
	background: white;
	border: 1px solid #ddd;
	border-radius: 5px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s;
}

.balance-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.balance-type {
	font-size: 14px;
	color: #666;
	margin-bottom: 10px;
	font-weight: 500;
}

.balance-amount {
	font-size: 32px;
	font-weight: bold;
	color: #0073aa;
}

/* Leave Requests Table */
.leave-requests-table {
	width: 100%;
	border-collapse: collapse;
	background: white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	border-radius: 5px;
	overflow: hidden;
}

.leave-requests-table thead {
	background-color: #0073aa;
	color: white;
}

.leave-requests-table th {
	padding: 15px;
	text-align: left;
	font-weight: 600;
}

.leave-requests-table td {
	padding: 12px 15px;
	border-bottom: 1px solid #eee;
}

.leave-requests-table tbody tr:hover {
	background-color: #f5f5f5;
}

.leave-requests-table a {
	color: #0073aa;
	text-decoration: none;
	font-weight: 500;
}

.leave-requests-table a:hover {
	text-decoration: underline;
}

/* Status Badges */
.status-pending {
	background-color: #fff3cd;
	color: #856404;
	padding: 5px 10px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
}

.status-approved {
	background-color: #d4edda;
	color: #155724;
	padding: 5px 10px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
}

.status-rejected {
	background-color: #f8d7da;
	color: #721c24;
	padding: 5px 10px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
}

/* Leave Form Styles */
.lfcc-leave-form {
	max-width: 500px;
	margin: 20px 0;
	background: white;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 5px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lfcc-leave-form h2 {
	color: #0073aa;
	margin-top: 0;
}

.form-group {
	margin-bottom: 15px;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.form-group textarea {
	resize: vertical;
	min-height: 100px;
}

.form-group .button {
	width: 100%;
	padding: 12px;
	background-color: #0073aa;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s;
}

.form-group .button:hover {
	background-color: #005a87;
}

/* Form Messages */
.form-message {
	margin-top: 15px;
	padding: 15px;
	border-radius: 4px;
	display: none;
}

.form-message.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.form-message.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.form-message p {
	margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
	.balance-cards {
		grid-template-columns: 1fr;
	}

	.leave-requests-table {
		font-size: 14px;
	}

	.leave-requests-table th,
	.leave-requests-table td {
		padding: 10px;
	}

	.lfcc-leave-form {
		max-width: 100%;
	}
}
