/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    --accent-color: #667eea;
    --text-primary: #333;
    --text-secondary: #666;
    --background-light: #f7fafc;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--primary-gradient);
    min-height: 100vh;
    padding: 20px;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

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

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Main Content */
main {
    padding: 40px 30px;
}

.generator-section {
    margin-bottom: 40px;
}

.generator-section h2 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.description {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.required {
    color: #e53e3e;
}

.optional {
    color: #999;
    font-weight: 400;
    font-size: 0.9rem;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

small {
    display: block;
    margin-top: 5px;
    color: #718096;
    font-size: 0.85rem;
}

/* Button Styles */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

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

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Info Section */
.info-section {
    background: #f7fafc;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.info-section h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-section ol {
    margin-left: 20px;
    color: #4a5568;
}

.info-section li {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: #f7fafc;
    padding: 20px;
    text-align: center;
    color: #718096;
    border-top: 1px solid #e2e8f0;
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    header {
        padding: 30px 20px;
    }

    header h1 {
        font-size: 2rem;
    }

    main {
        padding: 30px 20px;
    }

    .generator-section h2 {
        font-size: 1.5rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-primary.loading::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Grade Band Navigation */
.grade-band-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 10px;
    border-radius: 10px;
    margin: 0 auto 40px;
    box-shadow: var(--card-shadow);
}

.grade-band-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-speed);
    backdrop-filter: blur(4px);
}

.grade-band-btn:hover,
.grade-band-btn.active {
    background: white;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Nav Fix */
@media (max-width: 600px) {
    .grade-band-nav {
        flex-direction: row;
        gap: 8px;
        padding: 10px;
    }
    .grade-band-btn {
        flex: 1 1 calc(50% - 10px);
        font-size: 0.9rem;
        padding: 8px 0;
    }
}

/* Tool Categories */
.tool-category {
    margin-bottom: 40px;
    opacity: 1;
    transition: all var(--transition-speed);
}

.tool-category.hidden {
    display: none;
    opacity: 0;
}

.category-header {
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

.category-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.category-header p {
    opacity: 0.9;
}

/* Enhanced Tool Cards */
.tool-card {
    position: relative;
    overflow: hidden;
}

.tool-card .grade-band {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--accent-color);
}

.tool-features {
    margin: 15px 0;
    font-size: 0.9rem;
}

.tool-features li {
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.tool-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.tool-card .coming-soon-label {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--secondary-gradient);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}


