:root {
    --primary-color: #4a6bfd;
    --primary-dark: #3a56d4;
    --secondary-color: #35d0ba;
    --text-color: #333;
    --light-gray: #f5f7fa;
    --medium-gray: #e1e5ee;
    --dark-gray: #9aa5b9;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    padding: 2rem 0;
}

.analyzer-section {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    text-align: center;
}

.analyzer-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.input-group {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
}

input[type="url"] {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid var(--medium-gray);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="url"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#analyze-btn {
    border-radius: 0 4px 4px 0;
}

button:hover {
    background-color: var(--primary-dark);
}

.hidden {
    display: none;
}

#loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.note {
    margin-top: 1.5rem;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

#results-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.score-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.score-card {
    text-align: center;
    min-width: 200px;
}

.score-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.score-circle::after {
    content: '';
    width: 130px;
    height: 130px;
    background: white;
    border-radius: 50%;
    position: absolute;
}

.score-circle span {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    z-index: 1;
}

.score-summary {
    flex: 1;
    min-width: 300px;
    height: 200px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--medium-gray);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background: none;
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    border-radius: 0;
}

.tab-btn:hover {
    background-color: var(--light-gray);
}

.tab-btn.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.tab-content {
    display: none;
}

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

.issues-list, .recommendations-list, .passed-list {
    list-style: none;
    margin-bottom: 2rem;
}

.issues-list li, .recommendations-list li, .passed-list li {
    padding: 1rem;
    border-left: 4px solid;
    background-color: var(--light-gray);
    margin-bottom: 0.8rem;
    border-radius: 0 4px 4px 0;
}

#critical-issues-list li {
    border-left-color: var(--danger-color);
}

#moderate-issues-list li {
    border-left-color: var(--warning-color);
}

#recommendations-list li {
    border-left-color: var(--primary-color);
}

#passed-checks-list li {
    border-left-color: var(--success-color);
}

.issue-title, .recommendation-title, .passed-title {
    font-weight: bold;
    display: block;
    margin-bottom: 0.4rem;
}

footer {
    text-align: center;
    padding: 2rem 0;
    background-color: white;
    margin-top: 2rem;
    color: var(--dark-gray);
}

@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    input[type="url"] {
        border-radius: 4px;
        margin-bottom: 1rem;
    }
    
    #analyze-btn {
        border-radius: 4px;
    }
    
    .score-overview {
        flex-direction: column;
    }
    
    .score-summary {
        width: 100%;
    }
}