@font-face {
	font-family: YekanBakh;
	font-display: swap;
	src: url('fonts/YekanBakhFaNum-VF.woff2') format('woff2');
}

html * {
    box-sizing: border-box;
}

body {
    background-color: #fff;
    font-family:YekanBakh,tahoma,arial;
    direction: rtl;
    font-size:16px;
    color:#333;
    font-weight:400;
    overflow-x: hidden;
}

.main-section {
    width: 90%;
    margin: 25px auto;
} 

.pageContainer {
    display: flex;
    flex-direction: column;
    gap: 50px;
    height: calc(100svh - 173px);
    padding: 20px 20px 0;
    overflow-y: scroll;
}

.pageContainer .tab-content {
    height: 100%;
}

h1 {
    margin: 0px;
}

h1 {
    font-size: 25px;
}

h2 {
    font-size: 20px;
}

h3 {
    font-size: 16px;
}

.dateSelectors {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
}

.dateSelectors > select {
  flex: 1;
}

.gregorianDatePreview {
    color: gray;
    margin-top: 8px;
    font-size: 14px;
}

input.error, select.error {
    border: 2px solid red;
    background-color: #fff0f0;
}

/* register page*/
.formHolder .pageTitle {
    text-align: center;
    margin: 0 0 25px;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-link, .privacy-policy a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover, .privacy-policy a:hover {
    text-decoration: underline;
}

.lp-confirm-modal .privacy-policy-page {
    white-space: normal;
}

/* old */
.formHolder input, .formHolder select, .formHolder button, .formHolder a.button {
    font-family: inherit;
    font-size: inherit;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    background-color: #f9fbfa;
}

button, a.button {
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

button.primary, a.button.primary {
    background-color: #267e6b !important;
    color: #fff;
    border: 1px solid #267e6b;
}

button.secondary, a.button.secondary {
    background-color: #fff;
    color: #267e6b !important;
    border: 1px solid #267e6b;
}

a.button {
    text-decoration: none;
    display: block;
    font-size: 14px;
    text-align: center;
}

.formHolder a.button {
    margin-top: 25px;
    background-color: #406c84 !important;
}

.formHolder form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* step 3 */
#register-birthday-selectors {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
}

#register-birthday-selectors select {
    flex: 1;
    min-width: 57px;
    max-width: 100%;
}

.ir-select {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* pass validator */
/* Password Requirements Styles */
.password-requirements {
    margin-top: 16px;
    padding: 16px;
    background-color: #F9FAFB;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.requirement-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    transition: all 0.25s ease;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    margin-left: 12px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.25s ease;
    flex-shrink: 0;
    background-color: transparent;
    color: #9CA3AF;
}

.requirement-text {
    font-size: 14px;
    line-height: 1.5;
    color: #6B7280;
    transition: color 0.25s ease;
}

/* Button disabled state */
button.primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Ensure button has proper styling when enabled */
button.primary:not(:disabled) {
    opacity: 1;
    cursor: pointer;
}
/* /pass validator */

/* login */
.loginPage .pageTitle {
    text-align: center;
}
/* /login */

/* my-subscription*/

/* new */
.pageContainer.my-subscription, .pageContainer.subscriptions  {
    height: calc(100svh - 115px);
}

.pageContainer.my-subscription h1, .pageContainer.subscriptions h1,
.pageContainer.my-subscription h2, .pageContainer.subscriptions h2 {
    text-align: center;
}
/* /new */

#subscription-status-card {
    flex: 1;
}

.card {
    text-align: center;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.075);
    border-radius: 4px;
    overflow: hidden;
    max-width: 300px;
    margin: 0 auto;
}

.cardHeader {
    padding: 20px 0;
    background-color: #267e6b;
    color: #fff;
}

.cardTitle {
    margin: 0;
}

.card p {
    font-weight: bold;
    font-size: 16px;
}

.card h3 {
    margin-bottom: 5px;
}

.card ul {
  padding: 0;
  margin-top: 0;
}

.card li {
    list-style-type: none;
}

.card .used {
    display: block;
    margin-bottom: 20px;
    color: #777;
}

.card-plan-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.card-plan-actions button {
    padding: 15px;
}

.card button {
    flex: 1;
    padding: 10px;
    border-radius: 4px;
}

.active-subscription-message {
    font-weight: bold;
    color: #267e6b;
}

