/* Team Management Tool Styles */

/* Hero Section */
.team-management-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 40%, #f093fb 70%, #f5576c 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.team-management-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="team-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="3" fill="rgba(255,255,255,0.08)"/><circle cx="5" cy="5" r="1.5" fill="rgba(255,255,255,0.06)"/><circle cx="25" cy="5" r="1.5" fill="rgba(255,255,255,0.06)"/><circle cx="5" cy="25" r="1.5" fill="rgba(255,255,255,0.06)"/><circle cx="25" cy="25" r="1.5" fill="rgba(255,255,255,0.06)"/><path d="M 30 0 L 0 0 0 30" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23team-pattern)"/></svg>');
    opacity: 0.8;
}

.team-management-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb i {
    margin: 0 10px;
    font-size: 12px;
}

.team-management-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.team-management-highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-management-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    line-height: 1.6;
}

.team-management-hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.team-management-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.team-management-stat-item i {
    font-size: 1.2rem;
    color: #ffd700;
}

/* Team Management Tool Section */
.team-management-tool {
    padding: 80px 0;
    background: #f8fafc;
}

/* Management Selector */
.management-selector {
    margin-bottom: 60px;
}

.selector-header {
    text-align: center;
    margin-bottom: 40px;
}

.selector-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.selector-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.management-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tab-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
    text-align: center;
}

.tab-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.tab-btn i {
    font-size: 1rem;
}

/* Management Content */
.management-content {
    display: none;
}

.management-content.active {
    display: block;
}

.management-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.card-header {
    text-align: center;
    margin-bottom: 40px;
}

.card-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.card-header h3 i {
    color: #667eea;
}

.card-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 500px;
    margin: 0 auto;
}

/* Input Grid */
.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.input-section {
    background: #f7fafc;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.input-section:hover {
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.input-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group input::placeholder {
    color: #a0aec0;
}

/* Performance Grid */
.performance-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.performance-section {
    background: #f7fafc;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.performance-section:hover {
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.performance-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* Employee Input Rows */
.employee-inputs {
    margin-bottom: 20px;
}

.employee-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.employee-row:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.employee-row .input-group {
    margin-bottom: 0;
}

.employee-row .input-group label {
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.employee-row .input-group input,
.employee-row .input-group select {
    padding: 10px 12px;
    font-size: 0.9rem;
}

.add-employee-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.add-employee-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.3);
}

.remove-employee-btn {
    background: #fed7d7;
    color: #e53e3e;
    border: 1px solid #feb2b2;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.remove-employee-btn:hover {
    background: #feb2b2;
    transform: scale(1.1);
}

/* Skill Matrix Grid */
.skill-matrix-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.skill-section {
    background: #f7fafc;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.skill-section:hover {
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.skill-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.skill-category {
    margin-bottom: 25px;
}

.skill-category h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-category h5::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.skill-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.skill-row:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.skill-row label {
    font-weight: 500;
    color: #4a5568;
    font-size: 0.9rem;
}

.skill-row input {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
}

.skill-level {
    font-size: 0.75rem;
    color: #718096;
    font-weight: 500;
}

/* Button Groups */
.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.calculate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.clear-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.clear-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* Results Section */
.results-section {
    display: none;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.results-section.show {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.team-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.team-metric-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.team-metric-card:hover::before {
    transform: scaleX(1);
}

.metric-label {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 8px;
    font-weight: 500;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 5px;
}

.metric-value.excellent {
    color: #38a169;
}

.metric-value.good {
    color: #3182ce;
}

.metric-value.warning {
    color: #ed8936;
}

.metric-value.critical {
    color: #e53e3e;
}

.metric-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    display: inline-block;
}

.metric-status.excellent {
    background: #c6f6d5;
    color: #38a169;
}

.metric-status.good {
    background: #bee3f8;
    color: #3182ce;
}

.metric-status.warning {
    background: #fbd38d;
    color: #ed8936;
}

.metric-status.critical {
    background: #feb2b2;
    color: #e53e3e;
}

.team-summary {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 20px;
}

.team-summary h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-summary p {
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 15px;
}

.team-summary ul {
    margin: 15px 0;
    padding-left: 20px;
}

.team-summary li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Employee Performance Table */
.employee-performance-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin: 20px 0;
}

.employee-performance-table table {
    width: 100%;
    border-collapse: collapse;
}

.employee-performance-table th {
    background: #f7fafc;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.employee-performance-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f7fafc;
    color: #4a5568;
    font-size: 0.9rem;
}

.employee-performance-table tr:hover {
    background: #f7fafc;
}

.performance-score {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.performance-score.high {
    background: #c6f6d5;
    color: #38a169;
}

.performance-score.medium {
    background: #bee3f8;
    color: #3182ce;
}

.performance-score.low {
    background: #fbd38d;
    color: #ed8936;
}

/* Skill Matrix Visualization */
.skill-matrix-chart {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    margin: 20px 0;
}

.skill-matrix-chart h6 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    text-align: center;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-name {
    min-width: 140px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
}

.skill-progress {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 1s ease;
    position: relative;
}

.skill-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-value {
    min-width: 35px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2d3748;
    text-align: right;
}

/* Optimization Recommendations */
.optimization-recommendations {
    background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
    border: 1px solid #90cdf4;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.optimization-recommendations h5 {
    color: #3182ce;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.optimization-recommendations ul {
    list-style: none;
    padding: 0;
}

.optimization-recommendations li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid rgba(49, 130, 206, 0.1);
}

.optimization-recommendations li:last-child {
    border-bottom: none;
}

.optimization-recommendations li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 10px;
}

/* Team Structure Visualization */
.team-structure-chart {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    margin: 20px 0;
}

.team-structure-chart h6 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
}

