/* style.css */
.sts-dashboard, .sts-new-ticket-modal {
    display: flex;
    max-width: 1200px;
    margin: 30px auto;
    gap: 20px;
    font-family: iranyekan;
}
.sts-ticket-list {
    width: 30%;
    background: #f8f9fa;
    padding: 15px 0px;
    border-radius: 10px;
    border: 1px solid #ddd;
}
.sts-ticket-list ul {
    list-style: none;
    padding: 0;
}
.sts-ticket-list li.active a {
    font-weight: bold;
    color: #007bff;
}
.sts-ticket-list a {
    text-decoration: none;
    color: #333;
}
.sts-ticket-list .sts-new-ticket-btn {
    margin: 15px;
    width: 90%;
	color: var(--Component-colors-Components-Buttons-Secondary-color-button-secondary-color-fg, #1E5C89);
    border-radius: var(--radius-xl, 12px);
    border: 1px solid var(--Component-colors-Components-Buttons-Secondary-color-button-secondary-color-border, #96CAED);
    background: var(--Component-colors-Components-Buttons-Secondary-color-button-secondary-color-bg, #FFF);
    /* Shadows/shadow-xs-skeuomorphic */
    box-shadow: 0px 0px 0px 1px var(--Colors-Effects-Shadows-shadow-skeumorphic-inner-border, rgba(16, 24, 40, 0.18)) inset, 0px -2px 0px 0px var(--Colors-Effects-Shadows-shadow-skeumorphic-inner,         rgba(16, 24, 40, 0.05)) inset, 0px 1px 2px 0px var(--Colors-Effects-Shadows-shadow-xs, rgba(16, 24, 40, 0.05));
    cursor: pointer;
}
.sts-ticket-thread {
    width: 70%;
    background: var(--Colors-Background-bg-secondary, #FAFAFA);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    min-height: 400px;
}
.sts-message {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
	margin-top: 15px;
}
.sts-user {
    align-items: flex-start;
}
.sts-admin {
    align-items: flex-end;
}
.sts-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}
.sts-bubble {
    width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    word-wrap: break-word;
    border-radius: var(--radius-none, 0px) var(--radius-2xl, 16px) var(--radius-2xl, 16px) var(--radius-2xl, 16px);
    border: 1px solid var(--Colors-Border-border-secondary, #E9EAEB);
    background: var(--Colors-Background-bg-primary, #FFF);
}
.sts-user .sts-bubble {
    border-radius: var(--radius-2xl, 16px) var(--radius-none, 0px) var(--radius-2xl, 16px) var(--radius-2xl, 16px);
	border: 2px solid var(--Component-colors-Utility-Brand-utility-brand-300, #96CAED);
	background: var(--Colors-Background-bg-primary, #FFF);
}
.sts-reply-form textarea {
    width: 100%;
    min-height: 60px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
}
.sts-reply-form button,
.sts-complete-form button,
.sts-new-ticket-modal button {
    padding: 8px 40px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}
.sts-new-ticket-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    z-index: 1000;
}
.sts-new-ticket-modal input,
.sts-new-ticket-modal textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.sts-new-ticket-modal .sts-close-modal {
    background: #6c757d;
}
/* Overlay background */
.sts-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
.ticket-date {
    width: 11%;
    font-size: 12px;
    font-weight: 400;
    color: #717680;
	margin-right: auto;
}
.topic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
	gap: 8px;
	margin-bottom: 16px;
}
.ticket-topic {
	width: 90%;
    background: #EDF7FF;
    padding: 8px 16px;
    border-radius: 8px 0px 8px 8px;
}
.ticket-topic h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}
.ticket-subject {
    border: 2px solid #96CAED;
    padding: 12px;
}
.ticket-content {
    padding: 0px 16px;
}
.sts-upload-label {
    display: inline-block;
    cursor: pointer;
    font-size: 1rem;
    padding: 11px 12px;
    background: #f1f1f1;
    border-radius: 12px;
    color: #333;
    margin-left: 10px;
    border: 1px solid #ccc;
    transition: background 0.2s ease;
}

.sts-upload-label:hover {
    background: #e2e6ea;
}

.sts-upload-label input[type="file"] {
    display: none;
}
.sts-file-preview {
    margin-top: 10px;
    font-size: 14px;
    color: #444;
}
.sts-file-preview .file-item {
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
    margin-bottom: 5px;
    display: inline-block;
}
button.close-ticket-btn {
    width: 100%;
    margin-top: 25px;
	border-radius: 12px;
}
.ticket-box {
    max-height: 60vh;
    overflow-y: scroll;
}
.sts-ticket-list li.active {
    background: var(--Colors-Background-bg-brand-primary, #EDF7FF);
}
.sts-ticket-list li {
    padding: 16px;
    border-bottom: 1px solid #E9EAEB;
    margin: 0;
}
.sts-ticket-list li {
    display: flex;
    justify-content: space-between;
}

/* Responsive design */
@media (max-width: 768px) {
    .sts-dashboard {
        flex-direction: column;
    }
    .sts-ticket-list, 
    .sts-ticket-thread {
        width: 100%;
    }
    .sts-ticket-list {
        margin-bottom: 20px;
    }
    .sts-bubble {
        max-width: 100%;
        font-size: 14px;
    }
    .sts-reply-form textarea {
        min-height: 50px;
    }
    .sts-reply-form button,
    .sts-complete-form button,
    .sts-new-ticket-btn {
        width: 100%;
        padding: 10px;
        font-size: 16px;
    }
}