/* manage-subscription */
.stickyHolder{
    position: sticky;
    top: -20px;
    background-color: #fff;
    padding: 0 20px 20px;
    border-bottom: 1px solid #ddd;
    margin-right: -20px;
    margin-left: -20px;
}

.planToggleHolder .segmented-control button {
    font-weight: bold;
    font-size: 16px;
    padding: 10px;
}

/*
.planToggleHolder {
    margin-bottom: 50px;
    position: sticky;
    top: 0;
    background-color: #fff;
    text-align: center;
    padding: 20px 0;
}

.planToggleHolder.full-width {
    right: calc(-50vw + 50%);
    width: 100vw;
    position: fixed;
}

.planToggleTitle {
    margin-top: 0;
}

.planToggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.button.toggleButton {
    padding: 10px;
    border-radius: 50px;
    background-color: #f5f5f5 !important;
    color: #000;
    border: 1px solid #f1f1f1;
}

.toggleButton.active {
    background-color: #406c84 !important;
    color: #fff;
}*/

.subscription-plans {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.card.plan {
    flex: 1;
    min-width: 200px;
}

.cardBody {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    padding: 20px;
}

.card.plan p {
    font-weight: normal;
}

.card.plan p.features {
  margin-bottom: 0;
}

.card.plan li {
  font-size: 16px;
}

/* new edits */
.pricing-breakdown {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-weight: bold;
}

.pricing-item:first-child {
    border-bottom: 1px solid #ddd;
}

.pricing-item.total {
    font-size: 16px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #267e6b;
    margin: 10px -15px -15px -15px;
    padding: 15px;
    border-radius: 0 0 8px 8px;
}

.pricing-item .value {
    color: #267e6b;
}

.renewal-notice {
    display: flex;
    flex-direction: column;    
}

.renewal-notice-part {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    font-weight: bold;
    gap: 5px;
}

.renewal-notice-part:first-child {
    border-bottom: 1px solid #ddd;
}

.renewal-notice-part:nth-child(2) {
    flex-direction: row;
    justify-content: center;
}

.renewal-notice-part:last-child {
    border-top: 2px solid #267e6b;
}

.renewal-notice-part:first-child span, .renewal-notice-part:last-child span {
    direction: ltr;
}

.renewal-notice span {
    color: #267e6b;
}

.purchase-confirmation-details {
    text-align: right;
    line-height: 1.6;
}

.modal-renew-value {
    display: inline-block;
    direction: ltr;
}

.modal-renew-days {
    text-align: left;
}

.confirmation-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-right: 4px solid #007bff;
}

.info-item {
    margin: 10px 0;
}

.info-item strong {
    color: #495057;
}

.renewal-note {
    margin-top: 15px;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
}

.lp-confirm-modal .subscriptionPurchaseModal {
    white-space: unset;
}

/* new edits */

/* Category and Task Creation Page */
.createCategoryAndTask {
    text-align: center;
}

.createCategoryAndTask > section{
    background-color: #fff;
    padding: 20px 15px;
    border-radius: 8px;
}

input, select, button, a.button {
    font-family: inherit;
    font-size: inherit;
    background-color: #f4f6f5;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
}

select option {
    font-family: YekanBakh;
}

.no-categories-message {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: #f9fbfa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: justify;
}

.no-categories-message h2 {
    text-align: center;
    margin: 0;
}

/* Category and Task Management Page */
.manageCategoryAndTask #category_id {
    width: 100%;
}

#lp-category-task-manage {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.manageCategoryAndTask .category-section, .manageCategoryAndTask .activities-section {
    background-color: #fff;
    padding: 20px 15px;
    border-radius: 8px;
}

.manageCategoryAndTask .category-section h3, .manageCategoryAndTask .activities-section h3 {
    margin: 0 0 50px;
}

.category-section h2, .activities-section h2 {
    border-bottom: 1px solid #ddd;
    margin: 0;
    margin-right: -20px;
    margin-bottom: 50px;
    padding: 20px;
    width: calc(100% + 40px);
}

.activities-section h2 {
    position: sticky;
    top: -20px;
    background-color: #fff;
}

.activity-item {
    background-color: #f9fbfa;
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.activity-item .item-content {
    width: 100%;
}

.activity-item .item-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}


.activity-item:last-child {
    margin-bottom: 0;
}

.activity-btns {
    display: flex;
    gap: 10px;
}