.structure-levels {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.structure-level {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.team-member {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    text-align: center;
    min-width: 80px;
    transition: all 0.3s ease;
}

.team-member:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
}

.team-member.manager {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.team-member.senior {
    background: #bee3f8;
    border-color: #90cdf4;
    color: #2b6cb0;
}

.team-member.junior {
    background: #c6f6d5;
    border-color: #9ae6b4;
    color: #276749;
}

.team-member.contractor {
    background: #fbd38d;
    border-color: #f6ad55;
    color: #b7791f;
}

/* Workload Distribution Chart */
.workload-chart {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    margin: 20px 0;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-style: italic;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.action-btn {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
}

.action-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
}

/* Related Tools */
.related-tools {
    padding: 80px 0;
    background: white;
}

.related-tools .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.related-tools .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
}

.related-tools .section-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.related-tools .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-tools .tool-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.related-tools .tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.related-tools .tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.related-tools .tool-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 10px;
}

.related-tools .tool-card p {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.6;
}

.related-tools .tool-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.related-tools .tool-link:hover {
    gap: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-management-hero {
        padding: 100px 0 60px;
    }
    
    .team-management-hero-title {
        font-size: 2.5rem;
    }
    
    .team-management-hero-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .management-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        min-width: 200px;
    }
    
    .input-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .performance-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-matrix-grid {
        grid-template-columns: 1fr;
    }
    
    .management-card {
        padding: 30px 20px;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .team-metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .employee-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .skill-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .skill-name {
        min-width: auto;
        text-align: center;
    }
    
    .structure-level {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .team-management-hero-title {
        font-size: 2rem;
    }
    
    .team-management-hero-stats {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .tab-btn {
        min-width: 100%;
        font-size: 0.8rem;
        padding: 14px 16px;
    }
    
    .calculate-btn,
    .clear-btn,
    .action-btn {
        min-width: 100%;
    }
    
    .input-section {
        padding: 20px 15px;
    }
    
    .performance-section {
        padding: 20px 15px;
    }
    
    .skill-section {
        padding: 20px 15px;
    }
    
    .team-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .employee-performance-table {
        overflow-x: auto;
    }
    
    .employee-performance-table table {
        min-width: 600px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message.success {
    background: #f0fff4;
    color: #38a169;
    border: 1px solid #9ae6b4;
}

.message.error {
    background: #fed7d7;
    color: #e53e3e;
    border: 1px solid #feb2b2;
}

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #2d3748;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
