/* استایل‌های عمومی */
#study-tracker {
    background: #fff;
    padding: 20px;
    max-width: 98%;
    margin: 1px auto;
    font-family: 'IranYekan', sans-serif;
}

#timer-display {
    font-size: 6rem;
    margin: 10px 0;
    text-align: center;
    font-weight: bold;
    padding: 25px 0;
    color: #333;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    font-family: 'Courier New', Courier, monospace;
    transition: transform 0.2s ease;
}

#timer-display.active {
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

button {
    padding: 8px 14px;
    margin: 5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#start-btn {
    background: #1abc9c;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    padding: 14px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 260px;
    margin: 20px auto;
    display: block;
}

#start-btn:hover {
    background: #218838;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
    #start-btn {
        font-size: 1.8rem;
        padding: 18px 40px;
        max-width: 90vw;   /* تناسب با صفحه موبایل */
    }
}





#pause-btn { background: #ffc107; }
#stop-btn { background: #dc3545; color: #fff; }
#save-log { background: #007bff; color: #fff; }

.report-buttons {
    margin-bottom: 15px;
}


/* استایل‌های عمومی دکمه‌ها */
.main-btn {
    font-size: 18px;
    padding: 12px 24px;
    border-radius: 8px;
    background: #28a745;
    color: #fff;
    border: none;
    cursor: pointer;
    margin: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    font-family: 'IranYekan', sans-serif;
}
.main-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.small-btn {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    margin: 3px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    font-family: 'IranYekan', sans-serif;
}
.small-btn:hover {
    background: #ddd;
    transform: translateY(-2px);
}

/* استایل‌های جدول گزارش‌ها در پنل ادمین */
.wp-list-table.widefat.fixed.striped {
    width: 100%;
    border-collapse: collapse;
}
.wp-list-table th, .wp-list-table td {
    padding: 10px;
    text-align: right;
}
.wp-list-table th {
    background: #f9f9f9;
    font-weight: bold;
}
.wp-list-table .button {
    margin: 0 5px;
}
.wp-list-table .select-log {
    margin: 0;
}

/* استایل‌های فیلتر کاربر و دکمه حذف دسته‌جمعی */
#user-filter {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-right: 10px;
    width: 150px;
}
#apply-filter, #clear-filter, #bulk-delete {
    padding: 8px 12px;
    border-radius: 5px;
    margin-right: 5px;
}
#bulk-delete {
    background: #dc3545;
    color: #fff;
    border: none;
}
#bulk-delete:hover {
    background: #c82333;
}
#apply-filter {
    background: #007bff;
    color: #fff;
    border: none;
}
#apply-filter:hover {
    background: #0056b3;
}
#clear-filter {
    background: #6c757d;
    color: #fff;
    border: none;
}
#clear-filter:hover {
    background: #5a6268;
}

/* استایل‌های مودال */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.modal-content h4 {
    margin: 0 0 10px;
    text-align: center;
}
.modal-content label {
    display: block;
    margin-bottom: 8px;
}
.modal-content select,
.modal-content input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}
.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    background: #f0f0f0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}
.modal-close:hover {
    color: #dc3545;
    background: #e0e0e0;
}

.confirm-section, .study-meta-section {
    display: none;
}

.confirm-section.active, .study-meta-section.active {
    display: block;
}

/* استایل‌های بازه‌های امروز */
#today-logs {
    margin: 20px 0;
}

.today-logs-title {
    font-size: 1.5rem;
    margin: 0 0 15px;
    text-align: center;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'IranYekan', sans-serif;
}

.today-logs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.log-item {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-right: 4px solid #007bff;
    font-family: 'IranYekan', sans-serif;
}

.log-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.log-item-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.log-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.log-subject {
    font-size: 1.7rem;
    font-weight: bold;
    color: #007bff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.log-time {
    font-size: 1.6rem;
    color: #555;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.log-item-details {
    display: flex;
    gap: 6px;
}