.edit-btn, .delete-btn {
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.delete-btn {
    color: #f00;
}

/* edit item */
.edit-input-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.edit-category-input {
    padding: 5px 5px 5px 35px;
    border: 2px solid #007bff;
    border-radius: 3px;
    font-weight: bold;
    width: 100%;
    box-sizing: border-box;
}

.save-edit-btn {
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    background: #28a745;
    border: none;
    border-radius: 2px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100% - 6px);
}

.save-edit-btn:hover {
    background: #218838;
}

/* Hide activity buttons during editing on mobile */
@media (max-width: 480px) {
    .activity-item.editing .activity-btns {
        display: none;
    }

    .activity-item.editing span {
        width: 100%;
    }
    
    .activity-item.editing .edit-input-container {
        width: 100%;
    }
}
/* /edit item */

/* new structure*/
.categoryTaskManager > .tab-content > form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
}

.categoryTaskManager h1, .categoryTaskManager p {
    margin: 0px;
}

.categoryTaskManager > .tab-content > form > button {
    margin-top: auto;
}


/* /new structure */

/* tab container */
.page-navigation {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-btn {
    flex: 1;
    padding: 15px 20px;
    text-decoration: none;
    color: #666;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-btn.active {
    background-color: #267e6b;
    border-bottom-color: #267e6b;
    font-weight: 600;
    color: #fff;
}

.nav-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}
/* /tab container */

/* add log */
#lp-add-log-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
}

#lp-add-log-form #submit-btn {
    margin-top: auto;
}

/**/
.existing-log-info {
    background: #f9fbfa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: justify;
}

.existing-log-info > div {
    display: block;
}

.existing-log-info > div > svg {
    display: inline-block;
    vertical-align: top;
    margin-left: 5px;
    margin-top: 3px;
}

.existing-log-info > div > p {
    display: inline;
}

.existing-log-content p {
    margin: 5px 0;
    color: #0066cc;
}

.update-notice {
    font-size: 14px;
    color: #666;
}

#submit-btn {
    transition: all 0.3s ease;
}
/**/

/* tabs */
.addLog .tab-content form{
    flex: 1;
}

.addLog #lp-quick-log-form, .addLog .timer-section, .addLog .timer-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timer-secondary-controls {
    gap: 15px;
}

.timer-secondary-controls button {
    flex: 1;
}

.continue {
    background-color: #fff;
    color: #267e6b;
    border-color: #267e6b;
}

.danger {
    background-color: #D7263D;
    color: #fff;
}

/**/
#lp-quick-log-form {
    justify-content: space-between;
}

.quick-form-top {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.quick-form-top .date-display {
    display: flex;
    justify-content: space-between;
    border: 1px solid #efefef;
    padding: 10px;
    border-radius: 8px;
    background-color: #f9fafb;
}

.timer-display {
    text-align: center;
    font-size: 75px;
}
/**/

/* edit tab */
.filter-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 30px;
}

.edit-log-buttons {
    display: flex;
    gap: 15px;
}

.edit-log-buttons button {
    flex: 1;
}

.edit-filter-section .edit-filter-header h2, .logs-section h2 {
    border-bottom: 1px solid #ddd;
    margin: 0;
    margin-right: -20px;
    margin-bottom: 50px;
    padding: 20px;
    width: calc(100% + 40px);
}

.edit-filter-section .edit-filter-header h2{
    margin-left: -40px;
    margin-bottom: 0px;
}

.logs-section h2 {
    position: sticky;
    top: -20px;
    background-color: #fff;
}

#logs-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.log-item {
    background-color: #f9fbfa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
}

.log-info {
    display: flex;
    justify-content: space-between;
}

.task-name {
    margin: 0;
}

