
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
}

body {
    font-family: 'Arial', sans-serif;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 0;
    text-align: center;
}

.feature-card {
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: scale(1.05);
}

.copyIpButton {
    margin-left: 10px;
    font-size: 14px;
}


.hero-section {
    background-color: #0066cc;
    color: white;
    padding: 3rem 0;
}

.info-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    color: white;
    margin-bottom: 1rem;
}

.score-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.btn-custom {
    border-radius: 20px;
}


.footer {
    background: linear-gradient(to right, #004aad, #007bff);
    color: white;
    font-size: 14px;
}

.footer .social-icons a {
    font-size: 18px;
    transition: color 0.3s ease;
}

.footer .social-icons a:hover {
    color: #f0f0f0;
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.navbar-nav .dropdown-menu {
    min-width: auto; /* Make dropdown smaller */
}

.navbar-nav .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/*Card*/

.card-header {
    background-color: #f8f9fa;
    font-weight: bold;
    font-size: 1.25rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
}

.card-header i {
    margin-right: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.detail-label {
    font-weight: bold;
    /*flex: 0 0 120px;*/
    width: 30%; /* Adjust as needed */
    white-space: nowrap; /* Prevent text from wrapping */
    text-align: left;
    flex-shrink: 0; /* Prevent the label from shrinking */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for truncated text */
}

.detail-content {
    /*flex: 1;*/
    width: 70%; /* Adjust as needed */
    text-align: left;
    color: #6c757d;

    /*white-space: nowrap; !* Prevent text from wrapping *!
    overflow: hidden; !* Hide overflow *!
    text-overflow: ellipsis; !* Add ellipsis for truncated text *!
    cursor: pointer; !* Show pointer on hover *!*/
}

.detail-content:hover {
    white-space: normal; /* Show full text on hover */
    overflow: visible; /* Allow overflow */
    background-color: #f9f9f9; /* Optional: Add background color on hover */
}

.detail-label:hover {
    white-space: normal; /* Show full text on hover */
    overflow: visible; /* Allow overflow */
    background-color: #f9f9f9; /* Optional: Add background color on hover */
}

.status-dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    margin-right: 10px;
    padding-right: 10px;
}

.status-enabled {
    background-color: #28a745;
}

.status-disabled {
    background-color: #dc3545;
}

.status-circle {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

.status-dot.green {
    background-color: #28a745;
}

.status-dot.red {
    background-color: #dc3545;
}


.myflag {
    margin-left: 5px;
}

/* Header Alignment */
.card-header {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center; /* Center icon and text vertically */
    gap: 0.5rem; /* Spacing between icon and text */
}

/* Icon color customization */
.icon-orange {
    color: #f59e42; /* Orange */
}

.icon-purple {
    color: #8a42f5; /* Purple */
}

.icon-green {
    color: #41b14f; /* Green */
}

.icon-blue {
    color: #4285f4; /* Blue */
}

.icon-red {
    color: #f54242; /* Red */
}

.icon-cyan {
    color: #20bebe; /* Cyan */
}

/* Optional: Adjust icon size */
.icon-size {
    font-size: 1.5rem; /* Adjust size if needed */
    transition: transform 1s ease-in-out; /* Smooth rotation transition */
}

/* Rotate on hover */
.icon-size:hover {
    transform: rotate(360deg); /* Full rotation */
}

/* Container for progress bar */
.progress-container {
    position: relative;
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

/* Progress bar itself */
.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, red, orange, yellow, green, lightgreen);
    transition: width 0.1s linear; /* Smooth progress animation */
}

/* Circular score display */
.score-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    border: 10px solid #e0e0e0;
    background: #ffffff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #333;
    font-weight: bold;
    background: conic-gradient(
            lightblue 0deg,
            lightblue 0deg,
            #e0e0e0 0deg,
            #e0e0e0 360deg
    );
}

#score-text {
    position: absolute;
    font-size: 1.5rem;
    color: #333;
    font-weight: bold;
}

/* Score result descriptions */
.score-good {
    color: green;
}

.score-medium {
    color: orange;
}

.score-bad {
    color: red;
}


.center-button {
    display: flex;
    justify-content: center;
}

.rotate {
    display: inline-block; /* Ensure transform applies correctly */
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Ensure text wraps and tabs are responsive */
.nav-tabs .nav-link {
    white-space: normal; /* Allow text to wrap */
    text-align: left; /* Align text to the left */
    padding: 0.5rem 1rem; /* Add padding for better spacing */
}

/* Adjust tab layout for smaller screens */
@media (max-width: 767.98px) {
    .nav-tabs {
        flex-direction: column; /* Stack tabs vertically on mobile */
    }

    .nav-tabs .nav-item {
        width: 100%; /* Make each tab take full width */
        margin-bottom: 0.5rem; /* Add spacing between stacked tabs */
    }

    .nav-tabs .nav-link {
        width: 100%; /* Make the button take full width */
        text-align: center; /* Center text for better appearance */
    }
}

/*Ads banner*/

.ad-banner {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ad-banner .btn-primary {
    background-color: #ff6f61;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.ad-banner .btn-primary:hover {
    background-color: #ff4a3d;
}

.ad-banner h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

.ad-banner p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Custom CSS for SDP log */

/* Custom CSS for server cards */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Custom CSS for SDP log */
.sdp-log {
    font-family: monospace;
    font-size: 14px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    overflow: auto;
}


/* Truncate text with ellipsis */
.truncate {
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for truncated text */
    max-width: 150px; /* Set a max width for the cell */
}

/* Tooltip on hover */
.truncate:hover {
    white-space: normal; /* Show full text on hover */
    overflow: visible; /* Allow overflow */
    background-color: #f9f9f9; /* Optional: Add background color on hover */
    position: relative; /* Ensure the tooltip is positioned correctly */
    z-index: 1; /* Ensure the tooltip is above other elements */
}
