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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.demo-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Browser Window */
.browser-window {
    width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    pointer-events: none;
    user-select: none;
}

.browser-header {
    background: #292929;
    padding: 12px 20px 0;
    display: flex;
    align-items: center;
    border-bottom: none;
    position: relative;
    z-index: 10;
}

.traffic-lights {
    display: flex;
    gap: 8px;
    margin-right: 20px;
}

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

.traffic-light.red {
    background: #ff5f57;
}

.traffic-light.yellow {
    background: #ffbd2e;
}

.traffic-light.green {
    background: #28ca42;
}

.browser-tab {
    background: #1e1e1e;
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    bottom: 0;
}

.tab-favicon {
    width: 16px;
    height: 16px;
}

/* Platform Container */
.platform-container {
    flex: 1;
    background: white;
    overflow-y: auto;
}

/* Platform Content */
.platform-content {
    padding: 0;
}

.usage-section {
    background: white;
    padding: 24px 32px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-logo {
    width: 32px;
    height: 32px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #212529;
}

.section-description {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 24px;
}

/* Usage Table */
.usage-table {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 3fr;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 3fr;
    padding: 16px 20px;
    border-bottom: 1px solid #dee2e6;
    transition: background 0.2s;
    align-items: center;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row.highlight {
    background: #fff8f0;
}

.col-app {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #212529;
}

.app-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.col-status {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.approved {
    background: #d4edda;
    color: #155724;
}

.status-badge.unapproved {
    background: #f8d7da;
    color: #721c24;
}

.col-usage {
    display: flex;
    align-items: center;
    gap: 12px;
}

.usage-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: #ff6a3d;
    transition: width 0.5s ease-out;
}

.usage-text {
    font-size: 14px;
    color: #495057;
    min-width: 50px;
    text-align: right;
}

.col-users {
    text-align: right;
    color: #495057;
    font-size: 14px;
}

/* Violation Modal */
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.visible {
    display: flex;
}

.violation-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.violation-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef3c7;
    border-radius: 50%;
    color: #f59e0b;
}

.violation-title {
    font-size: 24px;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
}

.violation-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

.violation-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.detail-row:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
}

.detail-label {
    font-size: 14px;
    color: #6c757d;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
}

/* Success Toaster */
.success-toaster {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: none;
    align-items: center;
    gap: 16px;
    min-width: 380px;
    animation: toasterSlideIn 0.4s ease-out;
    z-index: 2500;
}

.success-toaster.visible {
    display: flex;
}

.toaster-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.toaster-content {
    flex: 1;
}

.toaster-title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
}

.toaster-message {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

@keyframes toasterSlideIn {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulseRow {
    0%, 100% { background: transparent; }
    50% { background: #fff8f0; }
}

/* Responsive */
@media (max-width: 768px) {
    .usage-section {
        padding: 20px;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1.5fr 0.8fr 2fr;
        font-size: 12px;
        padding: 12px 16px;
    }
    
    .app-logo {
        width: 24px;
        height: 24px;
    }
    
    .success-toaster {
        bottom: 20px;
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}