/**
 * Lucid Pulse Messenger Support - Main Stylesheet
 *
 * @package LucidPulseMessenger
 * @version 1.0.0
 */

/* General Styles */
.lpmsg-tickets-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

.lpmsg-tickets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.lpmsg-tickets-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #e55d00 !important;
}

.lpmsg-create-button {
    display: flex !important;
    align-items: center;
    gap: 8px;
    background: #e55d00;
    color: white !important;
    border: none;
    padding: 12px 20px;
    border-radius: 10px !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(229, 93, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 0 !important;
}

.lpmsg-first-create-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e55d00;
    color: white !important;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(229, 93, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 0;
}

.lpmsg-create-button:hover {
    background: #cc5200;
    color: white !important;
    box-shadow: 0 4px 12px rgba(229, 93, 0, 0.4);
    transform: translateY(-2px);
}

.lpmsg-first-create-button:hover {
    background: #cc5200;
    color: white !important;
    box-shadow: 0 4px 12px rgba(229, 93, 0, 0.4);
    transform: translateY(-2px);
}

.lpmsg-create-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 0;
}

/* Filters */
.lpmsg-tickets-filters {
    margin-bottom: 20px;
}

.lpmsg-form-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 15px;
}

.lpmsg-form-group label {
    margin-right: 5px;
    font-weight: 500;
}

.lpmsg-form-group select {
    padding: 0px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.lpmsg-filter-button {
    padding: 0px 15px 8px  15px !important;
}

/* Empty State */
.lpmsg-no-tickets {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin: 15px;
}

.lpmsg-no-tickets-icon {
    margin-bottom: 10px;
}

.lpmsg-no-tickets-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #adb5bd;
}



.lpmsg-no-tickets h3 {
    font-size: 20px;
    margin: 0 0 10px;
}

.lpmsg-no-tickets p {
    margin-bottom: 20px;
    color: #6c757d;
}

/* Ticket List */
.lpmsg-tickets-list {
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.lpmsg-tickets-list-header {
    display: flex;
    background-color: #f8f9fa;
    padding: 12px 15px;
    font-weight: 600;
    border-bottom: 1px solid #e5e5e5;
}

.lpmsg-col {
    padding: 0 8px;
}

.lpmsg-col-ticket {
    flex: 0 0 120px;
}

.lpmsg-col-subject {
    flex: 1;
}

.lpmsg-col-status {
    flex: 0 0 100px;
    text-align: center;
}

.lpmsg-col-updated {
    flex: 0 0 150px;
}

.lpmsg-col-actions {
    flex: 0 0 100px;
    text-align: right;
}

.lpmsg-ticket-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    transition: background-color 0.2s ease;
}

.lpmsg-ticket-item:last-child {
    border-bottom: none;
}

.lpmsg-ticket-item:hover {
    background-color: #f1f8ff;
}

