* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #0f3460;
    --highlight: #e94560;
    --light: #f0f5f9;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #ef4444;
    --card-bg: rgba(255, 255, 255, 0.08);
}

body {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    min-height: 100vh;
    padding: 10px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(233, 69, 96, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(15, 52, 96, 0.2) 0%, transparent 20%);
    z-index: -1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    text-align: center;
    padding: 20px 0 15px;
    position: relative;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ff9a9e, #fad0c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.4;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header i {
    font-size: 1.3rem;
    margin-right: 10px;
    color: var(--highlight);
}

.card-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.card-content {
    margin-top: 10px;
}

.result {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
    padding: 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.canvas-box {
    width: 100%;
    height: 100px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    overflow: hidden;
}

canvas {
    max-width: 100%;
    max-height: 100%;
}

.privacy-score {
    font-size: 2.5rem;
    text-align: center;
    font-weight: 800;
    margin: 15px 0;
    background: linear-gradient(90deg, var(--success), var(--warning), var(--danger));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.progress-container {
    background: rgba(0, 0, 0, 0.2);
    height: 15px;
    border-radius: 7px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-bar {
    height: 100%;
    border-radius: 7px;
    transition: width 0.5s ease;
}

.mitigation-tips {
    background: rgba(233, 69, 96, 0.1);
    border-left: 3px solid var(--highlight);
    padding: 10px;
    border-radius: 0 6px 6px 0;
    margin-top: 10px;
}

.mitigation-tips h3 {
    margin-bottom: 8px;
    color: var(--highlight);
    font-size: 1.1rem;
}

.mitigation-tips ul {
    padding-left: 15px;
}

.mitigation-tips li {
    margin-bottom: 5px;
    line-height: 1.4;
    font-size: 0.9rem;
}

.btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.btn:hover {
    background: var(--highlight);
}

.info-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: all 0.3s ease;
}

.info-btn:hover {
    transform: rotate(15deg) scale(1.1);
    background: var(--highlight);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--secondary);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 25px;
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.4s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    max-height: 80vh;
    overflow-y: auto;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light);
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--highlight);
}

.modal h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--highlight);
}

.modal p {
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.profile {
    display: flex;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent), var(--highlight));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 15px;
}

.profile-info h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.profile-info a {
    color: var(--highlight);
    text-decoration: none;
    display: block;
    margin: 4px 0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.profile-info a:hover {
    text-decoration: underline;
    transform: translateX(3px);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.badge {
    background: rgba(233, 69, 96, 0.2);
    color: var(--highlight);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

footer {
    text-align: center;
    padding: 20px 0;
    opacity: 0.7;
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .dashboard {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 20px 15px;
    }
}
