/* ====== فونت وزیرمتن ====== */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ====== تنظیمات کلی ====== */
* {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

html, body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #f8f9fa;
}

body {
    margin-bottom: 60px;
}

/* ====== صفحه ورود ====== */
.auth-container {
    max-width: 450px;
    margin: 10px auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

    .auth-container h2 {
        text-align: center;
        color: #2c3e50;
        margin-bottom: 30px;
    }

    .auth-container .form-control {
        padding: 12px 15px;
        border-radius: 10px;
        border: 2px solid #e0e0e0;
        text-align: center;
        font-size: 18px;
        letter-spacing: 2px;
    }

        .auth-container .form-control:focus {
            border-color: #3498db;
            box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
        }

    .auth-container .btn-primary {
        width: 100%;
        padding: 12px;
        border-radius: 10px;
        font-size: 18px;
        font-weight: bold;
        background-color: #3498db;
        border: none;
    }

        .auth-container .btn-primary:hover {
            background-color: #2980b9;
        }

/* ====== صفحه تقویم ====== */
.calendar-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

    .calendar-header h2 {
        margin: 0;
        color: #2c3e50;
    }

.legend {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
}

/* ====== FullCalendar ====== */
.fc {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    direction: rtl;
}

.fc-toolbar-title {
    font-size: 1.5rem !important;
    font-weight: bold;
    color: #2c3e50;
}

.fc-button {
    background-color: #3498db !important;
    border-color: #3498db !important;
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}

    .fc-button:hover {
        background-color: #2980b9 !important;
    }

.fc-button-active {
    background-color: #2980b9 !important;
}

.fc-event {
    cursor: pointer;
    border-radius: 5px;
    padding: 2px 5px;
    font-size: 13px;
}

.fc-daygrid-event {
    border-radius: 5px;
    padding: 3px 5px;
}

/* ====== Modal ====== */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background-color: #3498db;
    color: white;
    border-radius: 15px 15px 0 0;
}

    .modal-header .btn-close {
        filter: invert(1);
    }

.modal-body {
    padding: 25px;
}

    .modal-body .detail-row {
        display: flex;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }

        .modal-body .detail-row:last-child {
            border-bottom: none;
        }

    .modal-body .detail-label {
        font-weight: bold;
        color: #7f8c8d;
        min-width: 120px;
    }

    .modal-body .detail-value {
        color: #2c3e50;
    }

/* ====== Badge ====== */
.badge-owner {
    background-color: #3498db;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    display:block;
}

.badge-shared {
    background-color: #FFB347;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
}


.fc .fc-col-header-cell-cushion {
    text-decoration: none !important;
}


    .fc .fc-col-header-cell-cushion,
    .fc .fc-col-header-cell a {
        text-decoration: none !important;
    }

.fc .fc-daygrid-day-number {
    text-decoration: none !important;
}


.fc .fc-button {
    font-size: 0.9rem !important;
}

.fc .fc-toolbar-title {
    max-width: 100px; /* حداکثر عرض مجاز */
    white-space: nowrap; /* متن در یک خط بماند */
    overflow: hidden; /* سرریز مخفی شود */
    text-overflow: ellipsis; /* سرریز با ... نمایش داده شود */
    font-size: 1rem !important;
}

/* ====== دکمه ثبت رویداد ====== */
#createEventBtn {
    border-radius: 20px;
    padding: 6px 15px;
    font-weight: bold;
}

/* ====== Footer Modal ====== */
.modal-footer {
    gap: 10px;
    justify-content: center;
}

    .modal-footer .btn {
        border-radius: 20px;
        padding: 6px 20px;
    }

/* ====== Form ====== */
#eventFormModal .form-control,
#eventFormModal .form-select {
    border-radius: 10px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
}

    #eventFormModal .form-control:focus,
    #eventFormModal .form-select:focus {
        border-color: #3498db;
        box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    }

#eventFormModal .form-label {
    font-weight: bold;
    color: #2c3e50;
}

/* ====== دکمه‌های داخل تقویم ====== */
.fc-daygrid-day {
    cursor: pointer;
}

    .fc-daygrid-day:hover {
        background-color: #f0f8ff;
    }