.lpmsg-product-link {
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.lpmsg-product-link a {
    color: #666;
    text-decoration: none;
}

.lpmsg-product-link a:hover {
    text-decoration: underline;
}

/* Status Badges */
.lpmsg-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lpmsg-status-open {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.lpmsg-status-pending {
    background-color: #fff3e0;
    color: #e65100;
}

.lpmsg-status-resolved {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.lpmsg-status-closed {
    background-color: #eeeeee;
    color: #616161;
}

/* Priority Labels */
.lpmsg-priority {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.lpmsg-priority-low {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.lpmsg-priority-normal {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.lpmsg-priority-high {
    background-color: #fff3e0;
    color: #e65100;
}

.lpmsg-priority-urgent {
    background-color: #ffebee;
    color: #b71c1c;
}

/* Action Buttons */
.lpmsg-view-button, .lpmsg-messenger-button {
    padding: 0px 10px !important;
    font-size: 12px !important;
    margin-left: 5px !important;
    border-radius: 5px !important;
}

/* Pagination */
.lpmsg-pagination {
    margin-top: 20px;
    text-align: center;
}

.lpmsg-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.lpmsg-pagination li {
    margin: 0 3px;
}

.lpmsg-pagination li a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    border-radius: 4px;
    color: #333;
}

.lpmsg-pagination li a:hover {
    background-color: #f5f5f5;
}

.lpmsg-page-current a {
    background-color: #0073aa;
    border-color: #0073aa;
    color: white !important;
}

/* Ticket View */
.lpmsg-view-ticket-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
}

.lpmsg-ticket-header {
    background: linear-gradient(135deg, #121212 0%, #2a2a2a 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.lpmsg-ticket-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(229, 93, 0, 0.2), transparent 70%);
    z-index: 0;
}

.lpmsg-header-back {
    flex: 0 0 auto;
}

.lpmsg-back-button {
    color: #ff6600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.lpmsg-back-button:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.lpmsg-back-button .dashicons {
    margin-right: 5px;
}

.lpmsg-header-title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.lpmsg-ticket-status .lpmsg-status {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lpmsg-ticket-details {
    padding: 25px;
    background: #f8f9fa;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 0;
    flex-direction: column;
}

.lpmsg-ticket-meta {
    flex: 1;
    min-width: 300px;
    display: flex;
    column-gap: 15px;
}

.lpmsg-meta-item.subject {
    flex: 1;
    min-width: 300px;
    background: #121212;
    color: #fff;
}

.lpmsg-meta-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-content: center;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    text-align: center;
}

.lpmsg-meta-item:last-child {
    border-bottom: none;
}

.lpmsg-meta-item strong {
    color: #495057;
    font-weight: 600;
    min-width: 120px;
    margin-right: 0;
}

.lpmsg-product-image {
    flex-shrink: 0;
}

.lpmsg-product-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.lpmsg-ticket-actions {
    padding: 20px 25px;
    background: white;
    border-top: 1px solid #e9ecef;
    margin-bottom: 0;
    text-align: left;
}

.lpmsg-status-form {
    display: inline-block;
}

.lpmsg-close-button, .lpmsg-reopen-button {
    background: #e55d00;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(229, 93, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 0;
}

.lpmsg-reopen-button {
    background: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.lpmsg-close-button:hover, .lpmsg-reopen-button:hover {
    background: #cc5200;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 93, 0, 0.4);
}

.lpmsg-reopen-button:hover {
    background: #45a049;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* Ticket Replies */
.lpmsg-ticket-replies {
    padding: 25px;
    margin-bottom: 0;
    max-height: none;
    overflow-y: visible;
}

.lpmsg-ticket-replies h3 {
    margin-bottom: 20px;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    margin-top: 0;
}

.lpmsg-date-separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.lpmsg-date-separator:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e5e5e5;
    z-index: 1;
}

.lpmsg-date-separator span {
    background: #f8f9fa;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    border: 1px solid #e9ecef;
    position: relative;
    z-index: 2;
}

.lpmsg-reply {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 12px;
    position: relative;
    max-width: 100%;
}

.lpmsg-reply.lpmsg-mine {
    background: #121212;
    color: white;
    margin-left: 40px;
    flex-direction: row-reverse;
    max-width: 80%;
}

.lpmsg-reply.lpmsg-other {
    background: #f5f5f5;
    margin-right: 40px;
    max-width: 80%;
}

.lpmsg-reply.lpmsg-system {
    background: #fff3e0;
    margin: 0 20px;
    justify-content: center;
    text-align: center;
    max-width: 100%;
}

.lpmsg-reply-avatar {
    margin: 0;
}

.lpmsg-reply-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lpmsg-reply-content {
    flex: 1;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    position: relative;
}

.lpmsg-mine .lpmsg-reply-content {
    background-color: transparent;
}

.lpmsg-system .lpmsg-reply-content {
    background-color: transparent;
    border: none;
    text-align: center;
    padding: 0;
}

.lpmsg-reply-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}

.lpmsg-reply-sender {
    font-weight: 600;
    color: #333333;
}

.lpmsg-mine .lpmsg-reply-sender {
    color: #ff6600;
}

.lpmsg-agent-badge {
    background: #e55d00;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: 8px;
    display: inline-block;
    font-weight: normal;
}

.lpmsg-messenger-badge {
    background: #0073aa;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: 8px;
    display: inline-block;
    font-weight: normal;
}

.lpmsg-reply-time {
    font-size: 12px;
    color: #6c757d;
}

.lpmsg-reply-body {
    color: #333333;
    line-height: 1.6;
    word-break: break-word;
}

.lpmsg-mine .lpmsg-reply-body {
    color: white;
}

.lpmsg-reply-body p {
    margin: 0 0 10px;
}

.lpmsg-reply-attachment {
    margin-top: 10px;
}

.lpmsg-reply-attachment img {
    max-width: 200px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.lpmsg-file-attachment {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
}

.lpmsg-file-attachment .dashicons {
    margin-right: 0;
}

.lpmsg-reply-form-container {
    padding: 25px;
    background: white;
    border-top: 2px solid #e9ecef;
}

.lpmsg-form {
    max-width: 100%;
}

.lpmsg-form-row {
    margin-bottom: 20px;
}

.lpmsg-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.lpmsg-form-row input[type="text"],
.lpmsg-form-row input[type="email"],
.lpmsg-form-row input[type="url"],
.lpmsg-form-row select,
.lpmsg-form-row textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.lpmsg-form-row input[type="text"]:focus,
.lpmsg-form-row input[type="email"]:focus,
.lpmsg-form-row input[type="url"]:focus,
.lpmsg-form-row select:focus,
.lpmsg-form-row textarea:focus {
    outline: none;
    border-color: #e55d00;
    box-shadow: 0 0 0 3px rgba(229, 93, 0, 0.1);
}

.lpmsg-reply-area textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.lpmsg-reply-area textarea:focus {
    outline: none;
    border-color: #e55d00;
    box-shadow: 0 0 0 3px rgba(229, 93, 0, 0.1);
}

.lpmsg-form-help {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.lpmsg-form-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.lpmsg-send-button,
.lpmsg-submit-button {
    background: #e55d00;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(229, 93, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 0;
}

.lpmsg-send-button:hover,
.lpmsg-submit-button:hover {
    background: #cc5200;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 93, 0, 0.4);
    color: white;
    text-decoration: none;
}

.lpmsg-send-button .dashicons,
.lpmsg-submit-button .dashicons {
    margin-right: 0;
}

.lpmsg-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
}

.lpmsg-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #e55d00;
    border-radius: 50%;
    animation: lpmsg-spin 1s linear infinite;
}

@keyframes lpmsg-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lpmsg-response .lpmsg-success {
    background: rgba(229, 93, 0, 0.1);
    color: #cc5200;
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 4px solid #e55d00;
    margin-top: 15px;
}

.lpmsg-response .lpmsg-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin-top: 15px;
}

.lpmsg-ticket-closed-message {
    text-align: center;
    padding: 30px 25px;
    background: #f8f9fa;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
}

.lpmsg-ticket-closed-message p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lpmsg-ticket-closed-message .dashicons {
    font-size: 24px;
    margin-right: 0;
    vertical-align: middle;
}

.lpmsg-messenger-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #e55d00;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(229, 93, 0, 0.3);
}

.lpmsg-messenger-link a:hover {
    background: #cc5200;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 93, 0, 0.4);
    color: white;
    text-decoration: none;
}

.lpmsg-file-input-wrapper {
    position: relative;
    display: inline-block;
}

.lpmsg-file-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lpmsg-file-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

.lpmsg-file-button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.lpmsg-file-name {
    margin-left: 10px;
    font-size: 14px;
    color: #6c757d;
}

.lpmsg-no-replies {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.lpmsg-no-replies p {
    margin: 0;
    font-size: 16px;
}

/* Support Form Styling */
.lpmsg-create-ticket-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.lpmsg-ticket-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.lpmsg-header-back {
    text-align: left;
    margin-bottom: 0px;
}

.lpmsg-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.lpmsg-back-button:hover {
    background: #e9ecef;
    color: #212529;
    text-decoration: none;
}

.lpmsg-header-title {
    font-size: 28px;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.lpmsg-create-form-container {
    padding: 0px 20px;
}

.lpmsg-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lpmsg-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lpmsg-form-row label {
    font-weight: 600;
    color: #212529;
    font-size: 16px;
}

.lpmsg-checkbox-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.lpmsg-radio-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    cursor: pointer;
}

.lpmsg-radio-wrapper:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.lpmsg-radio-wrapper input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #007bff;
}

.lpmsg-radio-wrapper label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
}

.lpmsg-form-row select,
.lpmsg-form-row input[type="text"],
.lpmsg-form-row input[type="url"],
.lpmsg-form-row textarea {
    padding: 0px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #fff;
}

.lpmsg-form-row select:focus,
.lpmsg-form-row input[type="text"]:focus,
.lpmsg-form-row input[type="url"]:focus,
.lpmsg-form-row textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.lpmsg-form-row textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.lpmsg-form-help {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
}

.lpmsg-file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lpmsg-file-input-wrapper:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.lpmsg-file-input {
    display: none;
}

.lpmsg-file-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lpmsg-file-button:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.lpmsg-file-name {
    color: #6c757d;
    font-size: 14px;
}

.lpmsg-form-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.lpmsg-submit-button {
    padding: 14px 32px;
    background: linear-gradient(135deg, rgb(229 93 0) 0%, rgb(26 26 26) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
}

.lpmsg-submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    color: #fff;
    background-color: #3a3a3aa3;
}

.lpmsg-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.lpmsg-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
}

.lpmsg-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: lpmsg-spin 1s linear infinite;
}

