@tailwind base;
@tailwind components;
@tailwind utilities;

.guardian-gaze-admin {
    margin: 20px;
}

.guardian-gaze-container {
    max-width: 1200px;
    margin: 0 auto;
}

.guardian-gaze-scan-options {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin-bottom: 20px;
}

.guardian-gaze-select {
    min-width: 200px;
    margin-right: 10px;
}

.guardian-gaze-progress {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin-bottom: 20px;
}

.guardian-gaze-progress-bar {
    height: 20px;
    background-color: #f1f1f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.guardian-gaze-progress-fill {
    height: 100%;
    background-color: #2271b1;
    width: 100%;
    animation: progress-animation 2s infinite linear;
}

.guardian-gaze-progress-text {
    text-align: center;
    color: #50575e;
}

.guardian-gaze-results {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

.guardian-gaze-results table {
    width: 100%;
    border-collapse: collapse;
}

.guardian-gaze-results th {
    text-align: left;
    padding: 10px;
}

.guardian-gaze-results td {
    padding: 10px;
    word-break: break-word;
}

.guardian-gaze-error {
    margin: 20px 0;
}

/* Severity colors */
.severity-high {
    color: #dc3232;
    font-weight: bold;
}

.severity-medium {
    color: #ffb900;
    font-weight: bold;
}

.severity-low {
    color: #46b450;
}

.guardian-gaze-columns {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.guardian-gaze-column1 {
    flex: 1;
    min-width: 70%;
}
.guardian-gaze-column2 {
    flex: 1;
    min-width: 30%;
}
.guardian-gaze-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}
.guardian-gaze-card h2 {
    margin-top: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.guardian-gaze-controls {
    margin: 20px 0;
}
.guardian-gaze-controls select {
    margin-right: 10px;
}
.guardian-gaze-progress-container {
    margin: 20px 0;
    display: none;
}
.progress-bar {
    height: 20px;
    background-color: #f0f0f1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}
.progress-fill {
    height: 100%;
    background-color: #2271b1;
    width: 0;
    transition: width 0.2s ease-in-out;
}
.progress-text {
    text-align: center;
    font-weight: 500;
    color: #1d2327;
}
.guardian-gaze-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}
.stat-box {
    flex: 1;
    min-width: 180px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}
.stat-box.full-width {
    flex: 100%;
}
.stat-box h3 {
    margin: 0 0 10px 0;
    color: #1d2327;
    font-size: 14px;
}
.stat-box span {
    font-size: 1.2em;
    word-break: break-all;
}
.api-key-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}
.api-key-display code {
    flex: 1;
    padding: 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.copy-api-key {
    white-space: nowrap;
}
.severity-high {
    color: #dc2626;
    font-weight: bold;
}
.severity-medium {
    color: #d97706;
    font-weight: bold;
}
.severity-low {
    color: #0369a1;
    font-weight: bold;
}
@media screen and (max-width: 782px) {
    .guardian-gaze-columns {
        flex-direction: column;
    }
    .guardian-gaze-column {
        width: 100%;
    }
}

@keyframes progress-animation {
    0% {
        margin-left: -100%;
    }
    100% {
        margin-left: 100%;
    }
}
.sec h2 {
    color: #000;
    font-weight: 700;
    font-size: 1rem;
}

.sec h2+p {
    color: #6060A6;
}
/* A - Good (Green) */
.cr-green {
  color: #07D258;              /* text color */

  font-weight: 600;
}

/* B - Low Risk (Blue) */
.cr-blue {
  color: #3A86FE;

  font-weight: 600;
}

/* C - Moderate (Yellow) */
.cr-orange {
  color: #FF730E;

  font-weight: 600;
}

/* D - High (Orange/Warning) */
.cr-yellow {
  color: #FFBE0C;

  font-weight: 600;
}

/* F - Severe (Red) */
.cr-red {
  color: #EF3737;
  
  font-weight: 600;
}


.bg-green-500 {
    --tw-bg-opacity: 1;
    background-color: #07D258 !important;
}


.bg-blue-500 {
    --tw-bg-opacity: 1;
    background-color: #3A86FE !important;
}


.bg-yellow-500 {
    --tw-bg-opacity: 1;
    background-color: #FFBE0C !important;
}


.bg-red-500 {
    --tw-bg-opacity: 1;
    background-color: #EF3737 !important;
}

/* Hidden elements for scan progress */
#hideds {
    display: none;
}



.guardian-gaze-actions {
        margin-top: 20px;
    }

    .guardian-gaze-message {
        margin-top: 15px;
        padding: 10px;
        border-radius: 4px;
    }

    .guardian-gaze-message.success {
        background-color: #e8f5e9;
        border: 1px solid #a5d6a7;
        color: #2e7d32;
    }

    .guardian-gaze-message.error {
        background-color: #ffebee;
        border: 1px solid #ef9a9a;
        color: #c62828;
    }

    .infected-count {
        color: #c62828;
        font-weight: bold;
    }

    .clean-count {
        color: #2e7d32;
    }

    .schedule-info {
        background-color: #f9f9f9;
        padding: 15px;
        border-radius: 4px;
    }

    .enabled {
        color: #2e7d32;
        font-weight: bold;
    }

    .disabled {
        color: #c62828;
        font-weight: bold;
    }

    .w-full.flex.scset h2 {
        font-size: 1.5rem;
        line-height: 1.5rem;
        font-weight: 700;
        padding-bottom: 20px;
    }


    #map {
        height: 600px;
    }

    .marker-circle {
        border: 3px solid white;
        cursor: pointer;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }

    .w-11\/5 {
        width: 11.5%;
    }

    .w-89\/5 {
        width: 89.5%;
    }

    .rating .nmber {
        background-image: url('<?php echo esc_url(plugin_dir_url(__DIR__) . 'images/star-bg.png'); ?>');
        padding: 10px 15px;
        font-size: 23px;
        color: #fff;
        background-size: cover;
        padding-top: 12px;
        font-weight: 700;

    }

    svg.green-color circle {
        stroke: #46b450;
    }

    svg.green-color path {
        fill: #46b450;
    }


    svg.blue-color circle {
        stroke: #3b82f6;
    }

    svg.blue-color path {
        fill: #3b82f6;
    }


    svg.orange-color circle {
        stroke: #eab308;
    }

    svg.orange-color path {
        fill: #eab308;
    }


    svg.yellow-color circle {
        stroke: #f97316;
    }

    svg.yellow-color path {
        fill: #f97316;
    }


    svg.red-color circle {
        stroke: #ff0000;
    }

    svg.red-color path {
        fill: #ff0000;
    }


    .plcs {
        left: -300% !important;
    }

    @media (min-width:1279px) and (max-width:1800px) {
        .c-width {
            width: 23.3%;
        }

    }

    @media screen and (max-width: 1900px) {
        .bsdkl {
            width: 13.5%;
        }
    }

    @media screen and (max-width: 1684px) {
        .bsdkl {
            width: 16.5%;
        }

        .bskg .flex .text-lg.font-bold {
            font-size: 12px;
        }

        .bskg .flex span.text-gray-400 {
            font-size: 11px;
        }
    }

    @media screen and (max-width: 1450px) {
        .bsdkl {
            width: 20.5%;
        }

        .blokc .md\:col-span-3.col-span-12.p-4 {
            padding-left: 0;
            padding-right: 0;
        }

        .bskg .text-lg.font-bold.text-gray-700 {
            font-size: 16px;
        }

        .bskg .flex .text-lg.font-bold {
            font-size: 12px;
        }

        .bskg .flex span.text-gray-400 {
            font-size: 11px;
        }
    }

    @media screen and (max-width: 1267px) {
        .c-width {
            width: 48%;
        }
    }

    @media screen and (max-width: 1200px) {
        .blokc {
            display: block;
        }
    }

    @media screen and (max-width: 991px) {
        .bsdkl {
            width: 23.5%;
        }
    }

    @media screen and (max-width: 782px) {
        .w-11\/5 {
            width: 32.5%;
        }
    }

    @media screen and (max-width: 401px) {
        .bsdkl {
            width: 36.5%;
        }
    }

    .animate-spin {
        animation: spin 1s linear infinite;
        transform-origin: center;
        /* Ensure rotation from center */
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg) scale(1);
        }

        100% {
            transform: rotate(360deg) scale(1);
        }
    }



    .guardian-gaze-firewall-stats {
    margin-bottom: 30px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.stat-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}
