* {
    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;
    padding: 20px;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

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

.content {
    padding: 40px;
}

.upload-section {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-section:hover {
    border-color: #4f46e5;
    background: #f1f5f9;
}

.upload-section.dragover {
    border-color: #4f46e5;
    background: #eef2ff;
    transform: scale(1.02);
}

.upload-icon {
    margin-bottom: 20px;
}

.icon-container {
    display: inline-block;
    transition: all 0.3s ease;
}

.excel-emoji {
    font-size: 5rem;
    line-height: 1;
    display: inline-block;
    transition: all 0.3s ease;
    filter: grayscale(0);
}

.upload-section:hover .icon-container {
    transform: scale(1.1);
}

.upload-section:hover .excel-emoji {
    filter: brightness(1.2);
}

.upload-description {
    margin: 15px 0;
    color: #64748b;
}

.file-input {
    display: none;
}

.upload-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

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

.results-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.person-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.person-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.disc-profiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.profile-item {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.profile-d { 
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); 
    color: white; 
}

.profile-i { 
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); 
    color: white; 
}

.profile-s { 
    background: linear-gradient(135deg, #10b981 0%, #059669 100%); 
    color: white; 
}

.profile-c { 
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); 
    color: white; 
}

.profile-letter {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-score {
    font-size: 1.1rem;
    font-weight: 600;
}

.dominant-profile {
    background: linear-gradient(135deg, #1e293b 0%, #374151 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.export-section {
    margin: 30px 0;
    text-align: center;
}

.export-group {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.export-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white;
}

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

.stats-section {
    background: #f8fafc;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

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

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 5px;
}

.stat-label {
    color: #64748b;
    font-weight: 600;
}

.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

/* AI Analysis Styles */
.ai-analysis-section {
    margin-top: 20px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.ai-header h5 {
    color: #4f46e5;
    margin-bottom: 15px;
    font-weight: 600;
}

.analysis-tabs {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab-buttons {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.tab-btn.active {
    background: white;
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

.tab-content {
    padding: 20px;
}

.tab-pane {
    display: none;
}

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

.tab-pane h6 {
    color: #1e293b;
    margin-bottom: 12px;
    font-weight: 600;
}

.tab-pane ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-pane ul li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #475569;
    line-height: 1.5;
}

.tab-pane ul li:before {
    content: "•";
    color: #4f46e5;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.additional-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.additional-info p {
    margin-bottom: 8px;
    color: #475569;
}

.management-tips {
    margin-top: 15px;
    padding: 15px;
    background: #fef3c7;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.management-tips p {
    margin-bottom: 8px;
}

/* Team Analysis Styles */
.team-analysis-section {
    margin-bottom: 30px;
}

.team-analysis-card {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.team-analysis-card h4 {
    margin-bottom: 20px;
    font-weight: 700;
}

.team-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.insight-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.insight-item.full-width {
    grid-column: 1 / -1;
}

.insight-item h6 {
    margin-bottom: 12px;
    font-weight: 600;
    color: #fbbf24;
}

.insight-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insight-item ul li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.insight-item ul li:before {
    content: "▸";
    color: #fbbf24;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.insight-item p {
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .content {
        padding: 20px;
    }
    
    .disc-profiles {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: none;
        min-width: 120px;
    }
    
    .team-insights {
        grid-template-columns: 1fr;
    }
    
    .ai-analysis-section {
        padding: 15px;
    }
}