.log-detail {
    font-size: 1.4rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.log-icon {
    font-size: 1.4rem;
    color: #007bff;
}

.no-logs {
    text-align: center;
    color: #6c757d;
    font-size: 1.3rem;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
    font-family: 'IranYekan', sans-serif;
}

/* استایل‌های کنترل‌های تایمر */
.timer-controls-container {
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    font-family: 'IranYekan', sans-serif;
}




.mode-selector {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* برای موبایل امن باشه */
}

.mode-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;           /* کمی بیشتر تا جا داشته باشه */
    font-size: 1.5rem;
    font-family: 'IranYekan', sans-serif;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    background: #e9ecef;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;             /* مهم: جلوی زیر هم رفتن رو می‌گیره */
}

.mode-btn:hover {
    background: #dee2e6;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.mode-btn.active {
    background: #007bff;
    color: #fff;
}

.mode-btn.active .info-icon {
    color: #fff;
}

/* آیکون راهنما */
.info-icon {
    width: 24px;
    height: 24px;
    font-size: 1rem;
    color: #555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
    transition: all 0.25s ease;
    user-select: none;
	position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.info-icon img { filter: brightness(0) saturate(100%) invert(30%) sepia(10%) hue-rotate(200deg); }


.info-icon:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* تولتیپ */
.info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + -80px);
    left: 50%;
    background: #1a1a1a;
    color: #fff;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
    min-width: 220px;
    text-align: right;
    max-width: 320px;
    width: max-content;
    transform: translateX(5%);
	opacity: 0;
	white-space: pre-line;
}

.info-icon::before {
    content: "";
    position: absolute;
    top: calc(100% + -36px);
    left: 50%;
    transform: translateX(-50%);
    border: 9px solid transparent;
    border-top-color: #1a1a1a;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.info-icon:hover::after,
.info-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

/* موبایل: با نگه داشتن انگشت نشون بده */
@media (max-width: 768px) {
    .info-icon:active::after,
    .info-icon:active::before {
        opacity: 1;
        visibility: visible;
    }
    .info-icon::after {
        max-width: 70vw;
        font-size: 0.95rem;
        transform: translateX(-6%);
        top: calc(100% + -120px);
    }
	.info-icon {
		top: 5px;
		left: 5px;

	}
}





.timer-input-wrapper {
    max-width: 200px;
    margin: 15px auto;
    position: relative;
}

.timer-input-label {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 5px;
    transition: border-color 0.3s ease;
}

.timer-input-label:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

#timer-minutes {
    border: none;
    background: transparent;
    width: 100%;
    padding: 8px 10px 8px 35px;
    font-size: 2.5rem;
    color: #333;
    outline: none;
    font-family: 'IranYekan', sans-serif;
}

.input-icon {
    position: absolute;
    left: 10px;
    font-size: 1.5rem;
    color: #007bff;
}

.timer-display {
    font-size: 6rem;
    font-weight: bold;
    color: #333;
    background: #f8f9fa;
    padding: 25px 20px;
    border-radius: 10px;
    margin: 15px 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    font-family: 'Courier New', Courier, monospace;
    transition: transform 0.2s ease;
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}


@keyframes slideIn {
    from { transform: translateX(-50%) translateY(-100%); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(-50%) translateY(0); opacity: 1; }
    to { transform: translateX(-50%) translateY(-100%); opacity: 0; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* استایل‌های فرم هدف‌گذاری */
#set-goal-first {
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    font-family: 'IranYekan', sans-serif;
    animation: fadeIn 0.3s ease-in;
}

/* استایل labelهای فرم هدف */
#set-goal-first label {
    display: inline-block;
    width: 48%;
    margin: 0 0.5%; /* برای فاصله کوچک بین labelها */
    font-family: 'IranYekan', sans-serif;
}




/* استایل تیتر - قشنگ و متناسب با دکمه */
#set-goal-first h3 {
    font-size: 24px;              /* بزرگ‌تر و خواناتر */
    font-weight: 600;             /* کمی ضخیم‌تر */
    color: #222;                  /* رنگ تیره و حرفه‌ای */
    text-align: center;           
    margin: 0 0 30px 0;           /* فاصله از پایین برای جداسازی از ورودی‌ها */
    padding: 0;
    line-height: 1.4;
}

