/* Importimi i Fontit */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.4s ease, color 0.4s ease;
    min-height: 100vh;
}

/* Stilizimi i Kartave */
.card {
    border-radius: 20px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Inputi dhe Butoni */
#analyzeBtn {
    border-radius: 0 15px 15px 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

input#repoUrl {
    border-radius: 15px 0 0 15px;
    border: 2px solid #eee;
    padding-left: 20px;
    transition: border-color 0.3s ease;
}

input#repoUrl:focus {
    border-color: #0d6efd;
    box-shadow: none;
}

/* Badges e Teknologjive */
.badge {
    padding: 8px 15px;
    font-weight: 500;
    border-radius: 10px;
}

/* Animacionet */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.pulse {
    animation: pulse 1.5s infinite ease-in-out;
}

/* Dark Mode - Stile Specifike */
body.bg-dark {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

body.bg-dark .card {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}

body.bg-dark .text-dark {
    color: #ffffff !important;
}

body.bg-dark .text-muted {
    color: #aaaaaa !important;
}

body.bg-dark .list-group-item {
    border-color: #333;
    color: #ffffff;
}

@media print {
    /* Fshih butonat dhe inputet që mos të dalin në PDF */
    .no-print, #inputCard, .form-switch, header, #analyzeBtn {
        display: none !important;
    }

    /* Forco background-in të jetë i bardhë për print */
    body {
        background-color: white !important;
        color: black !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #eee !important;
        page-break-inside: avoid; /* Kjo e ndalon ndarjen në dy faqe */
    }

    #resultsSection {
        display: block !important;
    }

    canvas {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Përshtatja për Mobile */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    input#repoUrl, #analyzeBtn {
        border-radius: 15px !important;
        width: 100%;
        margin-bottom: 10px;
    }
}
@media print {
    #resultsSection {
        padding: 20px !important;
        width: 100% !important;
    }
    
    #scoreChart {
        max-width: 90% !important;
        margin: 0 auto !important;
    }

    /* Sigurohemi që të gjitha tekstet të jenë të zeza për print */
    .text-muted, .small {
        color: #333 !important;
    }
}
/* Për Dark Mode */
body.bg-dark .bg-white {
    background-color: #2b3035 !important;
    color: white !important;
}

body.bg-dark .accordion-button {
    background-color: #2b3035 !important;
    color: white !important;
}

body.bg-dark .accordion-item {
    background-color: #2b3035 !important;
}

body.bg-dark .text-dark {
    color: #f8f9fa !important;
}

body.bg-dark footer {
    background-color: #1a1d20 !important;
    border-top-color: #373b3e !important;
}
.hover-link:hover {
    color: #0d6efd !important; /* Ngjyra primare e Bootstrap */
    transition: 0.3s;
}