/* notifications.css */

.notifications-tabs {
	width: 100%;
}

.tab-nav {
	list-style: none;
	padding: 0;
	margin: 0;
	border-bottom: 2px solid #ddd;
	display: flex;
	background: #f5f5f5;
}

.tab-nav li {
	padding: 12px 24px;
	cursor: pointer;
	border-right: 1px solid #ddd;
	transition: background-color 0.3s;
}

.tab-nav li:last-child {
	border-right: none;
}

.tab-nav li:hover,
.tab-nav li.tab-active {
	background: white;
	font-weight: bold;
}

.tab-content {
	display: none;
	padding: 20px;
	background: white;
	border: 1px solid #ddd;
	border-top: none;
}

.tab-content.tab-active {
	display: block;
}

.tab-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.tab-header h2 {
	margin: 0;
	color: #333;
}

.btn-add, .btn-edit, .btn-delete {
	padding: 6px 12px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	margin-left: 5px;
	font-size: 14px;
}

.btn-add {
	background: #007cba;
	color: white;
}

.btn-edit {
	background: #f0ad4e;
	color: white;
}

.btn-delete {
	background: #d9534f;
	color: white;
}

.btn-add:hover { background: #005a87; }
.btn-edit:hover { background: #ec971f; }
.btn-delete:hover { background: #c9302c; }

.data-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
	background: white;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.data-table th,
.data-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #ddd;
}

.data-table th {
	background: #f8f9fa;
	font-weight: bold;
	color: #333;
}

.data-table tr:hover {
	background: #f5f5f5;
}

.actions {
	white-space: nowrap;
}

.template-preview {
	cursor: pointer;
	color: #007cba;
	text-decoration: underline;
}

.template-preview:hover {
	color: #005a87;
}

.form-container {
	background: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	max-width: 600px;
	margin: 0 auto;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

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

.form-group small {
	color: #666;
	font-size: 12px;
}

.form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid #eee;
}

.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.message {
	position: fixed;
	top: 20px;
	right: 20px;
	padding: 12px 20px;
	border-radius: 4px;
	color: white;
	font-weight: bold;
	z-index: 1000;
	max-width: 300px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.message.success {
	background: #28a745;
}

.message.error {
	background: #dc3545;
}

.message.info {
	background: #17a2b8;
}

.emptytable {
	text-align: center;
	color: #666;
	font-style: italic;
	padding: 40px;
	display: block;
}

/* Responsive */
@media (max-width: 768px) {
	.tab-nav {
		flex-direction: column;
	}
	
	.tab-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	
	.data-table {
		font-size: 14px;
	}
	
	.data-table th,
	.data-table td {
		padding: 8px 6px;
	}
}