.log-name-and-category, .log-duration-and-date {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.log-duration-and-date {
    align-items: flex-end;
}

.log-duration {
    font-size: 16px;
    font-weight: bold;
}

.category-name, .log-date {
    color: #777;
}

.log-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.edit-form {
    flex-direction: column;
    gap: 15px;
}

.edit-form > .edit-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Collapsible Filter Header */
.edit-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-toggle-icon {
    transition: transform 0.3s ease;
    z-index:20;
}

/* وقتی باز است (پیکان رو به پایین) */
.filter-toggle-icon:not(.collapsed) {
    transform: rotate(0deg);
}

/* وقتی بسته است (پیکان رو به چپ) */
.filter-toggle-icon.collapsed {
    transform: rotate(90deg);
}

.edit-filter-content {
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    max-height: 0;
}

.edit-filter-content.show {
    opacity: 1;
    max-height: 500px;
}
/* /Collapsible Filter Header */

/* /edit tab*/

/* timer lock */

.timer-warning-overlay {
    position: absolute;
    top: 0;
    left: 15px;
    right: 15px;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.timer-warning-content h3 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.timer-warning-content {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffc107;
    max-width: 400px;
}

/* /timer lock */
/* tabs */
/* /add log */

/* reports */
.pageContainer.reports {
    gap: 30px;
}

/* collapse first section */
.reports-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.reports-form-content {
    overflow: hidden;
    transition: all 0.3s ease;
    /* حالت پیش‌فرض: باز */
    opacity: 1;
    max-height: none;
}

.reports-form-content:not(.show) {
    opacity: 0;
    max-height: 0;
}
/* /collapse first section */

.pageContainer.reports h2 {
    border-bottom: 1px solid #ddd;
    margin: 0;
    margin-right: 0px;
    margin-bottom: 0px;
    margin-right: -20px;
    margin-bottom: 30px;
    padding: 20px;
    width: calc(100% + 40px);

    position: sticky;
    top: -20px;
    background-color: #fff;
    z-index: 10;
}

.pageContainer.reports #report-results h2, .pageContainer.reports #activity-report-results h2 {
    position: relative;
    margin-bottom:0px;
}

.pageContainer.reports .reports-form-header h2{
    margin-left: -40px;
    margin-bottom: 0px;
}

.pageContainer.reports form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 30px;
}

.pageContainer.reports form label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

#lp-reports-form .year-input {
  display: flex;
  flex-direction: column;
}

#lp-reports-form .date-input-group:nth-child(1) {
  margin-bottom: 25px;
}

#lp-reports-form > div, #lp-reports-form > button {
    flex: 1;
}

.reports .form-row, .reports .dateSelectors {
    display: flex;
    flex-direction: column;
}

.reports .shamsi-date {
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
}

.reports .shamsi-date select {
    flex: 1;
}

.reports .dateSelectors .week-input .shamsi-date {
  flex-wrap: wrap;
}

.reports .summary-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.reports .summary-stats .stat-item {
    display: flex;
    flex-direction: column;
    background-color: #f9fbfa;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
}

.reports .summary-stats .stat-item .stat-label {
  font-weight: bold;
}

#report-results {
    flex-direction: column;
    gap: 30px;
}

.reportTable {
    border-collapse: collapse;
    font-family: 'YekanBakh', 'Tahoma';
    direction: rtl;
    background: #fff;
    width: 100%;
}

.reportTable thead {
    position: sticky;
    top: -20px;
    background-color: #fff;
    z-index: 10;
}

.reportTable th {
   padding: 16px 12px;
   font-weight: 600;
   font-size: 16px;
   text-align: center;
}

thead::after {
    content: "";
    position: absolute;
    left: -20px;
    right: -20px;
    bottom: 0;
    height: 1px;
    background: #ddd;
}

.reportTable td {
   padding: 14px 12px;
   text-align: center;
   font-size: 16px;
   border-bottom: 1px solid #ddd;
   transition: background-color 0.2s ease;
}


#reports-table th:first-child, #reports-table td:first-child {
  text-align: right;
}

.reportTable tbody tr:hover {
   background-color: #267e6b;
   color: #fff;
   transform: translateY(-1px);
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
   border-radius: 4px;
}

.reportTable tbody tr:last-child td {
   border-bottom: none;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .reportTable th{
        padding: 16px 8px;    
    }

    .reportTable td {
        padding: 30px 8px;
    }
}
/* chart */
.chart-toggle {
    text-align: center;
    margin-bottom: 15px;
}

/* .chart-toggle-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: YekanBakh, Tahoma;
    font-size: 14px;
    transition: all 0.2s;
}

.chart-toggle-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
} */

.chart-toggle {
    justify-content: center;
    margin-bottom: 30px;
}

.segmented-control {
    display: inline-flex;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'YekanBakh', 'Tahoma';
    width: 100%;
}

.segment-btn {
    background: transparent;
    border: none;
    border-radius: 0;
    flex: 1;
    padding: 10px 20px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6c757d;
    position: relative;
}