/* ====== انتخاب روش دریافت کد ====== */
.delivery-method-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.delivery-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

    .delivery-option:hover {
        border-color: #3498db;
        background: #f0f8ff;
    }

    .delivery-option input[type="radio"] {
        display: none;
    }

        .delivery-option input[type="radio"]:checked + .delivery-icon {
            transform: scale(1.1);
        }

        .delivery-option input[type="radio"]:checked ~ .delivery-text {
            color: #3498db;
            font-weight: bold;
        }

    .delivery-option:has(input[type="radio"]:checked) {
        border-color: #3498db;
        background: #e8f4fd;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    }

.delivery-icon {
    font-size: 32px;
    margin-bottom: 8px;
    transition: transform 0.2s ease;
}

.delivery-text {
    font-size: 14px;
    color: #7f8c8d;
    transition: color 0.2s ease;
}

/* ====== دکمه‌های ارسال مجدد ====== */
.resend-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

    .resend-buttons .btn {
        min-width: 120px;
        padding: 8px 15px;
        border-radius: 10px;
        transition: all 0.2s ease;
    }

        .resend-buttons .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .resend-buttons .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }


/* ====== دکمه ثبت‌نام ====== */
.register-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px dashed #e0e0e0;
    text-align: center;
}

.btn-register {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 15px;
    border: 2px solid #27ae60;
    color: #27ae60;
    background: white;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
}

    .btn-register:hover {
        background: #27ae60;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    }



/* ========== Home Page ========== */

/* ====== Hero Section ====== */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-text {
    padding: 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-hero:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }

/* ====== Phone Mockup ====== */
.hero-image {
    text-align: center;
    padding: 20px;
}

.phone-mockup {
    display: inline-block;
    width: 280px;
    height: 550px;
    background: #2c3e50;
    border-radius: 35px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}

    .phone-mockup::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 5px;
        background: #1a252f;
        border-radius: 3px;
    }

.phone-screen {
    background: white;
    border-radius: 25px;
    height: 100%;
    padding: 30px 20px 20px;
    overflow: hidden;
}

.mockup-header {
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.mockup-event {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
}

.mockup-blue {
    background: #3498db;
    color: white;
}

.mockup-purple {
    background: #FFB347;
    color: white;
}

/* ====== Features Section ====== */
.features-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 50px;
}

.feature-card {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}

    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature-description {
    color: #7f8c8d;
    line-height: 1.7;
    font-size: 1rem;
}

/* ====== How It Works Section ====== */
.how-it-works-section {
    padding: 80px 0;
    background: white;
}

.step-card {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.step-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.step-description {
    color: #7f8c8d;
    line-height: 1.7;
}

/* ====== CTA Section ====== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.95;
}

.btn-cta {
    padding: 18px 45px;
    font-size: 1.2rem;
    border-radius: 50px;
    font-weight: bold;
    color: #667eea;
    transition: all 0.3s ease;
}

    .btn-cta:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.2);
        color: #667eea;
    }

/* ====== FAQ Section ====== */
.faq-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
    background: white;
}

    .accordion-button:not(.collapsed) {
        background: #e8f4fd;
        color: #3498db;
    }

.accordion-body {
    color: #7f8c8d;
    line-height: 1.8;
    font-size: 1rem;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .btn-hero {
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }
}

/* ========== Groups Pages ========== */

.groups-container,
.group-detail-container {
    padding: 30px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 0;
}

/* ====== فرم ساخت گروه ====== */
.create-group-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

    .create-group-card h3 {
        color: #2c3e50;
        margin-bottom: 15px;
        font-size: 1.2rem;
    }



.create-group-form .form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
}

    .create-group-form .form-control:focus {
        border-color: #3498db;
        box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    }

.create-group-form .btn {
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: 600;
    white-space: nowrap;
}

/* ====== شبکه گروه‌ها ====== */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.group-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-right: 4px solid #3498db;
}

    .group-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.group-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.group-badge {
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.group-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.group-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .group-actions .btn {
        border-radius: 8px;
        font-size: 0.9rem;
    }

/* ====== جزئیات گروه ====== */
.group-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.add-member-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

    .add-member-card h3 {
        color: #2c3e50;
        margin-bottom: 15px;
        font-size: 1.2rem;
    }

.add-member-form .form-control {
    border-radius: 10px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
}

    .add-member-form .form-control:focus {
        border-color: #3498db;
        box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    }

.add-member-form .btn {
    border-radius: 10px;
    font-weight: 600;
}

/* ====== لیست اعضا ====== */
.members-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

    .members-section h3 {
        color: #2c3e50;
        margin-bottom: 20px;
        font-size: 1.2rem;
    }

.members-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

    .member-item:hover {
        background: #f8f9fa;
        border-color: #3498db;
    }

.member-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 4px;
}

