/**
 * Public styles for PNPC Pocket Service Desk
 *
 * @package PNPC_Pocket_Service_Desk
 */

.pnpc-psd-create-ticket,
.pnpc-psd-my-tickets,
.pnpc-psd-ticket-detail,
.pnpc-psd-profile-settings,
.pnpc-psd-dashboard {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px;
}

/* Profile settings layout: center the two-column grid within the shortcode container. */
.pnpc-psd-profile-settings .pnpc-psd-profile-grid{
	justify-content: center;
}

.pnpc-psd-create-ticket h2,
.pnpc-psd-my-tickets h2,
.pnpc-psd-ticket-detail h2,
.pnpc-psd-profile-settings h2,
.pnpc-psd-dashboard h2 {
	margin-bottom: 20px;
	color: #333;
}

/* Form styles */
.pnpc-psd-form-group {
	margin-bottom: 20px;
}

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

.pnpc-psd-form-group input[type="text"],
.pnpc-psd-form-group select,
.pnpc-psd-form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 14px;
}

.pnpc-psd-form-group textarea {
	resize: vertical;
}

.required {
	color: #dc3545;
}

/* Button styles */
.pnpc-psd-button {
	display: inline-block;
	padding: 10px 20px;
	background: #f0f0f0;
	color: #333;
	text-decoration: none;
	border: 1px solid #ddd;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.3s ease;
}

.pnpc-psd-button:hover {
	background: #e0e0e0;
}

.pnpc-psd-button-primary {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

.pnpc-psd-button-primary:hover {
	background: #135e96;
	border-color: #135e96;
	color: #fff;
}

.pnpc-psd-button-small {
	padding: 5px 10px;
	font-size: 12px;
}

/* Message styles */
.pnpc-psd-message {
	padding: 10px;
	margin-top: 10px;
	border-radius: 5px;
	display: none;
}

.pnpc-psd-message.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	display: block;
}

.pnpc-psd-message.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	display: block;
}

/* Tickets list */
.pnpc-psd-tickets-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pnpc-psd-ticket-item {
	border: 1px solid #e0e0e0;
	border-radius: 5px;
	padding: 20px;
	background: #fff;
	transition: box-shadow 0.3s ease;
}

.pnpc-psd-ticket-item:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pnpc-psd-ticket-item h3 {
	margin: 0 0 10px 0;
}

.pnpc-psd-ticket-item h3 a,
.pnpc-psd-ticket-item h4 a {
	color: #2271b1;
	text-decoration: none;
}

.pnpc-psd-ticket-item h3 a:hover,
.pnpc-psd-ticket-item h4 a:hover {
	text-decoration: underline;
}

.pnpc-psd-ticket-meta {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.pnpc-psd-ticket-number {
	font-weight: 600;
	color: #666;
}

.pnpc-psd-ticket-excerpt {
	color: #666;
	margin-bottom: 15px;
}

.pnpc-psd-ticket-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: #999;
}

.pnpc-psd-no-tickets {
	text-align: center;
	padding: 40px;
	color: #666;
	font-size: 16px;
}

/* Status and priority badges */
.pnpc-psd-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.pnpc-psd-status-open {
	background: #d4edda;
	color: #155724;
}

.pnpc-psd-status-in-progress {
	background: #fff3cd;
	color: #856404;
}

.pnpc-psd-status-waiting {
	background: #d1ecf1;
	color: #0c5460;
}

.pnpc-psd-status-closed {
	background: #e0e0e0;
	color: #666;
}