/* استایل دکمه ثبت هدف - بزرگ، تمام عرض در موبایل، آبی خوشگل */
#set-goal-first button#save-goal {
    display: block;
    width: 100%;                          /* تمام عرض در همه دستگاه‌ها */
    max-width: 400px;                     /* در دسکتاپ خیلی پهن نشه */
    margin: 40px auto 0;                  /* فاصله از بالا و وسط‌چین */
    padding: 16px 20px;                   /* ارتفاع خوب و فضای داخلی */
    font-size: 18px;                      /* متن بزرگ و خوانا */
    font-weight: 600;
    color: white;                         /* متن سفید */
    background: #007bff; /* آبی گرادیانتی مدرن */
    border: none;
    border-radius: 12px;                  /* گوشه‌های گرد قشنگ */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); /* سایه ملایم آبی */
    outline: none;
}

/* افکت هاور و فوکوس - زیباتر شدن هنگام حرکت موس یا لمس */
#set-goal-first button#save-goal:hover,
#set-goal-first button#save-goal:focus {
    background: linear-gradient(135deg, #0056b3, #004494);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);         /* کمی بالا بیاد */
}

/* افکت کلیک */
#set-goal-first button#save-goal:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

/* ریسپانسیو: در موبایل مطمئن بشیم تمام عرض باشه */
@media (max-width: 768px) {
    #set-goal-first button#save-goal {
        max-width: none;                  /* در موبایل واقعاً تمام عرض */
        border-radius: 16px;              /* کمی گردتر در موبایل */
        font-size: 19px;
        padding: 18px 20px;
    }
    
    #set-goal-first h3 {
        font-size: 22px;                  /* کمی کوچکتر در موبایل اگر لازم بود */
        margin-bottom: 25px;
    }
}





@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.goal-form-title {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.goal-inputs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.goal-input-label {
    display: flex;
    align-items: center;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: #ffffff;
    padding: 8px;
    width: 140px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.goal-input-label:hover {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0,123,255,0.2);
}

.goal-input-label:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0,123,255,0.3);
}



#goal-hours::placeholder,
#goal-minutes::placeholder {
    color: #999;
    font-style: italic;
}

.goal-input-label .input-icon {
    font-size: 1.6rem;
    color: #007bff;
}

/* استایل‌های کارت هدف */
.goal-container {
    max-width: 800px;
    margin: 20px auto;
	margin-top: 0px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 12px;
 	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.goal-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    border-right: 4px solid #007bff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'IranYekan', sans-serif;
    flex: 1;
    min-width: 0;
}

.goal-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.goal-box-title {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.goal-details {
    margin-bottom: 15px;
}

.goal-details p {
    font-size: 1.2rem;
    color: #333;
    margin: 8px 0;
}

.goal-value {
    font-weight: bold;
    color: #007bff;
}

#today-total-time {
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* استایل چارت پیشرفت */
.goal-progress {
    flex: 1;
    min-width: 0;
    padding: 10px;
    position: relative;
    max-width: 300px;
}

#goalChart {
    width: 100% !important;
    max-width: 300px !important;
    display: block;
}

/* ریسپانسیو برای گوشی */
@media (max-width: 600px) {
    .today-logs-title {
        font-size: 1.3rem;
    }

    .log-item {
        padding: 12px;
        margin-bottom: 10px;
    }

    .log-subject {
        font-size: 1.4rem;
    }

    .log-time {
        font-size: 1.5rem;
    }

    .log-detail {
        font-size: 1.3rem;
    }

    .log-icon {
        font-size: 1.4rem;
    }

    .timer-controls-container {
        padding: 15px;
        margin: 10px auto;
    }


	.mode-selector {
		gap: 7px;
	}
	.mode-btn {
		 font-size: 1.3rem;
    	gap: 0px;
   		padding: 10px;
	}
	
	
    .timer-display {
        font-size: 4rem;
        padding: 10px 15px;
    }

    .timer-input-wrapper {
        max-width: 150px;
    }

    .timer-input-label {
        font-size: 1.9rem;
        padding: 6px 10px 6px 30px;
    }

    #timer-minutes {
        font-size: 1.9rem;
        padding: 6px 10px 6px 30px;
    }

    #timer-display {
        font-size: 4rem;
    }

    .input-icon {
        font-size: 1.4rem;
    }

    .main-btn {
        font-size: 16px;
        padding: 10px 20px;
    }

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

    .notification {
        width: 90%;
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    #set-goal-first {
        padding: 15px;
        margin: 10px auto;
    }

    .goal-form-title {
        font-size: 1.3rem;
    }



    .goal-box {
        padding: 0px;
        margin-bottom: 0;
        border-right: none;
		box-shadow: unset;
    }

	.goal-box:hover {
  	  box-shadow: unset;
	}
	
	
    .goal-box-title {
        font-size: 1.3rem;
    }

    .goal-details p {
        font-size: 1rem;
    }

    .goal-container {
        flex-direction: column;
    }

    .goal-progress {
        max-width: 250px;
        padding: 5px;
    }

    #goalChart {
        max-width: 250px !important;
    }
}