.stat-box h3 {
    margin-top: 0;
    font-size: 14px;
    color: #555;
}
.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #1d2327;
}
.user-agent-cell {
    position: relative;
}
.user-agent-truncated {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-agent-tooltip {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 100;
    max-width: 400px;
    word-break: break-all;
}
.user-agent-cell:hover .user-agent-tooltip {
    display: block;
}
.guardian-gaze-actions {
    margin-top: 20px;
    text-align: right;
}
.guardian-gaze-feature-list li {
    margin-bottom: 10px;
}
.guardian-gaze-info-box {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    padding: 15px;
    margin-top: 20px;
}


/* Tab Navigation */
    .guardian-gaze-tabs {
        max-width: 1400px;
    }

    .nav-tab-wrapper {
        border-bottom: none;
        margin-bottom: 20px;
    }

    .grid.grid-cols-3.font-semibold.border-b.pb-2.text-gray-500.ddd {
        background: #EAEEF8 !important;
        padding: 10px 8px;
        border-radius: 10px;
    }

    .nav-tab {
        background: transparent;
        border: 1px solid #ccd0d4;
        border-bottom: none;
        color: #555;
        text-decoration: none;
        padding: 10px 15px;
        margin-right: 5px;
        display: inline-block;
        border-radius: 4px 4px 0 0;
        transition: all 0.3s ease;
        border: none !important;
    }



    .nav-tab-active,
    .nav-tab:hover {
        background: #F5F5F5;

        border-bottom: 3px solid #3A86FE !important;
        color: #3A86FE;
        font-weight: 600;
        margin-bottom: -1px;
    }

    /* Tab Content */
    .tab-content {
        background: #fff;
        border: 1px solid #ccd0d4;
        border-radius: 0 4px 4px 4px;
        padding: 20px;
    }

    .tab-pane {
        display: none;
    }

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

    /* Cards */
    .guardian-gaze-card {
        background: #fff;
        border: 1px solid #e1e1e1;
        border-radius: 6px;
        padding: 25px;
        margin-bottom: 20px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .guardian-gaze-card h2 {
        margin-top: 0;
        margin-bottom: 15px;
        color: #333;
        font-size: 20px;
        border: none;
        padding-bottom: 10px;
    }

    .guardian-gaze-card h3 {
        color: #555;
        margin-top: 25px;
        margin-bottom: 15px;
    }
    .control-section h3 {
        margin-top: 0;
        color: #333;
    }

    /* Toggle Switches */
    .toggle-switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 24px;
        margin-right: 10px;
    }

    .toggle-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: .4s;
        border-radius: 24px;
    }

    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

    input:checked+.slider {
        background-color: #2196F3;
    }

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

    /* IP Input Groups */
    .ip-input-group {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
        align-items: center;
    }

    .ip-input-group input[type="text"] {
        flex: 1;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    /* Tables */
    .widefat th {
        background: #f8f9fa;
        font-weight: 600;
    }

    .widefat td code {
        background: #f1f3f4;
        padding: 2px 6px;
        border-radius: 3px;
        font-family: 'Courier New', monospace;
        font-size: 13px;
    }

    /* IP Type Badges */
    .ip-type {
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: bold;
        text-transform: uppercase;
    }

    .ip-type.ipv4 {
        background: #e3f2fd;
        color: #1976d2;
    }

    .ip-type.ipv6 {
        background: #f3e5f5;
        color: #7b1fa2;
    }

    .ip-type.cidr {
        background: #fff3e0;
        color: #f57c00;
    }

    /* Status Badges */
    .status-badge {
        padding: 3px 8px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: bold;
        text-transform: uppercase;
    }

    .status-badge.active {
        background: #ffebee;
        color: #c62828;
    }

    .status-badge.expired {
        background: #f3e5f5;
        color: #7b1fa2;
    }

    .status-badge.blocked {
        background: #ffebee;
        color: #c62828;
    }

    .status-badge.monitoring {
        background: #e8f5e8;
        color: #2e7d32;
    }

    /* Attack Type Badges */
    .attack-type {
        padding: 2px 6px;
        border-radius: 3px;
        font-size: 11px;
        font-weight: bold;
        text-transform: uppercase;
    }

    .attack-sql_injection {
        background: #ffebee;
        color: #c62828;
    }

    .attack-xss {
        background: #fff8e1;
        color: #f57c00;
    }

    .attack-directory_traversal {
        background: #e3f2fd;
        color: #1976d2;
    }

    .attack-malicious_user_agent {
        background: #f3e5f5;
        color: #7b1fa2;
    }

    .attack-rate_limit {
        background: #e8f5e8;
        color: #388e3c;
    }

    .attack-suspicious_file_access {
        background: #fce4ec;
        color: #ad1457;
    }

    /* Attempt Count */
    .attempt-count {
        padding: 2px 6px;
        border-radius: 3px;
        font-weight: bold;
        font-size: 12px;
    }

    .attempt-count.low {
        background: #e8f5e8;
        color: #2e7d32;
    }

    .attempt-count.medium {
        background: #fff3e0;
        color: #f57c00;
    }

    .attempt-count.high {
        background: #ffebee;
        color: #c62828;
    }

    /* Statistics */
    .blocked-stats,
    .attack-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        margin-bottom: 25px;
    }

    .stat-box {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 20px;
        border-radius: 8px;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .stat-number {
        font-size: 28px;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .stat-label {
        font-size: 12px;
        opacity: 0.9;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Country Controls */
    .country-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin: 20px 0;
    }

    .country-section h3 {
        margin-top: 0;
    }

    .country-select {
        width: 100%;
        height: 150px;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 5px;
    }

    .help-text {
        font-size: 12px;
        color: #666;
        font-style: italic;
    }

    .country-summary {
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 4px;
        padding: 15px;
        margin: 20px 0;
    }

    .country-summary ul {
        margin: 10px 0;
        padding-left: 20px;
    }

    /* Settings */
    .settings-section {
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .settings-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .setting-row {
        margin-bottom: 15px;
    }

    .setting-row label {
        display: block;
        margin-bottom: 5px;
        font-weight: 600;
    }

    .info-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .info-item {
        background: #f8f9fa;
        padding: 10px;
        border-radius: 4px;
        border-left: 3px solid #007cba;
    }

    .priority-flow {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .flow-step {
        display: flex;
        align-items: center;
        background: #f8f9fa;
        padding: 15px;
        border-radius: 6px;
        border-left: 4px solid #007cba;
    }

    .step-number {
        background: #007cba;
        color: white;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        margin-right: 15px;
        flex-shrink: 0;
    }

    .step-content h4 {
        margin: 0 0 5px 0;
    }

    .step-content p {
        margin: 0;
        color: #666;
        font-size: 14px;
    }

    .format-examples {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .format-item {
        background: #f8f9fa;
        padding: 10px;
        border-radius: 4px;
        text-align: center;
    }

    .format-item code {
        display: block;
        background: #e9ecef;
        padding: 8px;
        border-radius: 3px;
        margin-bottom: 5px;
        font-weight: bold;
    }

    .format-item span {
        font-size: 12px;
        color: #666;
    }

    /* Empty States */
    .empty-state {
        text-align: center;
        padding: 40px 20px;
        color: #666;
    }

    .empty-state p:first-child {
        font-size: 18px;
        margin-bottom: 10px;
    }

    /* Row States */
    .blocked-ip {
        background-color: #fff5f5;
    }

    .expired {
        opacity: 0.6;
    }

    .expired-text {
        color: #999;
        font-style: italic;
    }

    .permanent {
        color: #d32f2f;
        font-weight: bold;
    }


    @media (max-width: 768px) {
        .country-controls {
            grid-template-columns: 1fr;
        }

        .blocked-stats,
        .attack-stats {
            grid-template-columns: 1fr;
        }

        .info-grid {
            grid-template-columns: 1fr;
        }

        .format-examples {
            grid-template-columns: 1fr;
        }
    }

    .tbl {
        max-height: 700px;
        overflow-y: scroll;
        padding: 0px 10px;
    }



    .guardian-gaze-login-stats {
        margin-bottom: 30px;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 20px;
    }

    .stat-box {
        background: #f9f9f9;
        border: 1px solid #ddd;
        padding: 15px;
        border-radius: 4px;
        text-align: center;
    }

    .stat-box h3 {
        margin-top: 0;
        font-size: 14px;
        color: #555;
    }

    .stat-value {
        font-size: 24px;
        font-weight: bold;
        color: #1d2327;
    }

    .security-status {
        background: #f0f6fc;
        border-left: 4px solid #2271b1;
        padding: 15px;
        margin: 20px 0;
    }

    .security-status ul {
        margin: 10px 0;
    }

    .security-status li {
        margin-bottom: 8px;
    }

    .status-enabled {
        color: #46b450;
        font-weight: bold;
    }

    .status-disabled {
        color: #d63638;
        font-weight: bold;
    }

    .log-type {
        padding: 3px 8px;
        border-radius: 3px;
        font-size: 12px;
        font-weight: bold;
    }

    .log-type.failed {
        background: #fff2cd;
        color: #856404;
    }

    .log-type.blocked {
        background: #f8d7da;
        color: #721c24;
    }

    .log-type.other {
        background: #d1ecf1;
        color: #0c5460;
    }

    .guardian-gaze-actions {
        margin-top: 20px;
        text-align: right;
    }

    .guardian-gaze-feature-list li {
        margin-bottom: 10px;
    }

    .guardian-gaze-info-box {
        background: #f0f6fc;
        border-left: 4px solid #2271b1;
        padding: 15px;
        margin-top: 20px;
    }

    .guardian-gaze-warning-box {
        background: #fff2cd;
        border-left: 4px solid #f0ad4e;
        padding: 15px;
        margin-top: 20px;
    }

     .abform th {
        font-size: 13px;
        font-weight: 700;
    }

    form.abform .submit .button {
        --tw-bg-opacity: 1;
        background-color: rgb(96 165 250 / var(--tw-bg-opacity, 1));
        border-radius: 0.25rem;
    }


    body.fw { font-family: Arial, sans-serif; background: #f1f1f1; margin: 0; padding: 50px; }
                .fw-container { max-width: 600px; margin: 0 auto; background: white; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
                .fw h1 { color: #d63638; margin-bottom: 20px; }
                .fw p { line-height: 1.6; color: #333; }
                .fw .reason { background: #fff2f2; padding: 15px; border-left: 4px solid #d63638; margin: 20px 0; }
                .fw .footer { margin-top: 30px; font-size: 12px; color: #666; text-align: center; }