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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.user-info {
    font-size: 1.2em;
    margin-top: 10px;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 1em;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: white;
    color: #1e3c72;
}

.login-screen {
    padding: 60px 40px;
    text-align: center;
}

.login-screen h2 {
    color: #333;
    margin-bottom: 40px;
    font-size: 2em;
}

.user-select {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.user-card {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 40px 60px;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 1.5em;
    font-weight: bold;
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.main-content {
    padding: 30px;
}

.nav-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab.active {
    color: #1e3c72;
    border-bottom-color: #1e3c72;
    font-weight: bold;
}

.tab:hover {
    color: #1e3c72;
}

.tab-content {
    display: none;
}

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

.btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.2s;
    font-weight: bold;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.85em;
}

.btn-danger {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e3c72;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.node-card {
    background: #f9f9f9;
    border-left: 4px solid #1e3c72;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.node-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.node-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.node-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #1e3c72;
}

.node-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.badge {
    background: #1e3c72;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
}

.badge-romantic {
    background: #e74c3c;
}

.badge-social {
    background: #27ae60;
}

.badge-high {
    background: #f39c12;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.kpi-item {
    background: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.kpi-label {
    font-size: 0.75em;
    color: #666;
    margin-bottom: 5px;
}

.kpi-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #1e3c72;
}

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

.stat-card {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    margin: 10px 0;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

.event-card {
    background: #f9f9f9;
    border-left: 4px solid #27ae60;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.event-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.event-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
}

.event-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.hidden {
    display: none;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1e3c72;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1e3c72;
    cursor: pointer;
    border: none;
}

.color-picker {
    width: 60px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.network-viz {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    min-height: 400px;
    text-align: center;
}

.section-title {
    color: #1e3c72;
    font-size: 1.2em;
    margin: 25px 0 15px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #eee;
}
