/**
 * Login.php - Login Page Additional Styles
 *
 * Stili aggiuntivi per la pagina di login che integrano
 * i CSS esistenti (css/login.css e resources/css/pages/login.css)
 */

.idle-time-summary-box {
    margin: 15px 0;
}

.idle-time-label {
    font-weight: bold;
}

.mensa-link-wrapper,
.check-connection-button {
    width: 25px;
    float: right;
    margin-left: 5px;
    margin-bottom: 5px;
    cursor: pointer;
}

.check-connection-button {
    display: none;
}

#extraInfo .panel {
    margin-bottom: 0 !important;
}
#extraInfo .panel-body {
    overflow: scroll;
}

.modal-content .check-status {
    width: 40px;
    display: inline-block;
    text-align: center;
    color: #0af;
    font-weight: bold;
}

.modal-content button {
    float: right;
    border: none;
    background: #fafaff;
    color: #333;
    position: absolute;
    bottom: 10px;
    right: 10px;
    box-shadow: 1px 1px 3px 1px #333;
}

.modal-console {
    width: 100%;
    height: 50%;
    overflow-y: scroll;
    background-color: white;
    margin-top: 20px;
    border-radius: 3px;
    color: #333;
    font-size: 14px;
    padding: 5px 10px;
}

.ui-dialog-titlebar {
    display: none;
}

.ui-dialog {
    z-index: 99999999 !important;
    position: fixed !important;
}

.check-connection-dialog,
.send-test-dialog {
    display: none;
}

.loading-dots::after {
    animation: loading-animation 2s infinite;
    content: "";
}

.check-status.green {
    color: #0f0;
}

.check-status.red {
    color: #f00;
}

.send-test-errors {
    color: red;
    margin-bottom: 5px;
}

.send-test-success {
    color: green;
    margin-bottom: 15px;
}

.send-test-form input {
    float: right;
    border-radius: 5px;
    border: 1px solid #999;
    padding: 3px;
}

@keyframes loading-animation {
    0% {
        content: ".";
    }
    50% {
        content: "..";
    }
    100% {
        content: "...";
    }
}

/* Performance tiles */
.performance-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
}

.rank-tile {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
    text-align: center;
}

.rank-tile label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.rank-tile .iff-rank,
.rank-tile .ad-iff-rank,
.rank-tile .iff-num-projects,
.rank-tile .ad-num-projects {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

#downloadPerformance a {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

#downloadPerformance a:hover {
    background: #5568d3;
}

/* Caller performance modal */
.caller-performance-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.caller-performance-modal.hidden {
    display: none;
}

.caller-performance-modal iframe {
    width: 90%;
    height: 90%;
    border: none;
    background: white;
    border-radius: 5px;
}
