/* Custom styles to complement Bootstrap */
.country-flag {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Country Card Styles */
.country-card {
    background: var(--bs-dark);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    transition: transform 0.2s;
}

.country-card:hover {
    transform: translateY(-2px);
}

.country-flag-large {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.country-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-item {
    padding: 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Dark theme compatibility */
[data-bs-theme=dark] .card {
    background: var(--bs-dark);
    border-color: var(--bs-border-color);
}

.footer {
    margin-top: 3rem;
    padding: 2rem 0;
    background: var(--bs-dark);
}

/* Communication buttons */
.call-btn, .whatsapp-btn, .sms-btn {
    margin-right: 5px;
}

.sms-btn {
    background-color: #5bc0de;
    border-color: #46b8da;
}

.sms-btn:hover {
    background-color: #31b0d5;
    border-color: #269abc;
}

/* RTL Support */
.rtl {

.country-details {
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-label {
    flex: 0 0 120px;
    font-weight: 500;
}

.detail-value {
    flex: 1;
}

.formatted-number {
    background-color: rgba(13, 110, 253, 0.1);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1.5rem;
}

.formatted-number .number {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0.5rem 0;
    letter-spacing: 0.5px;
}

.copy-notification {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(25, 135, 84, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: bottom 0.3s ease-in-out;
    z-index: 1080;
}

.copy-notification.show {
    bottom: 20px;
}

    direction: rtl;
    text-align: right;
}

/* Auto ads styling is handled by Google */


.rtl .navbar-nav {
    padding-right: 0;
}

.rtl .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.rtl .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* Cookie Consent Banner */
.cookie-consent {
    display: none;  /* Will be shown via JavaScript */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bs-dark);
    padding: 1rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    border-top: 1px solid var(--bs-border-color);
}

.cookie-consent p {
    color: var(--bs-body-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-consent .btn {
    min-width: 120px;
}
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --background-dark: #212529;
    --text-light: #f8f9fa;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-bottom: 3rem;
}

.navbar-brand img {
    margin-right: 0.5rem;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    background-color: rgba(33, 37, 41, 0.7);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.country-result {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: rgba(33, 37, 41, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.country-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.country-flag {
    width: 80px;
    height: auto;
    margin-right: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.country-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .country-details {
        grid-template-columns: 1fr 1fr;
    }
}

.detail-row {
    display: flex;
    border-bottom: 1px solid rgba(108, 117, 125, 0.2);
    padding-bottom: 0.5rem;
}

.detail-label {
    font-weight: 600;
    width: 120px;
    color: var(--primary-color);
}

.detail-value {
    flex: 1;
}

.formatted-number {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.formatted-number h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.formatted-number .number {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.footer {
    background-color: rgba(33, 37, 41, 0.9);
    padding: 1.5rem 0;
    margin-top: auto;
}