.segment-btn.active {
    background: #267e6b;
    color: white;
    font-weight: 500;
}

.segment-btn:not(.active):hover {
    background: #e9ecef;
    color: #495057;
}

.segment-btn:first-child {
    border-left: 1px solid #dee2e6;
}

.segment-btn:not(:last-child) {
    border-left: 1px solid #dee2e6;
}

.segment-btn.active + .segment-btn {
    border-right-color: transparent;
}

.chart-wrapper {
    max-width: 500px;
    margin: 0 auto;
    height: 500px;
}

.chart-legend-hidden {
    text-decoration: line-through !important;
    opacity: 0.5 !important;
}

#activity-chart {
    max-width: 100%;
    height: auto !important;
}
/* /chart */

/* activity tab */
#activity-selectors {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#activity-report-results {
    flex-direction: column;
    gap: 30px;
}
/* /activity tab */
/* /reports */

/* planning */
/* استایل تب‌ها */
.tabs {
    display: flex;
    /* border-bottom: 1px solid #218838; */
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.tab-btn {
    flex: 1;
    border: 0px;
    border-bottom: 3px solid #e0e0e0;
    padding: 15px 20px;
    text-decoration: none;
    color: #666;
    text-align: center;
    border-radius: 0;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}

.tab-btn.active {
    background-color: #fff;
    /* border-bottom: 3px solid #267e6b; */
    border-bottom-color: #267e6b;
    font-weight: 600;
    color: #267e6b;
}

/* محتوای تب‌ها */
.tab-content {
    display: none;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.empty-state {
    text-align: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
}

/* loading spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* فرم برنامه‌ریزی */
.dailyPlanCreate form {
    display: flex;
    gap: 30px;
    flex-direction: column;
    height: 100%;
}

.dailyPlanCreate form button {
    margin-top: auto;
}

/* استایل آیتم‌های برنامه */
#today-plans-list, #tomorrow-plans-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.plan-item {
    background-color: #f9fbfa;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    padding: 15px;
}

.plan-header {
    display: flex;
    flex-direction: column;
}

.plan-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.plan-item .task-name {
    font-weight: bold;
}

.plan-actions {
    display: flex;
    gap: 15px;
}

.plan-actions button {
    padding: 15px;
}

.progress-bar {
    background: #f0f0f0;
    border-radius: 4px;
    height: 30px;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    background: #28a745;
    height: 100%;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
}

.white-text {
    color: #fff;
}

.edit-duration{
    width: 100%;
    box-sizing: border-box;
}

.edit-actions {
    display: flex;
    margin-top: 15px;
    gap: 15px;
}

.edit-actions button {
    flex: 1;
}
/* /planning */

/* Edit Profile */
.pageContainer.edit-profile {
    height: calc(100svh - 115px);
}

.pageContainer.edit-profile h1 {
    text-align: center;
}

.pageContainer.edit-profile .profile-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pageContainer.edit-profile .form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pageContainer.edit-profile .field-display {
    font-family: inherit;
    font-size: inherit;
    background-color: #f4f6f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pageContainer.edit-profile .form-field.editing .field-edit {
    background-color: #f9fbfa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pageContainer.edit-profile .form-field.editing .field-edit .edit-step {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pageContainer.edit-profile .form-field.editing .field-edit .input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* /Edit Profile */

/* About */
.pageContainer.about {
    height: calc(100svh - 115px);
    gap: 0px;
    text-align: justify;
}

.pageContainer.about h3, .version {
    margin-top: 50px !important;
    margin-bottom: 10px !important;
}

.pageContainer.about ul, .pageContainer.about p {
    margin: 0px;
}

.pageContainer.about .links a {
    display: flex;
    text-decoration: none;
    color: #267e6b;
    gap: 10px;
    align-items: center;
    margin-bottom: 25px;
}

.pageContainer.about .links a:first-child {
    margin-top: 15px
}

/* /About */

/* Help */

.pageContainer.help {
    height: calc(100svh - 115px);
    gap: 0px;
    text-align: justify;
}

.pageContainer.help h3{
    margin-top: 50px;
    margin-bottom: 10px;
}

.pageContainer.help ul, .pageContainer.help p {
    margin: 0px;
}

.pageContainer.help li {
    margin-bottom: 15px;
}

.pageContainer.help li:last-child {
    margin-bottom: 0px;
}

.pageContainer.help .table-of-contents a {
    display: flex;
    text-decoration: none;
    color: #267e6b;
    gap: 10px;
    align-items: center;
    margin-bottom: 25px;
}

.pageContainer.help .table-of-contents li:last-child a {
    margin-bottom: 0px;
}

.pageContainer.help .table-of-contents {
    background-color: #f9fbfa;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.pageContainer.help .table-of-contents h3 {
    margin-top: 0px;
}

.pageContainer.help .subtitle {
    margin-top: 30px;
    margin-bottom: 10px
}

#complete-guide {
  margin-top: 50px;
  margin-bottom: 0px;
}

/* /Help */

/* Toast container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

/* Individual toast */
.toast {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    padding: 16px;
    transform: translateX(100%);
    transition: all 0.3s ease;
    border-left: 4px solid #28a745;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: #28a745;
}

.toast.warning {
    border-left-color: #ff9800;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.info {
    border-left-color: #17a2b8;
}

.toast-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.8;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: #333;
}

