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

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

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #003DA5 0%, #0056B3 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

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

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

main {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #003DA5;
    border-bottom: 2px solid #003DA5;
    padding-bottom: 10px;
}

.form-section h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #0056B3;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #003DA5;
    box-shadow: 0 0 5px rgba(0, 61, 165, 0.3);
}

.form-group small {
    font-size: 0.9em;
    color: #666;
    margin-top: 3px;
}

.target {
    font-size: 0.9em;
    color: #0056B3;
    font-weight: 600;
    margin-top: 3px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.form-section .form-group {
    margin-bottom: 0;
}

button {
    padding: 12px 24px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #003DA5 0%, #0056B3 100%);
    color: white;
    margin-right: 10px;
}

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

.btn-secondary {
    background: #e9ecef;
    color: #333;
}

.btn-secondary:hover {
    background: #dee2e6;
}

.btn-ai {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(124, 58, 237, 0.2);
    border: none;
}

.btn-ai:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(124, 58, 237, 0.3);
}

#resultsSection {
    padding: 30px;
    background: white;
}

.results-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #003DA5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-header h2 {
    color: #003DA5;
    font-size: 1.8em;
}

.button-group {
    display: flex;
    gap: 10px;
}

.button-group button {
    margin: 0;
}

.coaching-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.coaching-section h3 {
    color: #003DA5;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.coaching-script {
    background: white;
    padding: 20px;
    border-left: 4px solid #003DA5;
    line-height: 1.8;
    color: #333;
    font-size: 1.05em;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.empty-state {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.resource-list {
    list-style: none;
    padding: 0;
}

.resource-list li {
    margin-bottom: 12px;
}

.resource-link {
    display: inline-block;
    padding: 10px 15px;
    background: #e3f2fd;
    color: #0056B3;
    text-decoration: none;
    border-radius: 5px;
    border-left: 4px solid #0056B3;
    transition: all 0.3s ease;
}

.resource-link:hover {
    background: #bbdefb;
    padding-left: 20px;
}

.history-employee {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #003DA5;
}

.history-employee h3 {
    color: #003DA5;
    margin-bottom: 15px;
}

.history-item {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.history-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
    font-size: 0.9em;
}

.history-preview {
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
    font-style: italic;
}

.view-full {
    padding: 8px 15px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
    }

    .button-group button {
        width: 100%;
    }

    button {
        width: 100%;
    }
}