.pnpc-psd-priority {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.pnpc-psd-priority-low {
	background: #e0e0e0;
	color: #666;
}

.pnpc-psd-priority-normal {
	background: #d1ecf1;
	color: #0c5460;
}

.pnpc-psd-priority-high {
	background: #fff3cd;
	color: #856404;
}

.pnpc-psd-priority-urgent {
	background: #f8d7da;
	color: #721c24;
}

/* Ticket detail */
.pnpc-psd-ticket-header {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 2px solid #e0e0e0;
}

.pnpc-psd-ticket-date {
	color: #666;
	font-size: 14px;
	margin-top: 10px;
}

.pnpc-psd-ticket-description,
.pnpc-psd-ticket-responses,
.pnpc-psd-add-response {
	margin-bottom: 30px;
}

.pnpc-psd-ticket-description h3,
.pnpc-psd-ticket-responses h3,
.pnpc-psd-add-response h3 {
	margin-bottom: 15px;
	color: #333;
	font-size: 18px;
}

.pnpc-psd-ticket-content {
	padding: 20px;
	background: #f9f9f9;
	border-radius: 5px;
	border-left: 3px solid #2271b1;
	line-height: 1.6;
}

/* Responses */
.pnpc-psd-response {
	margin-bottom: 20px;
	padding: 20px;
	border-radius: 5px;
	border: 1px solid #e0e0e0;
}

.pnpc-psd-response-staff {
	background: #e7f3ff;
	border-left: 3px solid #2271b1;
}

.pnpc-psd-response-customer {
	background: #f9f9f9;
	border-left: 3px solid #666;
}

.pnpc-psd-response-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.pnpc-psd-response-author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pnpc-psd-staff-badge {
	background: #2271b1;
	color: #fff;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
}

.pnpc-psd-response-date {
	color: #999;
	font-size: 13px;
}

.pnpc-psd-response-content {
	color: #333;
	line-height: 1.6;
}

.pnpc-psd-no-responses {
	text-align: center;
	padding: 30px;
	color: #666;
	background: #f9f9f9;
	border-radius: 5px;
}

.pnpc-psd-ticket-closed-notice {
	padding: 20px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 5px;
	text-align: center;
	margin-bottom: 20px;
}

.pnpc-psd-ticket-actions {
	margin-top: 30px;
}

/* Profile settings */
.pnpc-psd-profile-section {
	margin-bottom: 40px;
	padding: 20px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 5px;
}

.pnpc-psd-profile-section h3 {
	margin-bottom: 15px;
	color: #333;
}

.pnpc-psd-profile-image-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.pnpc-psd-current-image img {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #e0e0e0;
}

.pnpc-psd-help-text {
	color: #666;
	font-size: 13px;
	margin-top: 5px;
}

.pnpc-psd-info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 15px;
}

.pnpc-psd-info-item {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.pnpc-psd-info-item label {
	font-weight: 600;
	color: #666;
}

/* Dashboard */
.pnpc-psd-dashboard-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.pnpc-psd-stat-box {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 5px;
	padding: 20px;
	text-align: center;
}

.pnpc-psd-stat-box h3 {
	margin-bottom: 10px;
	color: #666;
	font-size: 14px;
}

.pnpc-psd-stat-number {
	font-size: 36px;
	font-weight: 700;
	color: #2271b1;
}

.pnpc-psd-quick-actions,
.pnpc-psd-recent-tickets,
.pnpc-psd-woocommerce-section {
	margin-bottom: 30px;
	padding: 20px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 5px;
}

.pnpc-psd-action-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Responsive styles */
@media (max-width: 768px) {
	.pnpc-psd-ticket-footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.pnpc-psd-response-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 5px;
	}

	.pnpc-psd-action-buttons {
		flex-direction: column;
	}

	.pnpc-psd-button {
		width: 100%;
		text-align: center;
	}
}


/* New/unread indicators for tickets (public) */
.pnpc-psd-new-indicator-badge {
	display: inline-block;
	min-width: 18px;
	padding: 0 6px;
	border-radius: 999px;
	font-size: 11px;
	line-height: 1.6;
	text-align: center;
	background: #46b450;
	color: #fff;
	font-weight: 600;
	margin-left: 6px;
}

/* =========================
 * [pnpc_services] cards
 * ========================= */
.pnpc-psd-services-list{
	display:flex;
	gap:16px;
	flex-wrap:wrap;
	justify-content:center;
}

.pnpc-psd-services .pnpc-psd-service-item{
	flex:0 0 220px;
	border:1px solid #eee;
	padding:12px;
	border-radius:6px;
	transition:all .15s ease;
}

.pnpc-psd-services .pnpc-psd-service-title{
	margin:0 0 8px;
}

.pnpc-psd-services .pnpc-psd-service-price{
	margin-bottom:8px;
}
