/* Import shared header styles */
@import url('call.css');

/* Override body background */
body {
    background: #F9FAFB;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-wrapper {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Page Header */
.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.page-description {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

/* Search Section */
.search-section {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.country-selector-wrapper {
    flex-shrink: 0;
}

.country-select-btn {
    height: 44px;
    padding: 0 12px;
    background: white;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #111827;
    transition: all 0.2s;
}

.country-select-btn:hover {
    border-color: #2563EB;
    background: #F9FAFB;
}

.country-flag {
    font-size: 18px;
}

.country-code {
    font-weight: 500;
}

.area-code-input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #111827;
    transition: all 0.2s;
}

.area-code-input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.area-code-input::placeholder {
    color: #9CA3AF;
}

.search-btn {
    height: 44px;
    padding: 0 24px;
    background: #10B981;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.search-btn:hover {
    background: #059669;
}

.search-btn:active {
    transform: scale(0.98);
}

/* Numbers Section */
.numbers-section {
    border-top: 1px solid #E5E7EB;
    padding-top: 24px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
}

.numbers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Number Item */
.number-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #F9FAFB;
    border-radius: 8px;
    transition: all 0.2s;
}

.number-item:hover {
    background: #F3F4F6;
}

.number-info {
    flex: 1;
}

.number-phone {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    margin: 0 0 4px 0;
}

.number-price {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
}

.buy-btn {
    height: 36px;
    padding: 0 20px;
    background: #10B981;
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.buy-btn:hover {
    background: #059669;
}

.buy-btn:active {
    transform: scale(0.95);
}

.buy-btn:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
}

/* Loading & Empty States */
.loading-state,
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6B7280;
    font-size: 14px;
}

.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #EF4444;
    font-size: 14px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

/* Modal Content */
.modal-content {
    width: 90%;
    max-width: 480px;
    background: #2D3748;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
    max-height: 80vh;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.modal-title-section {
    flex: 1;
}

.modal-title {
    font-size: 16px;
    font-weight: 500;
    color: #E5E7EB;
    margin: 0 0 8px 0;
}

.modal-subtitle {
    font-size: 13px;
    color: #9CA3AF;
    line-height: 1.5;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-search {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.modal-country-btn {
    height: 40px;
    padding: 0 12px;
    background: #374151;
    border: 1px solid #4B5563;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: white;
    font-size: 14px;
    transition: all 0.2s;
}

.modal-country-btn:hover {
    background: #4B5563;
}

.modal-area-input {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    background: #374151;
    border: 1px solid #4B5563;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.modal-area-input:focus {
    outline: none;
    border-color: #10B981;
}

.modal-area-input::placeholder {
    color: #6B7280;
}

.modal-search-btn {
    height: 40px;
    padding: 0 20px;
    background: #10B981;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-search-btn:hover {
    background: #059669;
}

.modal-numbers-title {
    font-size: 14px;
    font-weight: 500;
    color: #E5E7EB;
    margin: 0 0 12px 0;
}

.modal-numbers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-number-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #374151;
    border-radius: 8px;
}

.modal-number-info {
    flex: 1;
}

.modal-number-phone {
    font-size: 15px;
    font-weight: 500;
    color: white;
    margin: 0 0 4px 0;
}

.modal-number-price {
    font-size: 12px;
    color: #9CA3AF;
    margin: 0;
}

.modal-buy-btn {
    height: 32px;
    padding: 0 16px;
    background: #10B981;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-buy-btn:hover {
    background: #059669;
}

/* Responsive */
@media (max-width: 640px) {
    .content-wrapper {
        padding: 24px 16px;
    }

    .search-section {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }

    .modal-search {
        flex-direction: column;
    }

    .modal-search-btn {
        width: 100%;
    }
}
