/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1E1E2E 0%, #2A2A3D 100%);
    color: #E2E8F0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(42, 42, 61, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #E2E8F0;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3B82F6;
}

.logo i {
    font-size: 1.8rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #E2E8F0;
    font-size: 0.9rem;
}

.stat-item i {
    color: #3B82F6;
    font-size: 0.8rem;
}

.stat-label {
    color: #94A3B8;
    font-weight: 500;
}

.stat-value {
    color: #FFFFFF !important;
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: rgba(59, 130, 246, 0.2);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.8rem;
    color: #94A3B8;
}

.dropdown {
    color: #94A3B8;
    font-size: 0.8rem;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: 280px;
    height: calc(100vh - 70px);
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(59, 130, 246, 0.2);
    transform: translateX(0);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.sidebar.closed {
    transform: translateX(-100%);
}

.sidebar-nav ul {
    list-style: none;
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    color: #94A3B8;
}

.nav-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #E2E8F0;
    border-left-color: #3B82F6;
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
    border-left-color: #3B82F6;
}

.nav-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    margin-top: 70px;
    padding: 2rem;
    transition: margin-left 0.3s ease;
    min-height: calc(100vh - 70px);
}

.sidebar.closed + .main-content {
    margin-left: 0;
}

.dashboard-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.dashboard-section.active {
    display: block;
}

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

.section-header {
    margin-bottom: 2rem;
}

.section-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #94A3B8;
    font-size: 1.1rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.header-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.header-text p {
    color: #94A3B8;
    font-size: 1.1rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Make caller ID display smaller */
#currentCallerId {
    font-size: 0.9rem !important;
    font-weight: 500;
    color: #94A3B8;
}

/* Make success rate display smaller */
#successRate {
    font-size: 0.9rem !important;
    font-weight: 500;
    color: #94A3B8;
}

/* Make account minutes display smaller */
#accountMinutes {
    font-size: 0.9rem !important;
    font-weight: 500;
    color: #94A3B8;
}

/* Make active calls display smaller */
#activeCallsCount {
    font-size: 0.9rem !important;
    font-weight: 500;
    color: #94A3B8;
}

/* Make recent activity text smaller */
#recentActivity {
    font-size: 0.9rem !important;
    color: #94A3B8;
}

#recentActivity .activity-item {
    font-size: 0.9rem !important;
    color: #94A3B8;
}

#recentActivity .activity-time {
    font-size: 0.8rem !important;
    color: #64748B;
}

/* Make route/plan section text smaller */
#route-plan .section-header p {
    font-size: 0.9rem !important;
    color: #94A3B8;
}

#route-plan .form-control {
    font-size: 0.9rem !important;
}

#route-plan .form-group label {
    font-size: 0.9rem !important;
    color: #94A3B8;
}

#route-plan .plan-details h4 {
    font-size: 1rem !important;
    color: #E2E8F0;
}

#route-plan .plan-item {
    font-size: 0.9rem !important;
    color: #94A3B8;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(42, 42, 61, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
    border-color: #3B82F6;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 0.9rem;
    color: #94A3B8;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #E2E8F0;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.recent-activity {
    background: rgba(42, 42, 61, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
}

.recent-activity h3 {
    margin-bottom: 1rem;
    color: #E2E8F0;
    font-weight: 600;
}

/* Form Styles */
.form-container {
    background: rgba(42, 42, 61, 0.8);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
    max-width: 600px;
}

/* Topup form container should be left-aligned */
#topup-sip .form-container {
    margin: 0;
    margin-left: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #E2E8F0;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(30, 30, 46, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #E2E8F0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: #64748B;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: rgba(42, 42, 61, 0.8);
    color: #E2E8F0;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3B82F6;
}

