
    /* Enhanced compact design */
:root {
    --primary-color: #0d6efd;
    --border-color: #dee2e6;
    --hover-color: #e9ecef;
    --focus-shadow: rgba(13, 110, 253, 0.25);
    --transition-speed: 0.2s;
}

/** {*/
/*    transition: all var(--transition-speed) ease;*/
/*}*/

/* RTL Support */
.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .input-group {
    flex-direction: row-reverse;
}

.rtl .dropdown-menu {
    right: 0;
    left: auto;
}

.rtl .form-control {
    text-align: right;
}

/* Compact Phone Input Container */
.phone-input-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.phone-input-group {
    display: flex;
    align-items: stretch;
    background: white;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    height: 42px;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.phone-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--focus-shadow);
}

.phone-input-group:hover {
    border-color: #adb5bd;
}

/* Country Selector */
.country-selector {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f8f9fa;
    border-right: 1px solid var(--border-color);
    cursor: pointer;
    min-width: 85px;
    transition: background-color var(--transition-speed);
}

.rtl .country-selector {
    border-right: none;
    border-left: 1px solid var(--border-color);
}

.country-selector:hover {
    background: var(--hover-color);
}

.selected-country {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.country-flag {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.country-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    min-width: 35px;
}

.dropdown-arrow {
    margin-left: 4px;
    color: #6c757d;
    font-size: 10px;
    transform: rotate(0deg);
    transition: transform var(--transition-speed);
}

.rtl .dropdown-arrow {
    margin-left: 0;
    margin-right: 4px;
}

.country-selector[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* Phone Number Input */
.phone-number-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 12px;
    font-size: 14px;
    background: transparent;
    height: 100%;
}

.phone-number-input::placeholder {
    color: #adb5bd;
    transition: opacity var(--transition-speed);
}

.phone-number-input:focus::placeholder {
    opacity: 0.7;
}

/* Enhanced Dropdown */
.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-height: 280px;
    overflow: hidden;
    z-index: 1050;
    margin-top: 4px;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity var(--transition-speed), transform var(--transition-speed), visibility var(--transition-speed);
}

.country-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.rtl .country-dropdown {
    left: auto;
    right: 0;
}

/* Search Box */
.search-container {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    background: #f8f9fa;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition-speed);
}

.search-input:focus {
    border-color: var(--primary-color);
}

/* Country List */
.country-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 4px 0;
}

.country-list::-webkit-scrollbar {
    width: 6px;
}

.country-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.country-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.country-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color var(--transition-speed);
    border-left: 3px solid transparent;
}

.country-item:hover {
    background: var(--hover-color);
    border-left-color: var(--primary-color);
}

.rtl .country-item {
    border-left: none;
    border-right: 3px solid transparent;
}

.rtl .country-item:hover {
    border-right-color: var(--primary-color);
}

.country-item.selected {
    background: #e3f2fd;
    border-left-color: var(--primary-color);
}

.rtl .country-item.selected {
    border-left: none;
    border-right-color: var(--primary-color);
}

.country-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.country-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.country-code-display {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

/* Full Number Display */
.full-number-display {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    font-family: 'Courier New', monospace;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}

.full-number-display.show {
    opacity: 1;
    transform: translateY(0);
}

/* Demo Section Enhancements */
.demo-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.demo-card .card-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    opacity: 0;
    animation: slideInUp 0.6s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

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

.feature-icon {
    color: #4ade80;
    margin-right: 12px;
    font-size: 14px;
}

.rtl .feature-icon {
    margin-right: 0;
    margin-left: 12px;
}

/* Loading Animation */
/*@keyframes pulse {*/
/*    0%, 100% { opacity: 1; }*/
/*    50% { opacity: 0.5; }*/
/*}*/

/*.loading {*/
/*    animation: pulse 1.5s ease-in-out infinite;*/
/*}*/

/* Responsive Design */
@media (max-width: 768px) {
    .phone-input-wrapper {
        max-width: 100%;
    }

    .country-selector {
        min-width: 75px;
    }

    .country-code {
        font-size: 12px;
        min-width: 30px;
    }
}