.member-phone {
    color: #3498db;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.member-date {
    color: #95a5a6;
    font-size: 0.8rem;
}

.member-item .btn {
    flex-shrink: 0;
}

/* ====== Empty State ====== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.empty-state p {
    color: #7f8c8d;
    margin: 0;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }

    .groups-grid {
        grid-template-columns: 1fr;
    }

    .group-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    

    .add-member-form .row > div {
        margin-bottom: 10px;
    }

    .member-item {
        flex-wrap: wrap;
    }
}

/* ========== Settings Page ========== */

.settings-container {
    padding: 30px 15px;
    max-width: 900px;
    margin: 0 auto;
}

/* ====== Profile Card ====== */
.profile-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 25px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    flex-shrink: 0;
}

.profile-info h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.profile-phone,
.profile-date {
    font-size: 1rem;
    opacity: 0.9;
    margin: 5px 0;
}

/* ====== Stats ====== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* ====== Settings Menu ====== */
.settings-card {
    padding: 20px;
    border-radius: 15px;
}

.settings-menu {
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    background: none;
    border: none;
    text-align: right;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

    .settings-item:last-child {
        border-bottom: none;
    }

    .settings-item:hover {
        background: #f8f9fa;
        padding-right: 25px;
    }

.settings-item-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.settings-item-content {
    flex: 1;
}

.settings-item-title {
    font-size: 1rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 3px;
}

.settings-item-subtitle {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.settings-item-arrow {
    color: #bdc3c7;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.settings-item:hover .settings-item-arrow {
    color: #3498db;
    transform: translateX(-5px);
}

.logout-item .settings-item-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* ====== SMS History ====== */
.sms-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sms-item {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.2s ease;
}

    .sms-item:hover {
        border-color: #3498db;
        background: #f8f9fa;
    }

.sms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #f0f0f0;
}

.sms-status {
    font-weight: bold;
    font-size: 0.9rem;
}

.sms-date {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.sms-phone {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 5px;
}

.sms-message {
    color: #2c3e50;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 5px;
}

.sms-status-text {
    color: #7f8c8d;
    font-size: 0.85rem;
    font-style: italic;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-info h2 {
        font-size: 1.4rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== Phonebook Page ========== */

.phonebook-container {
    padding: 30px 15px;
    max-width: 1000px;
    margin: 0 auto;
}

/* ====== جستجو ====== */
.search-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.search-form .form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
}

    .search-form .form-control:focus {
        border-color: #3498db;
        box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    }

.search-form .btn {
    border-radius: 10px;
    font-weight: 600;
}

/* ====== فرم افزودن ====== */
.add-contact-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

    .add-contact-card h3 {
        color: #2c3e50;
        margin-bottom: 15px;
        font-size: 1.2rem;
    }

.add-contact-form .form-control {
    border-radius: 10px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
}

    .add-contact-form .form-control:focus {
        border-color: #3498db;
        box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    }

.add-contact-form .btn {
    border-radius: 10px;
    font-weight: 600;
}

/* ====== لیست مخاطبین ====== */
.contacts-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

    .contacts-section h3 {
        color: #2c3e50;
        margin-bottom: 20px;
        font-size: 1.2rem;
    }

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

    .contact-card:hover {
        background: #f8f9fa;
        border-color: #3498db;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

.contact-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-name {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-phone {
    color: #3498db;
    font-size: 0.9rem;
    margin-bottom: 2px;
    font-weight: 600;
}

.contact-real-name {
    color: #95a5a6;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.contact-date {
    color: #bdc3c7;
    font-size: 0.75rem;
}

.contact-delete-form {
    flex-shrink: 0;
}

    .contact-delete-form .btn {
        border-radius: 8px;
        padding: 6px 10px;
    }

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .add-contact-form .row > div {
        margin-bottom: 10px;
    }

    .contact-card {
        padding: 12px;
    }
}


/* ========== Share Modal ========== */

/* ====== انتخاب حالت فرد/گروه ====== */
.share-mode-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.share-mode-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

    .share-mode-option:hover {
        border-color: #3498db;
        background: #f0f8ff;
    }

    .share-mode-option.active {
        border-color: #3498db;
        background: #e8f4fd;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    }

    .share-mode-option input[type="radio"] {
        display: none;
    }

    .share-mode-option .mode-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .share-mode-option .mode-text {
        font-size: 0.9rem;
        color: #7f8c8d;
        font-weight: 500;
    }

    .share-mode-option.active .mode-text {
        color: #3498db;
        font-weight: bold;
    }

/* ====== انتخاب نوع اشتراک ====== */
.share-type-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.share-type-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

    .share-type-option:hover {
        border-color: #3498db;
    }

    .share-type-option.active {
        border-color: #3498db;
        background: #e8f4fd;
    }

    .share-type-option input[type="radio"] {
        display: none;
    }

    .share-type-option .type-icon {
        font-size: 1.8rem;
    }

    .share-type-option .type-content {
        flex: 1;
    }

    .share-type-option .type-title {
        font-weight: bold;
        color: #2c3e50;
        font-size: 1rem;
        margin-bottom: 3px;
    }

    .share-type-option .type-desc {
        color: #7f8c8d;
        font-size: 0.85rem;
    }

    .share-type-option.active .type-title {
        color: #3498db;
    }

/* ====== اشتراک‌های فعلی ====== */
.share-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #fafafa;
}

.share-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .share-item-info strong {
        color: #2c3e50;
        font-size: 0.95rem;
    }

    .share-item-info .text-muted {
        font-size: 0.85rem;
    }

.share-item-status {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .share-item-status span {
        font-size: 0.9rem;
        color: #2c3e50;
        font-weight: 600;
    }

    .share-item-status small {
        font-size: 0.8rem;
    }

/* ====== Responsive ====== */
@media (max-width: 576px) {
    .share-mode-group {
        flex-direction: column;
    }

    .share-type-group {
        gap: 8px;
    }

    .share-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .share-item-status {
        text-align: right;
    }
}

.share-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #fafafa;
    gap: 10px;
}

.share-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.share-item-status {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
}

.cancel-share-btn {
    flex-shrink: 0;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

    .cancel-share-btn:hover {
        background: #dc3545;
        color: white;
        transform: scale(1.1);
    }

@media (max-width: 576px) {
    .share-item {
        flex-direction: column;
        align-items: stretch;
    }

    .share-item-status {
        text-align: right;
    }

    .cancel-share-btn {
        width: 100%;
    }
}

/* ========== Input Method (دستی/دفترچه) ========== */
.input-method-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.input-method-option {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    font-weight: 500;
    color: #7f8c8d;
}

    .input-method-option:hover {
        border-color: #3498db;
        background: #f0f8ff;
    }

    .input-method-option.active {
        border-color: #3498db;
        background: #e8f4fd;
        color: #3498db;
        font-weight: bold;
    }

    .input-method-option input[type="radio"] {
        display: none;
    }

/* ========== Phonebook List ========== */
.phonebook-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-top: 10px;
}

    .phonebook-list::-webkit-scrollbar {
        width: 8px;
    }

    .phonebook-list::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .phonebook-list::-webkit-scrollbar-thumb {
        background: #3498db;
        border-radius: 10px;
    }

.phonebook-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

    .phonebook-item:last-child {
        border-bottom: none;
    }

    .phonebook-item:hover {
        background: #f0f8ff;
    }

    .phonebook-item.selected {
        background: #e8f4fd;
        border-right: 4px solid #3498db;
    }

.phonebook-item-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.phonebook-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .phonebook-item-info strong {
        color: #2c3e50;
        font-size: 0.95rem;
    }

    .phonebook-item-info .text-muted {
        font-size: 0.85rem;
    }

.phonebook-item-check {
    font-size: 1.2rem;
    min-width: 30px;
    text-align: center;
}

/* ========== Selected Contact ========== */
.selected-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #d4edda;
    border: 2px solid #27ae60;
    border-radius: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

    .selected-contact strong {
        color: #155724;
    }

    .selected-contact .text-muted {
        color: #155724 !important;
        font-size: 0.9rem;
    }

    .selected-contact button {
        margin-right: auto;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }


/* ====== Navbar Toggler ====== */
.navbar-toggler {
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 6px 10px;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%233498db' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


.brand-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.brand-logohome {
    height: 96px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-weight: 700;
    font-size: 1.25rem;
    white-space: nowrap;
}