.toast-actions {
    display: flex;
}

.toast-btn.primary {
    flex: 1;
    margin-top: 15px;
}

/* /Toast container */





@media screen and (max-width: 480px) {

    .main-section {
        width: 100%;
        margin: 0;
    }

    .pageContainer {
        background-color: #fff;
    }

    .formHolder {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        padding: 20px;
        width: 90%;
        box-sizing: border-box;
    }
}


/* Mobile Menu */

.bottomMenu {
    position: fixed;
    bottom: 0px;
    width: 100%;
    background-color: #fff;
    z-index: 1001;
    height: 65px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.menuItem {
    flex: 1;
}

.menuItem a {
    color: #505050;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.menuItemText {
    font-size: 14px;
    text-align: center;
    white-space: normal;
    width: 100%;
    max-width: 80px;
    word-wrap: break-word;
    line-height: 1.2;
}

.addActivityMenu {
    margin-top: -65px;
    background-color: #fff;
    padding: 15px 0px 0px;
    border-radius: 50px;
    border-top: 1px solid #ddd;
    max-width: 70px;
}

/* More Menu Styles */
.more-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1002;
    overflow-y: auto;
}

.more-menu.active {
    right: 0;
}

.more-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
}

.more-menu-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.close-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    border-radius: 4px;
}

.close-menu-btn:hover {
    background: #e9ecef;
}

.more-menu-content {
    padding: 0;
}

.more-menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.more-menu-item:hover {
    background: #f8f9fa;
}

.more-menu-item svg {
    margin-left: 12px;
    color: #666;
}

.more-menu-item span {
    font-size: 16px;
}

.more-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 1001;
}

.more-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Badge */

/* Badge Styles */
.menu-icon-wrapper,
.more-menu-icon-wrapper {
    position: relative;
    display: flex;
}

.menu-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #267e6b;
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    padding: 0 4px;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(38, 126, 107, 0.3);
}

/* برای منوهای bottom */
.bottomMenu .menuItem .menu-icon-wrapper {
    position: relative;
}

.bottomMenu .menuItem .menu-badge {
    top: -5px;
    right: -10px;
}

/* برای منوی بیشتر */
.more-menu-content .more-menu-item {
    position: relative;
}

.more-menu-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.more-menu-content .menu-badge {
    top: -5px;
    right: -10px;
    font-size: 14px;
}

/* Badge بدون عدد (فقط دایره) */
.menu-badge.menu-badge-dot {
    min-width: 10px;
    width: 10px;
    height: 10px;
    padding: 0;
}

/* /Badge */

/* /Mobile Menu */

/* Confirm Modal */
/* Custom Confirm Modal Styles */
.lp-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.lp-confirm-overlay.show {
    opacity: 1;
    visibility: visible;
}
.lp-confirm-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}
.lp-confirm-overlay.show .lp-confirm-modal {
    transform: scale(1);
    overflow-y: scroll;
}
.lp-confirm-content {
    text-align: right;
    direction: rtl;
    font-family: YekanBakh,tahoma,arial;
}
.lp-confirm-header {
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #e9ecef;
}
.lp-confirm-header h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}
.lp-confirm-body {
    padding: 20px;
}
.lp-confirm-message {
    line-height: 1.6;
    color: #555;
    white-space: pre-line;
    font-size: 16px;
    text-align: justify;
}
.lp-confirm-footer {
    padding: 15px 20px 20px 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}
