/* Frontend Styles */
.tsh-create-ticket-form {
    max-width: 800px;
    margin: 20px 0;
}

.tsh-order-info {
    background: #f5f5f5;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.tsh-order-info p {
    margin: 5px 0;
}

.tsh-create-ticket-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.tsh-create-ticket-form input[type="text"],
.tsh-create-ticket-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.tsh-create-ticket-form .required {
    color: #e74c3c;
}

#tsh-form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

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

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

.tsh-my-tickets {
    margin: 20px 0;
}

.tsh-tickets-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.tsh-tickets-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.tsh-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.tsh-status-submit {
    background: #3498db;
    color: #fff;
}

.tsh-status-review {
    background: #f39c12;
    color: #fff;
}

.tsh-status-process {
    background: #9b59b6;
    color: #fff;
}

.tsh-status-complete {
    background: #27ae60;
    color: #fff;
}

/* Modal Styles */
.tsh-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.tsh-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
}

.tsh-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.tsh-modal-close:hover {
    color: #000;
}

.tsh-ticket-chat {
    margin-top: 20px;
}

.tsh-ticket-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.tsh-ticket-header h3 {
    margin: 0 0 10px 0;
}

.tsh-ticket-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.tsh-ticket-info p {
    margin: 5px 0;
}

.tsh-messages-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.tsh-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
}

.tsh-message.user {
    background: #e3f2fd;
    margin-left: 20%;
}

.tsh-message.admin {
    background: #fff3e0;
    margin-right: 20%;
}

.tsh-message-header {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 12px;
    color: #666;
}

.tsh-message-content {
    margin-top: 5px;
}

.tsh-message-time {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.tsh-reply-form {
    margin-top: 20px;
}

.tsh-reply-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.tsh-status-select {
    margin-bottom: 15px;
}

.tsh-status-select label {
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
}

.tsh-status-select select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tsh-order-ticket-section {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tsh-order-ticket-section h3 {
    margin-top: 0;
}

.tsh-order-ticket-section .button {
    margin-top: 10px;
}

