/* Domain Management Styles */

.domain-search-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.domain-search-form {
    margin-bottom: 30px;
    width: 100%;
}

.domain-search-form h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#domain-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#domain-search-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.search-btn {
    padding: 12px 24px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.search-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.search-help {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

/* Search Results */
#search-results {
    margin-top: 30px;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.search-summary {
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.search-summary h3 {
    margin: 0 0 10px 0;
    color: #0066cc;
    font-size: 20px;
}

.search-summary p {
    margin: 0;
    color: #0066cc;
    font-weight: 500;
}

.domain-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.domain-result-card {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.domain-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.domain-result-card.available {
    border-color: #28a745;
}

.domain-result-card.taken {
    border-color: #dc3545;
    opacity: 0.7;
}

.domain-result-card.transfer {
    border-color: #fd7e14;
    border-left: 4px solid #fd7e14;
}

.price-item.primary {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    border-left: 3px solid #007bff;
}

.price-item.primary .price-label {
    font-weight: 600;
    color: #007bff;
}

.price-item.primary .price-value {
    font-weight: 600;
    color: #007bff;
}

.domain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.domain-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.domain-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.domain-status.available {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.domain-status.taken {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.domain-status.transfer {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.domain-pricing {
    padding: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.price-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.price-label {
    font-weight: 500;
    color: #666;
}

.price-value {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.domain-actions {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.btn-primary {
    background: #0073aa;
    color: white;
}

.btn-primary:hover {
    background: #005177;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

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

.btn-locked:hover {
    background: #dc3545 !important;
    transform: none !important;
}

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

.pricing-error,
.domain-unavailable {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Pagination Controls */
.pagination-controls {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
}

.pagination-info {
    margin-bottom: 15px;
}

.pagination-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.pagination-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.pagination-btn:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

#load-more-domains {
    padding: 12px 24px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 180px;
}

#load-more-domains:hover {
    background: #005177;
    transform: translateY(-1px);
}

#load-more-domains:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Transfer Modal */
.domain-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.domain-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.transfer-info {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.transfer-info p {
    margin: 5px 0;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.form-text {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #ddd;
    background: #f8f9fa;
}

/* Notifications */
.domain-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 10001;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.domain-notification.success {
    background: #28a745;
}

.domain-notification.error {
    background: #dc3545;
}

.domain-notification.info {
    background: #17a2b8;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 100%) {
    .domain-search-container {
      
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .domain-results-grid {
        grid-template-columns: 100%;
    }
    
    .domain-actions {
        flex-direction: column;
    }
    
    .btn {
        flex: none;
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .domain-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .pagination-buttons {
        flex-direction: column;
    }
    
    .pagination-btn,
    #load-more-domains {
        width: 100%;
        max-width: 250px;
    }
}

/* Body modal open state */
body.modal-open {
    overflow: hidden;
}