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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

header {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5em;
    color: #4a5568;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    color: #718096;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 15px 25px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tab-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tab-button.active {
    background: #4299e1;
    color: white;
}

.tab-content {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.section h2 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 2em;
}

.instructions {
    background: #e6fffa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #38b2ac;
    font-size: 1.1em;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.setting-card {
    background: #f7fafc;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.setting-card:hover {
    border-color: #4299e1;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.setting-card h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4299e1;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.setting-status {
    font-weight: 600;
    color: #4a5568;
}

.impact-display {
    background: white;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e2e8f0;
}

.ad-banner {
    background: #fef5e7;
    border: 2px solid #ed8936;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.ad-banner.generic {
    background: #f7fafc;
    border-color: #a0aec0;
    color: #718096;
}

.profile-card {
    background: #e6fffa;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.visibility-indicator {
    margin-top: 10px;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
}

.login-simulation {
    text-align: center;
}

.login-step {
    background: #e6fffa;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 4px solid #38b2ac;
}

.extra-step {
    background: #fef5e7;
    border-left-color: #ed8936;
}

.results-table {
    margin-top: 30px;
}

.results-table h3 {
    color: #4a5568;
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background: #4299e1;
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f7fafc;
}

.cookie-demo {
    margin-bottom: 30px;
}

.website-simulation {
    background: #f7fafc;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.browser-bar {
    background: #2d3748;
    color: white;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.browser-controls {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #f56565; }
.dot.yellow { background: #ed8936; }
.dot.green { background: #48bb78; }

.address-bar {
    background: #4a5568;
    padding: 5px 10px;
    border-radius: 5px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.website-content {
    padding: 20px;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
}

.personalized-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.content-section, .shopping-cart {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-item, .cart-item {
    background: #f7fafc;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.action-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

.action-btn.warning {
    background: #e53e3e;
}

.action-btn.warning:hover {
    background: #c53030;
}

.cookie-status {
    text-align: center;
    padding: 15px;
    background: #e6fffa;
    border-radius: 10px;
    border-left: 4px solid #38b2ac;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cookie-status.cleared {
    background: #fed7d7;
    border-left-color: #e53e3e;
    color: #c53030;
}

.analysis-questions {
    margin-top: 30px;
}

.question-card {
    background: #f7fafc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #4299e1;
}

.question-card textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1em;
    margin-top: 10px;
    resize: vertical;
}

.question-card textarea:focus {
    outline: none;
    border-color: #4299e1;
}

.app-simulation {
    margin-bottom: 30px;
}

.app-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.app-tab {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.app-tab:hover {
    background: #e2e8f0;
}

.app-tab.active {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
}

.app-content {
    display: none;
}

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

.app-interface {
    background: #f7fafc;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-call-interface, .maps-interface, .recorder-interface {
    text-align: center;
}

.video-window, .map-window, .recorder-window {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.video-feed, .map-display, .recorder-display {
    background: #e6fffa;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 1.2em;
    color: #4a5568;
}

.video-feed i, .map-display i, .recorder-display i {
    font-size: 3em;
    color: #38b2ac;
}

.video-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.video-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
}

.video-btn:hover {
    background: #3182ce;
    transform: scale(1.1);
}

.video-btn.disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
}

.audio-visualizer {
    display: flex;
    align-items: end;
    gap: 3px;
    height: 40px;
}

.audio-bar {
    width: 8px;
    background: #4299e1;
    border-radius: 4px;
    transition: height 0.3s ease;
}

.audio-bar:nth-child(1) { height: 20px; }
.audio-bar:nth-child(2) { height: 35px; }
.audio-bar:nth-child(3) { height: 25px; }
.audio-bar:nth-child(4) { height: 40px; }
.audio-bar:nth-child(5) { height: 15px; }

.audio-visualizer.active .audio-bar {
    animation: audioWave 0.5s infinite alternate;
}

@keyframes audioWave {
    0% { height: 10px; }
    100% { height: 40px; }
}

.record-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.record-btn:hover {
    background: #c53030;
    transform: scale(1.05);
}

.record-btn.recording {
    background: #38b2ac;
}

.permission-controls {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.permission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.permission-item:last-child {
    border-bottom: none;
}

.permission-item select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1em;
    background: white;
    cursor: pointer;
}

.permission-item select:focus {
    outline: none;
    border-color: #4299e1;
}

.save-progress {
    text-align: center;
    margin-top: 30px;
}

.blocked {
    filter: grayscale(100%);
    opacity: 0.5;
}

.permission-prompt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-align: center;
}

.permission-prompt h3 {
    color: #4a5568;
    margin-bottom: 15px;
}

.permission-prompt p {
    color: #718096;
    margin-bottom: 20px;
}

.permission-prompt button {
    background: #4299e1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 10px;
    font-size: 1em;
}

.permission-prompt button:hover {
    background: #3182ce;
}

.permission-prompt button.deny {
    background: #e53e3e;
}

.permission-prompt button.deny:hover {
    background: #c53030;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .personalized-content {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        width: 100%;
        max-width: 300px;
    }
    
    .app-tabs {
        flex-direction: column;
    }
    
    .app-tab {
        width: 100%;
        text-align: center;
    }
}