:root {
    --ios-blue: #007aff;
    --ios-bg: #f2f2f7;
    --glass: rgba(255, 255, 255, 0.7);
}

body {
    background-color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    scroll-behavior: smooth;
}

.ios-navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 0.5px solid rgba(0,0,0,0.1);
}

.hero-section {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top, #fff 0%, #f2f2f7 100%);
}

.btn-ios-pill {
    background: var(--ios-blue);
    color: #fff;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    border: none;
}

.btn-ios-light {
    background: rgba(0,0,0,0.05);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    border: none;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--ios-bg);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.8rem;
    color: var(--ios-blue);
}

.ios-card {
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.ios-card:hover { transform: translateY(-5px); }

/* iOS Style Navbar Button */
.btn-login-ios {
    background-color: #1c1c1e; /* Deep Black/Gray */
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px; /* Pill shape */
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-login-ios:hover {
    background-color: #3a3a3c;
    color: #ffffff;
    transform: scale(1.02);
}

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

/* Ensure the dropdown menu is allowed to pop out of the navbar */
/* Critical fix for dropdown visibility */
.dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ensure the navbar doesn't cut off the dropdown */
.ios-navbar .container, .ios-navbar {
    overflow: visible !important;
}

/* Fix for z-index layering */
.dropdown-menu {
    z-index: 1060 !important; /* Higher than navbar but lower than modals */
}

/* Ensure the navbar doesn't clip the dropdown */
.ios-navbar {
    overflow: visible !important;
}

/* Fix for potential Bootstrap click issues on mobile */
.dropdown-toggle {
    pointer-events: auto !important;
}
/* This prevents the "Login button formatting" from breaking the dropdown */
.btn-login-ios::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}
/* iOS Style Inputs for the Modal */
.ios-input {
    background-color: #f2f2f7; /* Light gray background */
    border: 1px solid #d1d1d6;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.ios-input:focus {
    background-color: #ffffff;
    border-color: #007aff; /* Apple Blue */
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
    outline: none;
}

/* Pill Button for Login Action */
.btn-ios-pill {
    background-color: #007aff;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-ios-pill:hover {
    opacity: 0.9;
    color: #ffffff;
}

/* Dashboard Card Styling */
.ios-card {
    border-radius: 20px;
    border: none;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.bg-light-ios {
    background-color: #f2f2f7 !important;
}

.btn-ios-add {
    background: var(--ios-blue);
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-input {
    background-color: #f2f2f7 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.ios-input:focus {
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1) !important;
}

.bg-light-ios {
    background-color: #f2f2f7;
    border-radius: 18px;
}

/* Modal Animation */
.modal.fade.ios-modal .modal-dialog {
    transform: translateY(100px);
    transition: transform 0.3s ease-out;
}

.modal.show.ios-modal .modal-dialog {
    transform: translateY(0);
}