.lp-confirm-btn {
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
    min-width: 80px;
    flex: 1;
}
.lp-confirm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.lp-confirm-btn:active {
    transform: translateY(0);
}
/* Button variants */
.lp-confirm-btn-danger {
    background: #D7263D;
    color: #fff;
    border: 1px solid #D7263D;
}
.lp-confirm-btn-danger:hover {
    background: #c82333;
}
.lp-confirm-btn-primary {
    background-color: #267e6b;
    color: #fff;
    border: 1px solid #267e6b;
}
.lp-confirm-btn-primary:hover {
    background: #1e5c4f;
}
.lp-confirm-btn-secondary {
    background-color: #fff;
    color: #267e6b;
    border: 1px solid #267e6b;
}
.lp-confirm-btn-secondary:hover {
    background: #f8f9fa;
}
/* Responsive */
@media (max-width: 480px) {
    .lp-confirm-modal {
        width: 95%;
        margin: 10px;
    }
   
    .lp-confirm-btn {
        padding: 14px 16px;
        font-size: 16px;
        min-width: 70px;
    }
}

/* discount code */
/* Discount Section Styles */
.discount-section {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.discount-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.discount-code-input {
    background-color: #fff;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

.discount-code-input:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.apply-discount-btn {
    padding: 8px 20px;
    white-space: nowrap;
    border-radius: 4px;
}

.discount-message {
    font-size: 16px;
    margin-top: 8px;
    min-height: 20px;
}

.discount-message .success-message {
    color: #267e6b;
}

.discount-message .error-message {
    color: #D7263D;
}

.price-display {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.price-value {
    font-weight: bold;
}

.price-value.strikethrough {
    text-decoration: line-through;
    color: #999;
}

.discount-price-display {
    display: none;
}

.discount-price-display.show {
    display: block;
}

.discount-row {
    color: #D7263D;
}

.final-row {
    font-size: 16px;
    padding-top: 8px;
    border-top: 1px solid #ddd;
}

.final-row .price-value {
    color: #267e6b;
}

/* Modal Info Section */
.modal-info-section {
    margin-bottom: 20px;
    line-height: 1.8;
}

.modal-info-section.renew {
    display: flex;
    flex-direction: column;
}

.modal-renew-value {
    color: #2c3e50;
}
/* /discount code */

/* /Confirm Modal */

/* Support Tickets */
/* Support App Container */
#lakposht-support-app.pageContainer {
    height: calc(100svh - 115px);
}

#lakposht-support-app {
    max-width: 800px;
    margin: 0 auto;
}

/* Header */
.support-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
}

.support-header-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.support-header-buttons button {
    flex: 1;
}

.support-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* Buttons */
.btn-primary {
    background-color: #267e6b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #1f6757;
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Loading & Messages */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 14px;
}

.no-tickets {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #d32f2f;
    font-size: 14px;
}

/* Tickets List */
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.ticket-card:hover {
    border-color: #267e6b;
    box-shadow: 0 2px 8px rgba(38, 126, 107, 0.1);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.ticket-subject {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    flex: 1;
}

.ticket-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.ticket-status.status-pending {
    background-color: #fff3e0;
    color: #e65100;
}

.ticket-status.status-reviewing {
    background-color: #e3f2fd;
    color: #1565c0;
}

.ticket-status.status-answered {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.ticket-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.ticket-category {
    color: #888;
}

.ticket-date {
    direction: ltr;
    color: #999;
    font-size: 14px;
}

/* Form Styles */
#lakposht-support-app form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

#lakposht-support-app .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

#lakposht-support-app .form-group label.custom-file-button {
    margin-bottom: 0px;
}

#lakposht-support-app .form-group input,
#lakposht-support-app .form-group select,
#lakposht-support-app .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
    background-color: #fff;
}

#lakposht-support-app .form-group input:focus,
#lakposht-support-app .form-group select:focus,
#lakposht-support-app .form-group textarea:focus {
    outline: none;
    border-color: #267e6b;
}

#lakposht-support-app .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

#lakposht-support-app .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

#lakposht-support-app .form-actions button {
    flex: 1;
    font-size: 16px;
    font-weight: bold;
}

/* Ticket Detail View */
#ticket-info {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ticket-info-section {
    border-bottom: 1px solid #ddd;
    width: 100%;
    padding: 15px 0;
}

