/* My IP Dashboard Styles */
.ip-wrapper {
    background-color: #f8f9fa;
    padding: 40px 0;
    font-family: 'Outfit', sans-serif;
}

.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.hero-badge {
    background-color: var(--primary_color);
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
}

.hero-badge span {
    color: #ffffff !important;
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 15px;
    color: #6b7280;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Top IP & Map Dashboard Card */
.ip-dashboard-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
}

.ip-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ip-title-main {
    font-size: 16px;
    font-weight: 600;
    color: #4b5563;
    margin: 0;
}

.ip-location-badge {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #1f2937;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ip-strip-item {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.ip-strip-item:hover {
    border-color: #c7d2fe;
    background-color: #fdfdfd;
}

.ip-strip-label {
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
}

.ip-strip-value {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-left: 6px;
    word-break: break-all;
}

.ip-strip-value.highlight {
    font-size: 18px;
    color: #111827;
}

.ip-strip-actions {
    display: flex;
    gap: 4px;
}

.ip-btn-action {
    background: transparent;
    border: none;
    color: #6b7280;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 13px;
}

.ip-btn-action:hover {
    color: var(--primary);
    background-color: #f3f4f6;
}

/* Progress Privacy Index Bar */
.privacy-bar-wrapper {
    background-color: #f3f4f6; /* Neutral light gray background on start */
    height: 38px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    margin-top: 20px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-bar-fill {
    background-color: #ef4444; /* Initial red, turns green/yellow dynamically */
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.8s ease;
    width: 0%;
    border-radius: 30px;
    z-index: 1;
}

.privacy-bar-text {
    position: relative;
    z-index: 2;
    color: #6b7280; /* Loading gray text color */
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    pointer-events: none;
    transition: color 0.3s ease;
}

/* Pulsing shimmer loading layout */
.privacy-bar-wrapper.loading {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: pulse-shimmer 1.5s infinite linear;
}

@keyframes pulse-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Details & Security Subcards */
.section-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    height: 100%;
}

.section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.section-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Details Table styling */
.details-table {
    width: 100%;
    margin-bottom: 0;
    table-layout: fixed;
}

.details-table th {
    padding: 12px 16px;
    font-size: 14px;
    vertical-align: middle;
    border-top: 1px solid #f3f4f6;
    width: 38%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.details-table td {
    padding: 12px 16px;
    font-size: 14px;
    vertical-align: middle;
    border-top: 1px solid #f3f4f6;
    width: 62%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.details-table tr:nth-child(even) {
    background-color: #f9fafb;
}

/* Security Checklist Accordion styling */
.sec-accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.sec-accordion-item:hover {
    border-color: #d1d5db;
}

.sec-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    cursor: pointer;
    user-select: none;
    background-color: #ffffff;
    transition: background-color 0.15s ease;
}

.sec-accordion-header:hover {
    background-color: #f9fafb;
}

.sec-accordion-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sec-accordion-icon {
    font-size: 12px;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.sec-accordion-item.active .sec-accordion-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.sec-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background-color: #f9fafb;
}

.sec-accordion-inner {
    padding: 14px 18px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    border-top: 1px solid #f3f4f6;
}

/* Leaflet Map style overrides */
.map-card-body {
    height: 100%;
    min-height: 290px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    position: relative;
    background-color: #f3f4f6;
}

#map-container {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.btn-open-maps {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1000;
    background: #ffffff;
    border: 1px solid #cccccc;
    color: #374151;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.15s ease;
}

.btn-open-maps:hover {
    background-color: #f9fafb;
    color: var(--primary);
}

/* Export details bar */
.export-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

/* Toast Popup Notification */
.toast-notif {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1f2937;
    border: 1px solid #10b981;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notif.active {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .ip-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .ip-location-badge {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    .ip-strip-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 16px;
    }
    .ip-strip-actions {
        align-self: flex-end;
    }
    .privacy-bar-wrapper {
        margin-bottom: 24px;
    }
    .details-table th, .details-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    .section-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .section-card-header .badge {
        align-self: flex-start;
    }
}