.btn-success {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF;
    border: 1px solid #F59E0B;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* Price Display */
.price-display {
    background: rgba(30, 30, 46, 0.8);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.price-display h3 {
    color: #E2E8F0;
    font-size: 1.2rem;
}

.price-display span {
    color: #3B82F6;
    font-weight: 700;
}

/* Filters Container */
.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(42, 42, 61, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 0.5rem;
    color: #E2E8F0;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Table Styles */
.table-container {
    background: rgba(42, 42, 61, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    color: #E2E8F0;
}

.data-table th {
    background: rgba(30, 30, 46, 0.8);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #3B82F6;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.data-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 3rem 1rem !important;
}

.empty-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #94A3B8;
}

.empty-message i {
    font-size: 3rem;
    color: #64748B;
    margin-bottom: 0.5rem;
}

.empty-message h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #E2E8F0;
    margin: 0;
}

.empty-message p {
    font-size: 0.95rem;
    color: #94A3B8;
    margin: 0;
    max-width: 400px;
    line-height: 1.5;
}

/* Users Container */
.users-container {
    background: rgba(42, 42, 61, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
}

.users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.user-card {
    background: rgba(30, 30, 46, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.user-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

/* SIP Status Styles */
.sip-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.sip-status.has-sip {
    color: #22C55E;
}

.sip-status.no-sip {
    color: #EF4444;
}

.sip-status i {
    font-size: 0.75rem;
}

/* Password Toggle Button Styles */
.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    z-index: 2;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.password-toggle:hover {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.1);
}

.password-toggle:focus {
    outline: none;
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.2);
}

.password-toggle i {
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

/* Input group with password toggle */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group .form-control {
    padding-right: 3rem; /* Make space for toggle button */
}

.input-group .password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Generate button styles */
.btn-generate {
    background: #4a5568;
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.btn-generate:hover {
    background: #2d3748;
    transform: translateY(-1px);
}

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

.user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.user-name {
    font-weight: 600;
    color: #E2E8F0;
}

.user-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.user-status.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.user-status.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.user-details {
    margin-bottom: 1rem;
}

.user-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.user-detail span:first-child {
    color: #94A3B8;
}

.user-detail span:last-child {
    color: #E2E8F0;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Activity List */
.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(59, 130, 246, 0.05);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #E2E8F0;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.8rem;
    color: #94A3B8;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 30, 46, 0.9);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #3B82F6;
}

.loading-spinner i {
    font-size: 2rem;
}

.loading-spinner span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 90px;
    right: 20px;
    background: rgba(42, 42, 61, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #E2E8F0;
    font-weight: 500;
    z-index: 10000;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
    word-wrap: break-word;
}

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

.notification.success {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

.notification.error {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

.notification.warning {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.1);
}

.notification.info {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.1);
}

.notification .notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification .notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    color: #10B981;
}

.notification.error .notification-icon {
    color: #EF4444;
}

.notification.warning .notification-icon {
    color: #F59E0B;
}

.notification.info .notification-icon {
    color: #3B82F6;
}

.notification .notification-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.notification .notification-close:hover {
    color: #E2E8F0;
}

/* Responsive notification styles */
@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        top: 80px;
    }
}

/* Search Loading Overlay Styles */
.search-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.search-loading-content {
    background: rgba(42, 42, 61, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.search-loading-spinner {
    margin-bottom: 2rem;
}

.search-loading-spinner i {
    font-size: 3rem;
    color: #3B82F6;
    animation: spin 1s linear infinite;
}

.search-loading-text h3 {
    color: #E2E8F0;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.search-loading-text p {
    color: #94A3B8;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.search-loading-progress {
    margin-top: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    border-radius: 3px;
    width: 0%;
    animation: progressAnimation 2s ease-in-out infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes progressAnimation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Search form loading state */
.search-form-container.loading {
    position: relative;
    pointer-events: none;
}

.search-form-container.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 42, 61, 0.8);
    border-radius: 16px;
    z-index: 1;
}

.search-form-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-top: 3px solid #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

.search-form-container.loading .form-control:disabled {
    background: rgba(30, 30, 46, 0.5);
    color: #64748B;
    cursor: not-allowed;
}

/* Results loading state */
.results-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    min-height: 200px;
}

.results-loading-spinner {
    margin-bottom: 1.5rem;
}

.results-loading-spinner i {
    font-size: 2.5rem;
    color: #3B82F6;
    animation: spin 1s linear infinite;
}

.results-loading-text h4 {
    color: #E2E8F0;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.results-loading-text p {
    color: #94A3B8;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive search loading */
@media (max-width: 768px) {
    .search-loading-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .search-loading-spinner i {
        font-size: 2.5rem;
    }
    
    .search-loading-text h3 {
        font-size: 1.3rem;
    }
    
    .search-loading-text p {
        font-size: 0.9rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .sidebar {
        width: 100%;
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-container {
        grid-template-columns: 1fr;
    }
    
    .users-grid {
        grid-template-columns: 1fr;
    }
    
    .caller-id-container {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-left .logo span {
        display: none;
    }
    
    .user-info {
        display: none;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .table-container {
        padding: 1rem;
    }
}

/* Caller ID & SIP User Management */
.caller-id-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.management-card {
    background: rgba(42, 42, 61, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.management-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.card-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.card-header h3 {
    color: #3B82F6;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.card-header p {
    color: #94A3B8;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-actions .btn {
    flex: 1;
}

.current-user-info {
    background: rgba(30, 30, 46, 0.8);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.user-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #E2E8F0;
    font-size: 0.9rem;
}

.user-display i {
    color: #3B82F6;
    font-size: 1rem;
}

.user-display strong {
    color: #3B82F6;
    font-weight: 600;
}

.form-text {
    color: #94A3B8;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: block;
}

.sip-users-section {
    background: rgba(42, 42, 61, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
}

.section-subheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-subheader h3 {
    color: #E2E8F0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Plan Details */
.plan-details {
    background: rgba(30, 30, 46, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: slideIn 0.3s ease;
}

.plan-details h4 {
    color: #3B82F6;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.plan-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

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

.plan-label {
    color: #94A3B8;
    font-weight: 500;
    font-size: 0.9rem;
}

.plan-value {
    color: #E2E8F0;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    word-wrap: break-word;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 30, 46, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563EB, #7C3AED);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-in {
    animation: slideIn 0.3s ease;
}

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

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-indicator.success {
    background: #22C55E;
}

.status-indicator.error {
    background: #EF4444;
}

.status-indicator.warning {
    background: #F59E0B;
}

.status-indicator.info {
    background: #3B82F6;
}

/* User Dropdown Menu */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #E2E8F0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.dropdown-divider {
    height: 1px;
    background: rgba(59, 130, 246, 0.2);
    margin: 0.5rem 0;
}

/* Reseller Interface Styles */
.reseller-info {
    margin-bottom: 2rem;
}

.info-card {
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-header i {
    color: #FCD34D;
    font-size: 1.5rem;
}

.info-header h3 {
    color: #FCD34D;
    font-size: 1.25rem;
    font-weight: 600;
}

.info-content p {
    color: #E2E8F0;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.reseller-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-label {
    color: #CBD5E1;
    font-size: 0.875rem;
}

.stat-value {
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 1rem;
}

.create-sub-account {
    background: rgba(42, 42, 61, 0.8);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: none; /* Initially hidden */
}

.create-sub-account.show {
    display: block !important;
}

.create-sub-account h3 {
    color: #3B82F6;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions .btn {
    flex: 1;
}

/* Enhanced user cards for reseller view */
.user-card.reseller-sub-account {
    border-left: 4px solid #3B82F6;
}

.user-card.reseller-sub-account .user-header {
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
}

.user-card.reseller-sub-account .user-name {
    color: #FCD34D;
}

.user-card.reseller-sub-account .user-role {
    color: #CBD5E1;
}

/* Responsive Design for Reseller Interface */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .reseller-stats {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Header Styles for Create SIP Account */
.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.header-text h1 {
    margin-bottom: 0.5rem;
}

.header-text p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Create SIP Container */
.create-sip-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
}

/* Config Card Styles */
.config-card {
    background: rgba(42, 42, 61, 0.8);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.config-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
    border-color: #3B82F6;
}

.config-card .card-header {
    text-align: left;
    margin-bottom: 2rem;
}

.config-card .card-header h3 {
    color: #3B82F6;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.config-card .card-header p {
    color: #94A3B8;
    font-size: 1rem;
    line-height: 1.5;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #E2E8F0;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group label i {
    color: #3B82F6;
    font-size: 1rem;
    width: 16px;
}

/* Input Container */
.input-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-container .form-control {
    flex: 1;
    padding: 0.875rem 1rem;
    background: rgba(30, 30, 46, 0.8);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: #E2E8F0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-container .form-control:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: rgba(30, 30, 46, 0.9);
}

/* Button Styles for Input Actions */
.btn-generate, .btn-toggle {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3B82F6;
    padding: 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1rem;
}

.btn-generate:hover, .btn-toggle:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3B82F6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-generate:active, .btn-toggle:active {
    transform: translateY(0);
}

/* Checkbox Group */
.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(30, 30, 46, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.checkbox-container:hover {
    background: rgba(30, 30, 46, 0.7);
    border-color: #3B82F6;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3B82F6;
    cursor: pointer;
}

.checkbox-container label {
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #E2E8F0;
}

.checkbox-container label i {
    color: #3B82F6;
    font-size: 1rem;
}

/* Enhanced Preview Card */
.preview-card {
    background: rgba(42, 42, 61, 0.8);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.4s ease;
}

.preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
    border-color: #3B82F6;
}

.preview-card .card-header {
    text-align: left;
    margin-bottom: 1.5rem;
}

.preview-card .card-header h3 {
    color: #3B82F6;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.preview-card .card-header p {
    color: #94A3B8;
    font-size: 1rem;
    line-height: 1.5;
}

/* Preview Content */
.preview-content {
    background: rgba(30, 30, 46, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.preview-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: #3B82F6;
    transform: translateY(-1px);
}

.preview-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.preview-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.preview-label {
    color: #94A3B8;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-value {
    color: #E2E8F0;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    word-break: break-all;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.primary-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.secondary-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* Button Variants */
.btn-outline {
    background: transparent;
    border: 2px solid #3B82F6;
    color: #3B82F6;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #3B82F6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-link {
    background: none;
    border: none;
    color: #94A3B8;
    text-decoration: none;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link:hover {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.1);
    text-decoration: none;
}

/* Animations */
@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design for Create SIP */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .header-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .create-sip-container {
        max-width: 100%;
    }
    
    .config-card, .preview-card {
        padding: 1.5rem;
    }
    
    .preview-grid {
        grid-template-columns: 1fr;
    }
    
    .primary-actions, .secondary-actions {
        flex-direction: column;
    }
    
    .input-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-generate, .btn-toggle {
        width: 100%;
        height: auto;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .config-card, .preview-card {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .preview-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .preview-details {
        align-items: center;
    }
}

/* Reseller Management Styles */
.reseller-setup-prompt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(42, 42, 61, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideInUp 0.4s ease;
}

.setup-prompt-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.setup-prompt-header i {
    font-size: 3rem;
    color: #3B82F6;
    margin-bottom: 1rem;
}

.setup-prompt-header h3 {
    color: #F8FAFC;
    margin: 0;
    font-size: 1.5rem;
}

.setup-prompt-body p {
    color: #CBD5E1;
    text-align: center;
    margin-bottom: 1.5rem;
}

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.setup-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.setup-step.completed {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.setup-step i {
    font-size: 1.2rem;
    color: #3B82F6;
}

.setup-step.completed i {
    color: #22C55E;
}

.setup-step span {
    color: #F8FAFC;
    font-weight: 500;
}

.setup-prompt-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Plans Management */
.plans-management {
    background: rgba(42, 42, 61, 0.5);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.plans-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.plans-header h3 {
    color: #F8FAFC;
    margin: 0;
    font-size: 1.5rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.plan-card {
    background: rgba(42, 42, 61, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.plan-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.plan-header h4 {
    color: #F8FAFC;
    margin: 0;
    font-size: 1.25rem;
    flex: 1;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3B82F6;
    margin: 0;
}

.plan-content {
    padding: 1rem 1.5rem;
    flex: 1;
}

.plan-description {
    color: #CBD5E1;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.plan-features {
    color: #94A3B8;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.85rem;
}

.plan-limit {
    color: #F59E0B;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.plan-details {
    margin-bottom: 1rem;
}

.plan-detail {
    color: #94A3B8;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.plan-detail.package-offer {
    color: #F59E0B;
    font-weight: 500;
}

.plan-detail.package-offer::before {
    content: "🎁 ";
    margin-right: 0.25rem;
}

.plan-group {
    color: #94A3B8;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.plan-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    background: rgba(30, 30, 46, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.plan-status.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.plan-status.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.plan-actions {
    display: flex;
    gap: 0.5rem;
}

/* Empty state for plans */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #94A3B8;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    color: #475569;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #CBD5E1;
    margin: 0.5rem 0;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* Tariffs Management */
.tariffs-management {
    background: rgba(42, 42, 61, 0.5);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.tariffs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.tariffs-header h3 {
    color: #F8FAFC;
    margin: 0;
    font-size: 1.5rem;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tariff-card {
    background: rgba(42, 42, 61, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.tariff-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.tariff-card h4 {
    color: #F8FAFC;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.tariff-prefix {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3B82F6;
    margin-bottom: 0.5rem;
}

.tariff-destination {
    color: #CBD5E1;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.tariff-rate {
    font-size: 1.25rem;
    font-weight: bold;
    color: #22C55E;
    margin-bottom: 1rem;
}

.tariff-details {
    color: #94A3B8;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tariff-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.tariff-status.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.tariff-status.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.tariff-actions {
    display: flex;
    gap: 0.5rem;
}

/* Top-up Management */
.topup-management {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.topup-form {
    background: rgba(42, 42, 61, 0.5);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.topup-history {
    background: rgba(42, 42, 61, 0.5);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.topup-history h3 {
    color: #F8FAFC;
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(42, 42, 61, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
}

.history-info {
    flex: 1;
}

.history-username {
    color: #F8FAFC;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.history-description {
    color: #CBD5E1;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.history-date {
    color: #94A3B8;
    font-size: 0.75rem;
}

.history-amount {
    color: #22C55E;
    font-weight: bold;
    font-size: 1.125rem;
    margin-right: 1rem;
}

.history-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.history-status.completed {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Reports Dashboard */
.reports-dashboard {
    background: rgba(42, 42, 61, 0.5);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.reports-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.chart-container {
    background: rgba(42, 42, 61, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.chart-container h3 {
    color: #F8FAFC;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.recent-activity {
    background: rgba(42, 42, 61, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.recent-activity h3 {
    color: #F8FAFC;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(42, 42, 61, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 8px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3B82F6;
}

.activity-icon.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.activity-icon.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.activity-icon.error {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.activity-icon.info {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.activity-content {
    flex: 1;
}

/* Crypto Payment Styles */
.topup-container {
    max-width: 700px;
    margin: 0;
    margin-left: 0;
}

.topup-step {
    margin-bottom: 1rem;
}

.cost-display {
    font-size: 1.25rem;
    font-weight: bold;
    color: #10B981;
    text-align: center;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.crypto-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.crypto-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(42, 42, 61, 0.5);
    border: 2px solid rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.crypto-option:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(42, 42, 61, 0.8);
    transform: translateY(-2px);
}

.crypto-option.selected {
    border-color: #3B82F6;
    background: rgba(59, 130, 246, 0.1);
}

.crypto-option.selected .crypto-select {
    opacity: 1;
    color: #10B981;
}

.crypto-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    font-size: 1.25rem;
    color: #3B82F6;
}

.crypto-info {
    flex: 1;
}

.crypto-name {
    font-weight: 600;
    color: #E2E8F0;
    margin-bottom: 0.25rem;
}

.crypto-code {
    color: #94A3B8;
    font-size: 0.875rem;
}

.crypto-select {
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.payment-summary {
    background: rgba(42, 42, 61, 0.5);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.payment-summary h4 {
    color: #E2E8F0;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

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

.summary-item span:first-child {
    color: #94A3B8;
}

.summary-item span:last-child {
    color: #E2E8F0;
    font-weight: 600;
}

.step-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.payment-info {
    background: rgba(42, 42, 61, 0.5);
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.payment-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 6px;
}

.status-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.status-indicator.waiting {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.status-indicator.confirming {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.status-indicator.confirmed,
.status-indicator.finished {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.status-indicator.failed,
.status-indicator.expired {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.status-text h4 {
    color: #E2E8F0;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.status-text p {
    color: #94A3B8;
    margin: 0;
}

.payment-amount {
    text-align: center;
    margin-bottom: 1.25rem;
}

.payment-amount h4 {
    color: #E2E8F0;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
}

.amount-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.amount-display .amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #10B981;
}

.amount-display .currency {
    font-size: 1rem;
    color: #94A3B8;
    font-weight: 600;
}

.payment-address {
    margin-bottom: 1.25rem;
}

.payment-address h4 {
    color: #E2E8F0;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
}

.address-container {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    background: rgba(30, 30, 46, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.address-text {
    flex: 1;
    font-family: 'Courier New', monospace;
    color: #E2E8F0;
    word-break: break-all;
    font-size: 0.875rem;
}

.payment-qr {
    margin-bottom: 1.25rem;
    text-align: center;
}

.payment-qr h4 {
    color: #E2E8F0;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
}

.qr-container {
    display: inline-block;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
}

.qr-code {
    width: 150px;
    height: 150px;
    border-radius: 4px;
}

.payment-instructions {
    margin-bottom: 1.25rem;
}

.payment-instructions h4 {
    color: #E2E8F0;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
}

.payment-instructions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment-instructions li {
    padding: 0.3rem 0;
    color: #94A3B8;
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.9rem;
}

.payment-instructions li:before {
    content: '•';
    color: #3B82F6;
    font-size: 1rem;
    position: absolute;
    left: 0;
    top: 0.3rem;
}

.payment-timer {
    text-align: center;
    padding: 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #F59E0B;
    font-weight: 600;
    font-size: 0.9rem;
}

.payment-timer i {
    margin-right: 0.5rem;
}

.payment-timer .timer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.payment-timer .expires-text {
    font-size: 0.85rem;
    opacity: 0.9;
}

.payment-timer .countdown-timer {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.payment-timer .countdown-time {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.payment-timer .countdown-time.expired {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Warning message styles */
.warning-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    color: #f59e0b;
    font-size: 0.875rem;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.warning-message i {
    color: #f59e0b;
    font-size: 1rem;
}

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

/* Make disabled buttons still show hover effect for warnings */
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn:disabled:hover {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Compact payment form styling */
.topup-step .form-group {
    margin-bottom: 1rem;
}

.topup-step h3 {
    font-size: 1.1rem;
    color: #E2E8F0;
}

.topup-step h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.activity-title {
    color: #F8FAFC;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.activity-time {
    color: #94A3B8;
    font-size: 0.875rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
        width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(42, 42, 61, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.modal-header h3 {
    color: #F8FAFC;
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

/* Force show reseller menu items when test mode is enabled */
body.reseller-test-mode .reseller-only {
    display: block !important;
}

/* Responsive Design for Reseller Sections */
@media (max-width: 768px) {
    .plans-grid,
    .tariffs-grid {
        grid-template-columns: 1fr;
    }

    .topup-management {
        grid-template-columns: 1fr;
    }

    .reports-content {
        grid-template-columns: 1fr;
    }

    .setup-prompt-actions {
        flex-direction: column;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

/* Hide payment instructions */
.payment-instructions {
    display: none !important;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(42, 42, 61, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.pagination-info {
    color: #94A3B8;
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pagination-page-info {
    color: #E2E8F0;
    font-size: 0.9rem;
    font-weight: 500;
}

.pagination-controls .btn {
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-controls .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-controls .btn:not(:disabled):hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Medium small status indicator in CDR section */
#cdrTable .status-indicator {
    width: 5px;
    height: 5px;
    margin-right: 0.4rem;
}

/* Find Data Section Styles */
.find-data-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.all-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-form-container {
    background: rgba(42, 42, 61, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 2rem;
}


.cost-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #22C55E;
    font-weight: 600;
}

.cost-display i {
    font-size: 1.1rem;
}

.search-results-container {
    background: rgba(42, 42, 61, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.results-header h3 {
    color: #E2E8F0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-info {
    display: flex;
    gap: 2rem;
    color: #94A3B8;
    font-size: 0.9rem;
}

.results-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.database-result {
    background: rgba(30, 30, 46, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.database-header {
    background: rgba(59, 130, 246, 0.1);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.database-header h4 {
    color: #E2E8F0;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.database-header h4 i {
    color: #3B82F6;
}

.database-info {
    color: #94A3B8;
    font-size: 0.9rem;
    line-height: 1.5;
}

.database-results {
    padding: 1.5rem;
}

.result-record {
    background: rgba(42, 42, 61, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.result-record:hover {
    background: rgba(42, 42, 61, 0.5);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.result-record:last-child {
    margin-bottom: 0;
}

.record-field {
    display: flex;
    margin-bottom: 0.5rem;
    align-items: flex-start;
}

.record-field:last-child {
    margin-bottom: 0;
}

.field-label {
    color: #94A3B8;
    font-weight: 500;
    min-width: 120px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.field-value {
    color: #E2E8F0;
    word-break: break-word;
    flex: 1;
}

.no-results, .no-data {
    text-align: center;
    color: #94A3B8;
    font-style: italic;
    padding: 2rem;
    background: rgba(42, 42, 61, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.error-container {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #EF4444;
    font-weight: 500;
}

.error-message i {
    font-size: 1.1rem;
}

/* Enhanced Find Data Styles */
.find-data-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.search-form-container {
    margin-bottom: 2rem;
}

.search-card {
    background: rgba(42, 42, 61, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.search-header {
    margin-bottom: 2rem;
    text-align: center;
}

.search-header h3 {
    color: #3B82F6;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-header p {
    color: #94A3B8;
    font-size: 1rem;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: end;
}

.form-row .full-width {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #E2E8F0;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #3B82F6;
    font-size: 0.8rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 1rem;
    color: #94A3B8;
    z-index: 1;
}

.input-group .form-control {
    padding-left: 3rem;
}


.form-help {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #94A3B8;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-help i {
    color: #3B82F6;
    margin-top: 0.1rem;
    flex-shrink: 0;
}


.search-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.minutes-warning {
    width: 100%;
    max-width: 500px;
}

.minutes-warning .warning-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #EF4444;
    font-size: 0.9rem;
    line-height: 1.4;
}

.minutes-warning .warning-message i {
    color: #EF4444;
    font-size: 1rem;
    flex-shrink: 0;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.btn-large .btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.btn-large.loading span {
    opacity: 0;
}

.btn-large.loading .btn-loading {
    display: block;
}

.search-results-container {
    background: rgba(42, 42, 61, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.results-title h3 {
    color: #3B82F6;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.results-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94A3B8;
    font-size: 0.9rem;
}

.results-stats .stat-item i {
    color: #3B82F6;
    font-size: 0.8rem;
}

.results-actions {
    display: flex;
    gap: 0.5rem;
}

.results-content {
    min-height: 200px;
}

.result-record {
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.result-record:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(30, 30, 46, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.record-field {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.record-field:last-child {
    margin-bottom: 0;
}

.field-label {
    color: #94A3B8;
    font-weight: 500;
    min-width: 140px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.field-value {
    color: #E2E8F0;
    word-break: break-word;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.error-container {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1rem;
}

.error-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.error-icon {
    color: #EF4444;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.error-content h4 {
    color: #EF4444;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.error-content p {
    color: #FCA5A5;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.no-results-container {
    background: rgba(156, 163, 175, 0.1);
    border: 1px solid rgba(156, 163, 175, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1rem;
}

.no-results-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.no-results-icon {
    color: #9CA3AF;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.no-results-content h4 {
    color: #9CA3AF;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.no-results-content p {
    color: #D1D5DB;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.no-results-content ul {
    color: #D1D5DB;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.no-results-content li {
    margin-bottom: 0.5rem;
}

/* Responsive adjustments for Find Data */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .results-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .record-field {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .field-label {
        min-width: auto;
        margin-right: 0;
    }
    
    .search-card,
    .search-results-container {
        padding: 1.5rem;
    }
    
    .btn-large {
        width: 100%;
        min-width: auto;
    }
}
