body {
    background-color: #2c3a47;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
}

.container {
    background-color: #34495e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    margin-top: 50px;
}

h1 {
    color: #cdcecf;
    font-weight: bold;
    text-transform: uppercase;
}

.form-group label {
    color: #cce0ec;
}

.form-control {
    background-color: #2c3e50;
    color: #ffffff;
    border-color: #34495e;
}

.form-control:focus {
    background-color: #2c3e50;
    color: #ffffff;
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
    color: #ffffff;
    transition: background-color 0.3s, border-color 0.3s;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-secondary {
    background-color: #7f8c8d;
    border-color: #7f8c8d;
    color: #ffffff;
    transition: background-color 0.3s, border-color 0.3s;
}

.btn-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

.loading {  
    display: none;  
    position: fixed;  
    top: 0;  
    left: 0;  
    width: 100%;  
    height: 100%;  
    background: rgba(0, 0, 0, 0.7);  
    z-index: 1000;  
    justify-content: center;  
    align-items: center;  
}  

#lottie {  
    width: 100px;
    height: 100px; 
} 

/* UX Improvements */
.btn:active {
    transform: scale(0.95);
}

.table {
    color: #ffffff;
    width: 100%;
    border-collapse: collapse;
}

.table thead th {
    background-color: #2980b9;
    border-color: #2980b9;
}

.table tbody tr:hover {
    background-color: #34495e;
}

.table td {
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden;
    text-overflow: ellipsis; /* Show ellipsis when text overflows */
    position: relative; /* Important for positioning the icon and tooltip */
    padding-right: 40px; /* Add space for icons */
}

.table td:nth-child(2) { /* Only apply ellipsis to the "Value" column */
    max-width: 200px; /* Set the maximum width for value column */
}

td, th {
    border: 1px solid #ddd;
    padding: 8px;
}

a { color: inherit; } 

a:hover {
    color:#6fd9f3; 
    text-decoration:none; 
    cursor:pointer;  
}

/* Copy icon styling */
.copy-icon {
    cursor: pointer;
    position: absolute;
    right: 10px; /* Position icon inside the td */
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    transition: color 0.3s ease-in-out;
}

.copy-icon:hover {
    color: #dbdbdb;
}

.copy-success {
    color: rgb(45, 156, 114);
}

/* Tooltip styling */
.tooltip {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    top: -35px; /* Adjust to position the tooltip above the icon */
    right: 10px; /* Align tooltip with the icon */
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
    z-index: 1; /* Ensure the tooltip is on top */
}

/* Tooltip visible state */
.tooltip-visible {
    visibility: visible;
    opacity: 1;
}

/* Icon animation */
.icon-transition {
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}

.icon-check {
    transform: scale(1.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .table td, .table th {
        font-size: 14px;
    }

    /* Adjust icon and tooltip positions for smaller screens */
    .copy-icon {
        right: 5px;
        font-size: 1.2em;
    }

    .tooltip {
        top: -40px;
        font-size: 0.9em;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .table td, .table th {
        font-size: 12px;
    }

    .copy-icon {
        right: 3px;
        font-size: 1.5em;
    }

    .tooltip {
        top: -50px;
        right: 0px;
        font-size: 1em;
        padding: 10px;
    }
}
