#otrs-ticket-form {
    max-width: 800px;
    margin: 2em auto;
    padding: 20px;
}

#otrs-ticket-form .form-group {
    margin-bottom: 1.5em;
}

#otrs-ticket-form label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
}

#otrs-ticket-form .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#otrs-ticket-form textarea.form-control {
    min-height: 150px;
}

#otrs-ticket-form .button-primary {
    background-color: #0073aa;
    border-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

#otrs-ticket-form .button-primary:hover {
    background-color: #005177;
    border-color: #005177;
}

/* Login Required Message Styles */
.otrs-login-required {
    max-width: 800px;
    margin: 2em auto;
    padding: 30px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    text-align: center;
}

.otrs-login-required p {
    margin-bottom: 1.5em;
    font-size: 1.1em;
}

.otrs-login-required .button {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

.otrs-login-required .button:not(.button-primary) {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    color: #666;
}

.otrs-login-required .button:not(.button-primary):hover {
    background-color: #e9ecef;
    border-color: #ddd;
    color: #333;
}

/* Message Styles */
.otrs-message {
    max-width: 800px;
    margin: 0 auto 2em;
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 1.1em;
}

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

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

/* Pagination Styles */
.otrs-pagination {
    margin: 20px 0;
    text-align: center;
}

.otrs-pagination .button {
    margin: 0 2px;
    padding: 5px 10px;
    min-height: 30px;
    line-height: 20px;
}

.otrs-pagination .button-primary {
    pointer-events: none;
}

/* Tickets Table Styles */
.otrs-tickets-table {
    margin-bottom: 20px;
}

.otrs-tickets-table table {
    width: 100%;
    border-collapse: collapse;
}

.otrs-tickets-table th,
.otrs-tickets-table td {
    padding: 10px;
    text-align: left;
    vertical-align: middle;
}

.otrs-tickets-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

/* Ticket Status Styles */
.otrs-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.otrs-status-new {
    background-color: #e3f2fd;
    color: #1976d2;
}

.otrs-status-open {
    background-color: #fff3e0;
    color: #f57c00;
}

.otrs-status-closed {
    background-color: #e8f5e9;
    color: #388e3c;
}

.otrs-status-pending {
    background-color: #fce4ec;
    color: #c2185b;
}

/* Submit New Ticket Button */
.otrs-submit-new {
    margin-top: 20px;
}

/* Ticket View Styles */
.otrs-ticket-view {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ticket-info {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.ticket-info th,
.ticket-info td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.ticket-info th {
    width: 120px;
    color: #666;
}

.ticket-articles {
    margin-top: 30px;
}

.ticket-timeline {
    position: relative;
    padding: 20px 0;
}

.ticket-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #eee;
    transform: translateX(-50%);
}

.ticket-article {
    margin-bottom: 30px;
    border: 1px solid #eee;
    border-radius: 4px;
    width: 85%;
    position: relative;
}

.ticket-article::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
}

.customer-response {
    margin-right: 15%;
    background: #f8f9fa;
}

.customer-response::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #f8f9fa;
}

.agent-response {
    margin-left: 15%;
    background: #e8f4ff;
}

.agent-response::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent #e8f4ff transparent transparent;
}

.article-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.article-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.article-subject {
    font-size: 1.1em;
}

.article-body {
    padding: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.article-attachments {
    padding: 15px;
    border-top: 1px solid #eee;
    background: rgba(0,0,0,0.02);
}

.article-attachments ul {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.article-attachments li {
    margin: 5px 0;
    padding: 5px 10px;
    background: rgba(255,255,255,0.8);
    border-radius: 3px;
    font-size: 0.9em;
}

.otrs-ticket-view h2 {
    color: #333;
    margin-bottom: 20px;
}

.otrs-ticket-view h3 {
    color: #444;
    margin: 20px 0;
}

/* Admin Settings Styles */
.nav-tab-wrapper {
    margin-bottom: 20px;
}

.otrs-tab-content {
    display: none;
}

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

.otrs-tab-content h2 {
    margin-top: 0;
}

.otrs-test-connection {
    margin-top: 30px;
}

.otrs-test-connection .spinner {
    float: none;
    margin-left: 10px;
}

#test-connection-result {
    margin-top: 10px;
}

/* Filters Form Styles */
.otrs-filters-form {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 20px;
}

.otrs-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.otrs-filter-group label {
    margin-right: 5px;
    white-space: nowrap;
    font-weight: 500;
    color: #444;
}

#search-filter {
    width: 250px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#search-filter:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

#status-filter {
    width: 150px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
}

#status-filter:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Priority Styles */
.otrs-priority {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.otrs-priority-very-high {
    background-color: #ffebee;
    color: #c62828;
}

.otrs-priority-high {
    background-color: #fff3e0;
    color: #ef6c00;
}

.otrs-priority-normal {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.otrs-priority-low {
    background-color: #e3f2fd;
    color: #1565c0;
}

.otrs-priority-very-low {
    background-color: #f3e5f5;
    color: #6a1b9a;
}

/* Submit New Ticket Button Styles */
.otrs-submit-new .button-primary {
    display: inline-block;
    text-decoration: none;
    padding: 8px 16px;
    background-color: #0073aa;
    border-color: #006799;
    color: #fff;
    border-radius: 3px;
    border: 1px solid #006799;
}

/* Table Styles */
.wp-list-table th[scope="col"] {
    text-align: left;
}

/* Ticket Timeline Styles */
.ticket-timeline {
    position: relative;
    padding: 20px 0;
}

.ticket-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #eee;
    transform: translateX(-50%);
}

.ticket-article {
    margin-bottom: 30px;
    border: 1px solid #eee;
    border-radius: 4px;
    width: 85%;
    position: relative;
}

.ticket-article::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
}

.customer-response {
    margin-right: 15%;
    background: #f8f9fa;
}

.customer-response::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #f8f9fa;
}

.agent-response {
    margin-left: 15%;
    background: #e8f4ff;
}

.agent-response::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent #e8f4ff transparent transparent;
}

.article-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.article-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.article-subject {
    font-size: 1.1em;
}

.article-body {
    padding: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.article-attachments {
    padding: 15px;
    border-top: 1px solid #eee;
    background: rgba(0,0,0,0.02);
}

.article-attachments ul {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.article-attachments li {
    margin: 5px 0;
    padding: 5px 10px;
    background: rgba(255,255,255,0.8);
    border-radius: 3px;
    font-size: 0.9em;
} 