/* استایل‌های پایه */
.wpts-alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.wpts-alert.success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.wpts-alert.error {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.wpts-btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
}

.wpts-btn.primary {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}

.wpts-btn.secondary {
    color: #fff;
    background-color: #5bc0de;
    border-color: #46b8da;
}

.wpts-btn.small {
    padding: 3px 6px;
    font-size: 12px;
}

/* فرم‌ها */
.wpts-form {
    margin-bottom: 20px;
}

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

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

.wpts-form-group input[type="text"],
.wpts-form-group textarea,
.wpts-form-group select {
    width: 100%;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

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

.wpts-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.wpts-form-row .wpts-form-group {
    flex: 1;
}

/* جداول */
.wpts-tickets-table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

.wpts-tickets-table th {
    text-align: right;
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #ddd;
    background-color: #f5f5f5;
}

.wpts-tickets-table td {
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #ddd;
}

.wpts-tickets-table tr:hover td {
    background-color: #f5f5f5;
}

/* وضعیت‌ها */
.wpts-status {
    display: inline-block;
    padding: 3px 6px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    color: white;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 3px;
}

/* پیام‌ها */
.wpts-messages {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

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

.wpts-message.sent {
    background-color: #e3f2fd;
    margin-left: 20%;
    border-left: 3px solid #2196F3;
}

.wpts-message.received {
    background-color: #f1f1f1;
    margin-right: 20%;
    border-right: 3px solid #9E9E9E;
}

.wpts-message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
    color: #555;
}

.wpts-message-content {
    line-height: 1.5;
}

/* پنل‌ها */
.wpts-student-panel,
.wpts-admin-panel,
.wpts-researcher-panel {
    background-color: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wpts-new-ticket {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #eee;
}

.wpts-ticket-details {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #eee;
}

.wpts-ticket-info {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

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

.wpts-ticket-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.wpts-reply-form,
.wpts-assign-form,
.wpts-status-form {
    flex: 1;
    min-width: 300px;
    padding: 15px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}