@keyframes lpmsg-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lpmsg-response {
    margin-top: 20px;
}

.lpmsg-success {
    padding: 16px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    font-weight: 500;
}

.lpmsg-error {
    padding: 16px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    font-weight: 500;
}

/* Order selection styling */
.lpmsg-order-selection,
.lpmsg-issue-type,
.lpmsg-product-selection,
.lpmsg-seller-selection {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Ensure fields are visible when they should be */
.lpmsg-order-selection.show,
.lpmsg-issue-type.show,
.lpmsg-product-selection.show,
.lpmsg-seller-selection.show {
    display: block !important;
}

/* Force visibility when needed */
.lpmsg-order-selection.force-show,
.lpmsg-issue-type.force-show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure radio button options are visible */
.lpmsg-radio-wrapper.customer-issue-options,
.lpmsg-radio-wrapper.seller-issue-options {
    display: block;
}

/* Optgroup styling */
.lpmsg-order-selection select optgroup {
    font-weight: 600;
    color: #495057;
    background: #e9ecef;
    padding: 5px 0;
}

.lpmsg-order-selection select optgroup option {
    font-weight: normal;
    color: #212529;
    background: #fff;
    padding: 5px 10px;
}

.lpmsg-order-selection select optgroup option:hover {
    background: #007bff;
    color: #fff;
}

/* Responsive design */
@media (max-width: 768px) {
    .lpmsg-create-ticket-container {
        margin: 10px;
        padding: 15px;
    }
    
    .lpmsg-header-title {
        font-size: 24px;
    }
    
    .lpmsg-checkbox-wrapper {
        padding: 15px;
    }
    
    .lpmsg-radio-wrapper {
        padding: 10px 12px;
    }
    
    .lpmsg-form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .lpmsg-submit-button {
        width: 100%;
        max-width: 300px;
    }
} 

/* Stats Dashboard */
.lpmsg-tickets-stats {
    margin: 20px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.lpmsg-stat-item {
    background: #fff;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lpmsg-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.lpmsg-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--lpmsg-primary, #e55d00);
}

.lpmsg-stat-total::before { background: #0073aa; }
.lpmsg-stat-open::before { background: #28a745; }
.lpmsg-stat-pending::before { background: #ffc107; }
.lpmsg-stat-resolved::before { background: #17a2b8; }
.lpmsg-stat-closed::before { background: #6c757d; }

.lpmsg-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.lpmsg-stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Header Content */
.lpmsg-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.lpmsg-header-content h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

/* Filter Form */
.lpmsg-filter-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.lpmsg-filter-form label {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.lpmsg-filter-form select {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    min-width: 150px;
    transition: all 0.2s ease;
}

.lpmsg-filter-form select:focus {
    outline: none;
    border-color: var(--lpmsg-primary, #e55d00);
    box-shadow: 0 0 0 3px rgba(229, 93, 0, 0.1);
}

.lpmsg-filter-button {
    padding: 10px 20px;
    background: var(--lpmsg-primary, #e55d00);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lpmsg-filter-button:hover {
    background: var(--lpmsg-primary-dark, #cc5200);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 93, 0, 0.3);
}

/* Ticket List Header */
.lpmsg-tickets-list-header {
    display: flex;
    background: #f8f9fa;
    padding: 15px 20px;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    color: #495057;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ticket Item Styling */
.lpmsg-ticket-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
    background: #fff;
}

.lpmsg-ticket-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.lpmsg-ticket-item:last-child {
    border-bottom: none;
}

.lpmsg-ticket-subject {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

.lpmsg-ticket-issue-type {
    font-size: 12px;
    color: #666;
    background: #e9ecef;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
}

/* Ticket View Styling */
.lpmsg-view-header {
    margin-bottom: 25px;
}

.lpmsg-ticket-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--lpmsg-primary, #e55d00);
}

.lpmsg-ticket-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.lpmsg-meta-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lpmsg-meta-item strong {
    color: #495057;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lpmsg-meta-item span {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.lpmsg-ticket-description {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.lpmsg-description-content {
    margin-top: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    line-height: 1.6;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lpmsg-tickets-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .lpmsg-stat-item {
        min-width: 200px;
    }
    
    .lpmsg-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lpmsg-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lpmsg-filter-form select,
    .lpmsg-filter-button {
        width: 100%;
    }
    
    .lpmsg-tickets-list-header {
        display: none;
    }
    
    .lpmsg-ticket-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .lpmsg-ticket-meta-grid {
        grid-template-columns: 1fr;
    }
} 
