* {
    scrollbar-width: none;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

/* Container Styling */
.container {
    display: flex;
    gap: 2vw;
    justify-content: center;
    padding: 4vh 0;
    background-color: rgba(0, 0, 0, 0.053);
}

.scrollsec {
    width: 60vw;
}

/* Navigation Styling */
.navbar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    width: 250px;
    flex-shrink: 0;
}

.nav-links {
    list-style: none;
    padding-left: 0;
}

.nav-links li {
    margin-bottom: 5px;
}

.nav-links a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-links a.active {
    background-color: #abcbff70;
    border-left: 3px solid #2563eb;
}

.nav-links a.active:hover {
    background-color: #f1f5f9;
}

.nav-links a:hover,
.nav-links a:focus {
    background-color: #f1f5f9;
    color: #3b82f6;
    border-left-color: #3b82f6;
}

/* Address Card Styling */
.address-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 30px;
    flex-grow: 1;
}

.address-card h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1e293b;
    position: relative;
    padding-bottom: 10px;
}

.address-card h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #3b82f6;
    border-radius: 3px;
}

/* Address Info Display */
.address-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #3b82f6;
}

.info-line {
    margin-bottom: 10px;
    display: flex;
}

.info-line strong {
    min-width: 80px;
    color: #475569;
}

/* Button Styling */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
    background: #edf0e2;
    color: #475569;
}

.light-red {
    background: #ff7777ad;
    color: #475569;
}

.btn-secondary:hover {
    background: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.savebtn {
    background: #22c55e;
    color: white;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.showx {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 25px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #1e293b;
    font-size: 20px;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.close:hover {
    color: #64748b;
}

/* Form Styling */
.input-group {
    margin-bottom: 18px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }

    .scrollsec {
        width: 100vw;
    }

    .navbar {
        width: 100%;
        margin-bottom: 20px;
    }

    .nav-links {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-width: none;
        padding: 0 10px;
    }

    .nav-links li {
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .nav-links a {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 10px 15px;
    }

    .nav-links a.active {
        border-left-color: transparent;
        border-bottom-color: #3b82f6;
        background: #ffe6e699;
        border-radius: 25px;
    }

    .menusec a.active {
        position: relative;
        display: inline-block;
    }

    .menusec a.active::after {
        content: "";
        position: absolute;
        bottom: -4px;
        left: 0;
        /* or 50% for center */
        width: 70%;
        /* adjust length */
        height: 2px;
        background: #9ccfff;
        transform: translateX(0);
        /* or -50% for center */
    }
}

@media (max-width: 768px) {
    .address-card {
        padding: 20px;
        margin-top: 70px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .info-line {
        flex-direction: column;
    }

    .info-line strong {
        margin-bottom: 5px;
    }

    .footer-row {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .searcbaricon {
        gap: 15px;
    }
}