/* 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;
    }
}

/* Bulk IP Lookup Styles */
.ip-bulk-textarea {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 15px;
    font-size: 14px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    line-height: 1.6;
    color: #374151;
    background-color: #f9fafb;
    resize: vertical;
    transition: all 0.25s ease;
}

.ip-bulk-textarea:focus {
    border-color: var(--primary_color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Redesigned Bulk IP Details Card Layout */
.bulk-ip-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    margin-bottom: 25px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bulk-ip-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.bulk-ip-card-header {
    background-color: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bulk-ip-header-left {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-close-card {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    outline: none;
}

.btn-close-card:hover {
    opacity: 0.8;
}

.bulk-ip-card-body {
    padding: 20px;
}

.bulk-ip-details-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bulk-ip-sec-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary_color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 4px;
}

.bulk-ip-sec-title.location-title {
    color: #2563eb; /* Location Blue color */
}

.bulk-ip-info-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bulk-ip-info-list li {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 8px;
    line-height: 1.5;
}

.bulk-ip-info-list li strong {
    color: #1f2937;
    font-weight: 600;
    display: inline-block;
    min-width: 120px;
}

.bulk-ip-map-container {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    position: relative;
}

.bulk-ip-btn-maps {
    position: absolute;
    top: 12px;
    right: 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;
}

.bulk-ip-btn-maps:hover {
    background-color: #f9fafb;
    color: var(--primary_color);
}

/* Reverse Hosting Tabs Styles */
.history-tab-pill {
    display: inline-flex;
    align-items: center;
    background-color: #f4f5f7;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-bottom: -1px;
}

.history-tab-pill:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

.history-tab-pill.active {
    background-color: #ffffff;
    border-bottom-color: #ffffff;
    color: #2563eb;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.02);
}

.history-tab-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 11px;
    margin-left: 10px;
    cursor: pointer;
    transition: color 0.15s ease;
    outline: none;
    padding: 0;
    line-height: 1;
}

.history-tab-close:hover {
    color: #ef4444;
}

/* DNS Records styling */
.dns-record-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.02);
    overflow: hidden;
}

.dns-record-card-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 20px;
}

.dns-record-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    margin: 0;
}

.dns-badge-ttl {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 600;
}

.dns-records-table {
    margin-bottom: 0;
}

.dns-records-table th {
    background-color: #ffffff;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding: 12px 20px;
    border-bottom: 2px solid #f1f5f9;
}

.dns-records-table td {
    padding: 14px 20px;
    font-size: 14px;
    color: #334155;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.dns-records-table tr:last-child td {
    border-bottom: none;
}

/* WHOIS Raw Output preformatted block styling */
.whois-raw-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.whois-raw-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.whois-raw-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.whois-raw-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Features & FAQ styling for new tools */
.tool-features-section {
    padding: 60px 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary_color);
    margin-bottom: 10px;
    display: inline-block;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 15px;
}

.section-desc {
    font-size: 15px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--primary_color);
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary_color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* FAQ Accordion Styling */
.tool-faq-section {
    padding: 60px 0;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.faq-accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}

.faq-accordion-header {
    width: 100%;
    padding: 20px 25px;
    background: #ffffff;
    border: none;
    outline: none;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.faq-accordion-header:hover {
    background-color: #f9fafb;
}

.faq-accordion-icon {
    font-size: 14px;
    color: #9ca3af;
    transition: transform 0.3s ease;
}

.faq-accordion-item.active .faq-accordion-icon {
    transform: rotate(180deg);
    color: var(--primary_color);
}

.faq-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    background: #ffffff;
}

.faq-accordion-item.active .faq-accordion-body {
    max-height: 1000px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-accordion-content {
    padding: 0 25px 25px 25px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

/* Custom layout styling for SSL checker grade badge */
.grade-badge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.grade-badge-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.grade-badge-circle.grade-A {
    background: linear-gradient(135deg, #10b981, #059669);
}

.grade-badge-circle.grade-B {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.grade-badge-circle.grade-C {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.grade-badge-circle.grade-D {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.grade-badge-circle.grade-F {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* DNS propagation grid records status */
.dns-node-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 10px;
}

.dns-node-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dns-node-status-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
}

.dns-node-status-icon.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.dns-node-status-icon.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dns-node-name {
    font-weight: 700;
    color: #1f2937;
    font-size: 14px;
}

.dns-node-records {
    font-family: monospace;
    font-size: 13px;
    color: #374151;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

/* Ensure all tool search inputs, selects, and search buttons have a matching 52px vertical height */
.ip-search-box .ip-search-input,
.ip-search-box .ip-search-select,
.ip-search-box .btn-search-ip {
    height: 52px !important;
}

/* Make search input, select dropdown, and button wrap responsive on mobile devices */
@media (max-width: 576px) {
    .ip-search-box .input-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    .ip-search-box .ip-search-input {
        width: 100% !important;
        flex: none !important;
        border-radius: 8px !important;
        border: 1px solid #ced4da !important;
        margin: 0 !important;
    }
    .ip-search-box .ip-search-select {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        border-radius: 8px !important;
        border: 1px solid #ced4da !important;
        margin: 0 !important;
    }
    .ip-search-box .btn-search-ip {
        width: 100% !important;
        flex: none !important;
        border-radius: 8px !important;
        margin: 0 !important;
        justify-content: center !important;
    }
}