.ticket-info-section:last-child {
    border: none;
}

.ticket-info-title {
    color: #777;
    padding-left: 10px;
}

.ticket-info-content {
    color: #000;
    font-size: 16px;
}

.ticket-info-section .ticket-status-badge {
    font-size: 16px;
}

.ticket-category-badge {
    padding: 4px 12px;
    background: #e0e0e0;
    color: #666;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.ticket-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.ticket-status-badge.status-pending {
    background-color: #fff3e0;
    color: #e65100;
}

.ticket-status-badge.status-reviewing {
    background-color: #e3f2fd;
    color: #1565c0;
}

.ticket-status-badge.status-answered {
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* Messages */
.ticket-messages {
    margin-bottom: 20px;
}

.ticket-message {
    margin-bottom: 16px;
    max-width: 70%;
}

.ticket-message.message-user {
    margin-left: auto;
    margin-right: 0;
}

.ticket-message.message-admin {
    margin-left: 0;
    margin-right: auto;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
}

.message-sender {
    font-weight: 500;
    color: #666;
}

.message-date {
    color: #999;
    font-size: 11px;
}

.message-body {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    word-wrap: break-word;
}

.message-user .message-body {
    background: #267e6b;
    color: white;
    border-bottom-right-radius: 4px;
}

.message-admin .message-body {
    background: white;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

/* Reply Form */
#support-detail-view {
  position: relative;
}

#lakposht-support-app form#reply-form {
    flex-direction: row;
    align-items: end;
    gap: 10px;
}

#reply-form-container {
    background: white;
    padding: 20px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    position: sticky;
    bottom: 0;
    margin: 0 -20px;
    width: calc(100% + 40px); 
}


#lakposht-support-app #reply-message {
    font-family: inherit;
    min-height: 0;
    max-height: 200px;
    overflow-y: auto;
    flex: auto;
    min-width: 0;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    resize: none;
}

#reply-form-container .attachment-wrapper {
    display: block;
    border: none;
    overflow: visible;
}

#lakposht-support-app #reply-form-container .form-actions {
    margin-top: 0;
}

#lakposht-support-app #reply-form-container .custom-file-button {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #000;
    margin-bottom: 0px;
    padding: 10px;
    display: flex;
    border-radius: 8px;
}

#reply-form .send-reply {
    background-color: #267e6b;
    color: #fff;
    display: flex;
}

/* Responsive */
@media (max-width: 768px) {
    .support-header h2 {
        font-size: 20px;
    }
    
    .ticket-card {
        padding: 12px;
    }
    
    .ticket-message {
        max-width: 85%;
    }
}

/* File Input */
.attachment-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    font-family: inherit;
}

.attachment-wrapper label {
  background-color: #f5f5f5;
  color: #333;
  padding: 8px 14px;
  cursor: pointer;
  margin: 0;
  white-space: nowrap;
}

.attachment-wrapper label:hover {
  background-color: #e4e4e4;
}

.attachment-wrapper span {
  padding: 8px 12px;
  color: #666;
  font-size: 14px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attachment-wrapper input[type="file"] {
  display: none;
}

.form-group input[type="file"] {
    padding: 8px;
    cursor: pointer;
}

.file-help {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #999;
}

/* Attachment Preview */
.attachment-preview {
    position: relative;
    margin-top: 12px;
    display: inline-block;
}

.attachment-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.btn-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #d32f2f;
    color: white;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-remove:hover {
    background: #b71c1c;
}

/* Ticket Detail Attachment */
.ticket-attachment {
    padding: 16px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ticket-attachment label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.attachment-link {
    display: inline-block;
}

.attachment-link img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s;
}

.attachment-link img:hover {
    transform: scale(1.02);
}

/* Message Attachment */
.message-attachment {
    display: block;
    margin-top: 8px;
}

.message-attachment img {
    max-width: 250px;
    max-height: 250px;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.message-admin .message-attachment img {
    display: block;
    margin-right: auto;
    margin-left: 0;
}

.message-attachment img:hover {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .attachment-preview img {
        max-width: 150px;
        max-height: 150px;
    }
    
    .attachment-link img {
        max-width: 100%;
        max-height: 250px;
    }
    
    .message-attachment img {
        max-width: 100%;
        max-height: 200px;
    }
}

/* /Support Tickets */