/* Custom styles for VPN application */

.plan-details {
    font-size: 0.95rem;
}

.plan-detail-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-detail-item:last-child {
    border-bottom: none;
}

.plan-popular {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--bs-primary);
    color: white;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    transform: translateY(-50%);
    border-radius: 0 0 0 0.5rem;
}

.payment-method-option {
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.2s;
}

.payment-method-option:hover {
    border-color: var(--bs-primary);
    background-color: rgba(13, 110, 253, 0.1);
}

.payment-method-option.selected {
    border-color: var(--bs-primary);
    background-color: rgba(13, 110, 253, 0.2);
}

.feature-list {
    list-style-type: none;
    padding-left: 0;
}

/* Broadcast messages */
.broadcast-message {
    position: relative;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-right: 4px solid #4e73df;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    direction: rtl;
    text-align: right;
}

.broadcast-message:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.broadcast-message .dismiss {
    position: absolute;
    top: 10px;
    left: 10px;
    cursor: pointer;
    color: #6c757d;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.broadcast-message .dismiss:hover {
    opacity: 1;
}

.broadcast-message .title {
    font-size: 18px;
    font-weight: 600;
    color: #4e73df;
    margin-bottom: 10px;
}

.broadcast-message .content {
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
    line-height: 1.6;
}

.broadcast-message .date {
    font-size: 12px;
    color: #6c757d;
    text-align: left;
}
}

.feature-list li {
    padding: 0.4rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--bs-success);
    position: absolute;
    left: 0;
    top: 0.5rem;
}

.config-box {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.config-box pre {
    white-space: pre-wrap;
    word-break: break-all;
    color: #a3e9a4;
    margin-bottom: 0;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    opacity: 0.7;
}

.copy-btn:hover {
    opacity: 1;
}

/* Service status colors */
.status-active {
    color: var(--bs-success);
}

.status-expired {
    color: var(--bs-danger);
}

.status-warning {
    color: var(--bs-warning);
}

/* Progress bars */
.data-usage-bar .progress-bar {
    transition: width 0.5s ease;
}

.progress-label {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    text-align: center;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: bold;
}

/* Notification styles */
.notification-dropdown {
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
    width: 320px;
    max-width: 90vw;
}

.notification-dropdown .dropdown-item {
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    white-space: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notification-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.notification-dropdown .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.notification-dropdown .dropdown-item.bg-secondary {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.notification-dropdown .dropdown-item .text-light {
    color: rgba(255, 255, 255, 0.85) !important;
}

.notification-dropdown .dropdown-item:active {
    background-color: var(--bs-primary);
}

.notification-dropdown .notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    direction: rtl;
}

.notification-dropdown .notification-content {
    font-size: 0.85rem;
    word-break: break-word;
    white-space: normal;
    direction: rtl;
    line-height: 1.5;
    max-width: 100%;
}

/* Improve appearance of notifications in notification page */
.notification-content {
    word-break: break-word;
    white-space: normal;
    direction: rtl;
    line-height: 1.5;
    display: block;
    width: 100%;
}

/* Responsive notification items */
@media (max-width: 768px) {
    .notification-actions {
        margin-top: 0.5rem;
    }
    .notification-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Better mobile notification display */
    .list-group-item {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Improve text wrapping on mobile */
    .notification-content {
        max-width: 100%;
        overflow-wrap: break-word;
    }
    
    /* Mobile menu and layout improvements */
    .navbar-brand {
        max-width: 40%;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
    }
    
    /* Fix for notification icon in mobile view */
    .d-lg-none .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    /* Better spacing in mobile view */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Better card display on mobile */
    .card {
        margin-bottom: 1rem;
    }
    .card-header {
        padding: 0.75rem;
    }
    .card-body {
        padding: 0.75rem;
    }
    
    /* Better form display on mobile */
    .form-label {
        margin-bottom: 0.25rem;
    }
    .form-control {
        margin-bottom: 0.5rem;
    }
    
    /* Improve button spacing on mobile */
    .btn {
        margin-bottom: 0.5rem;
    }
    .btn-group .btn {
        margin-bottom: 0;
    }
}

.notification-dropdown .notification-time {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Dark mode pagination */
.pagination-dark .page-link {
    background-color: #343a40;
    border-color: #495057;
    color: #f8f9fa;
}

.pagination-dark .page-item.active .page-link {
    background-color: #2b8dec;
    border-color: #2b8dec;
    color: white;
}

.pagination-dark .page-item.disabled .page-link {
    background-color: #343a40;
    border-color: #495057;
    color: #6c757d;
}

/* استایل برای کارت‌های پلن */
.card.bg-dark.border-secondary {
    transition: all 0.3s ease;
    border-width: 1px;
}

.card.bg-dark.border-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: #0d6efd;
}

/* استایل برای کارت‌های دسته‌بندی */
.category-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #0d6efd;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* استایل برای قیمت در کارت‌ها */
.card-body .text-primary .h3 {
    font-weight: 700;
}

/* فاصله‌گذاری بهتر برای مودال‌ها */
.modal-content {
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    border-bottom-color: #2c3034;
}

.modal-footer {
    border-top-color: #2c3034;
}