@media (max-width: 768px) {
    .goal-container {
        flex-direction: column;
        align-items: center;
    }
    
    .goal-progress {
        order: 2;
    }
    
    .goal-box {
        order: 1;
        text-align: center;
    }
}

/* ریسپانسیو برای اصلاح فاصله های داشبورد */
@media (max-width: 768px) {
	   .content {
			padding: 10px 1px !important;
		  }
		#study-tracker {
			padding: 5px;
			}
	}




/* استایل برای "بیشتر..." - ساده */
.show-more-item {
    list-style: none;
    text-align: center;
    padding: 15px 0;
}

.show-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'IranYekan', sans-serif;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 120px;
}

.show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .show-more-btn {
        font-size: 16px;
        padding: 12px 24px;
        min-width: 140px;
    }
}

.study-meta-section .label-text {
           display: block;
    }




.custom-time-input-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 30px;
  direction: ltr;
  margin: 25px 0;
}

/* استایل placeholder - کم‌رنگ کردن */
.custom-time-input-wrapper input::placeholder {
    color: #f5f5f5 !important;   /* خاکستری روشن */
    opacity: 1 !important;
	font-style: normal !important;   /* مهم: کج نباشه */
    font-family: tahoma !important; /* فونت دقیقاً مثل input اصلی (فابریک سیستم) */
}

.custom-time-input-wrapper input::-webkit-input-placeholder {
    color: #f5f5f5 !important;
    opacity: 1 !important;
}

.custom-time-input-wrapper input::-moz-placeholder {
    color: #f5f5f5 !important;
    opacity: 1 !important;
}

.custom-time-input-wrapper input::-ms-input-placeholder {
    color: #f5f5f5 !important;
    opacity: 1 !important;
}


.custom-time-input-wrapper .time-part {
  text-align: center;
}

.custom-time-input-wrapper .time-part label {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
  font-weight: 500;
}

.custom-time-input-wrapper .time-part input {
  width: 100px;
  height: 70px;
  font-size: 42px;
  font-weight: 300;
  text-align: center;
  background: transparent;
  border: none;
  border-bottom: 4px solid #999;
  outline: none;
  transition: all 0.3s ease;
  color: #222;
  padding: 0;
  border-radius: 0;
}

/* وقتی کاربر روش کلیک کرد */
.custom-time-input-wrapper .time-part input:focus {
  border-bottom-color: #0066ff;
}

/* حذف فلش‌های بالا و پایین در کروم، سافاری، اج */
.custom-time-input-wrapper .time-part input[type=number]::-webkit-inner-spin-button,
.custom-time-input-wrapper .time-part input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.custom-time-input-wrapper .time-part input[type=number] {
  -moz-appearance: textfield;
}

.custom-time-input-wrapper .time-colon {
  font-size: 56px;
  font-weight: 100;
  color: #777;
  padding-bottom: 14px;
}







#weekly-report {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin: 20px 0;
}

#weekly-report h4 {
    text-align: center;
    margin: 0 0 20px;
    color: #2d3748;
}

.report-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.period-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    background: #f7fafc;
    padding: 6px 2px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.report-btn {
    padding: 8px 4px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.report-btn.active,
.report-btn:hover {
    background: #4f46e5;
    color: white;
    font-weight: 600;
}

.download-pdf-btn {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.download-pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 63, 94, 0.4);
}

.download-pdf-btn:active {
    transform: translateY(0);
}


/* ریسپانسیو برای موبایل */
@media (max-width: 640px) {
    .report-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .period-buttons {
        justify-content: center;
    }
    
    .download-pdf-btn {
        width: 100%;
        justify-content: center;
    }
       
}


.disabled-mode {
    opacity: 0.5;
    pointer-events: none;   /* کلیک‌ناپذیر */
}
