/* Base Styles */
:root {
    --primary-color: #25D366;
    --secondary-color: #128C7E;
    --accent-color: #075E54;
    --text-color: #333;
    --text-light: #666;
    --background-color: #f5f5f5;
    --card-color: #fff;
    --border-color: #e0e0e0;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --text-color: #f5f5f5;
    --text-light: #bbb;
    --background-color: #121212;
    --card-color: #1e1e1e;
    --border-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: "Baloo Bhaijaan 2", sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: var(--transition);
    height: 100vh;
    overflow: hidden;
}

.btn-prim {
    font-family: "Baloo Bhaijaan 2", sans-serif;
}
/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--card-color);
    box-shadow: var(--shadow);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 32px;
    margin-right: 8px;
}

.logo h1 {
    font-size: 1.3rem;
    font-weight: 600;
}

.icon-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.icon-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.app-font{ font-family: "Baloo Bhaijaan 2", sans-serif; }
.share-icon-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    width: 100px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.d-flex{ display:flex;}
.install-button {
    background: none;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    width: 100px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--primary-color);
    border: 1px solid #fff;
    color:#fff;
}

.share-icon-button:hover {
    background-color: rgba(37, 211, 102, 0.1);
}

/* Main Content */
main {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    position: relative;
}

.intro {
    text-align: center;
    margin-bottom: 24px;
}
    .intro h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
        color: var(--primary-color);
    }
    .intro p {
        color: var(--text-color);
        opacity: 0.8;
    }
.tab-content {
    display: none;
    height: 100%;
}

.tab-content.active {
    display: block;
}

/* Home Tab */
.input-container {
    margin-bottom: 16px;
    background-color: var(--card-color);
}

/* IntlTelInput Custom Styling */
.iti {
    width: 100%;
    margin-bottom: 16px;
}

.iti__flag-container:hover {
    cursor: pointer;
}

.iti__country-list {
    background-color: var(--card-color);
    color: var(--text-color);
    border-color: var(--border-color);
    max-height: 200px;
}

.iti__country {
    padding: 10px 12px;
}

.iti__country:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.iti__search-input {
    height: 40px;
}

[data-theme="dark"] .iti__country-list {
    background-color: var(--card-color);
    color: var(--text-color);
}

[data-theme="dark"] .iti__country:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

#phoneInput {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    background-color: var(--card-color);
    color: var(--text-color);
}

.primary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.primary-button:hover {
    background-color: var(--secondary-color);
}

.primary-button i {
    margin-right: 8px;
    font-size: 20px;
}

/* History Tab */
.history-list {
    height: 100%;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-color);
    transition: var(--transition);
}

.history-info {
    flex: 1;
}

.history-number {
    font-weight: 600;
    margin-bottom: 4px;
}

.history-date {
    font-size: 12px;
    color: var(--text-light);
}

.history-actions {
    display: flex;
}

.history-action {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    background-color: rgba(0, 0, 0, 0.05);
    margin-left: 15px;
}

    .history-action:hover {
        background-color: rgba(37 ,211, 102, 0.9);
    }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Settings Tab */
.settings-list {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

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

.setting-label {
    display: flex;
    align-items: center;
}

.setting-label i {
    margin-right: 12px;
    color: var(--primary-color);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

#languageSelect {
    padding: 8px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--card-color);
    color: var(--text-color);
}


.copyright {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70%;
    color: var(--text-light);
}
.copyright .mena{font-weight: 600; }
    /* Bottom Navigation */
    nav {
        display: flex;
        background-color: var(--card-color);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
    }

.nav-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.nav-button.active {
    color: var(--primary-color);
}

.nav-button i {
    font-size: 24px;
    margin-bottom: 4px;
}

    .nav-button span {
        font-size: 15px;
        font-family: "Baloo Bhaijaan 2", sans-serif;
    }

/* Responsive Adjustments */
@media (max-width: 480px) {
    .country-dropdown {
        width: 100%;
        left: 0;
    }
}

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

.fade-in {
    animation: fadeIn 0.3s ease;
}