.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    letter-spacing: 0.01em;
    min-height: 42px;
    position: relative;
}

@media (max-width: 640px) {
    .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(100, 116, 139, 0.25);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-color);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled:hover,
.btn[disabled]:hover {
    transform: none !important;
    box-shadow: none !important;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: var(--danger-hover);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

.btn-success {
    background: var(--success-color);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    background: var(--success-hover);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.btn-warning:hover {
    background: var(--warning-hover);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transform: translateY(-1px);
}

.btn-warning:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-submit {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

.btn-draft {
    padding: 0.75rem 1.5rem;
}

.btn-cancel {
    padding: 0.75rem 1.5rem;
    text-align: center;
}

@media (max-width: 640px) {
    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
}

.form-group label small {
    font-weight: 200;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--bg-color);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.form-group label {
    position: relative;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
    vertical-align: middle;
    position: relative;
}

.help-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.help-icon:hover {
    color: var(--primary-color);
}

.help-icon.active {
    color: var(--primary-color);
}

.help-panel {
    position: fixed;
    z-index: 10000;
    min-width: 320px;
    max-width: 480px;
    border-radius: 0.875rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.12),
        0 10px 10px -5px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.help-panel-content {
    padding: 1rem;
    max-height: 60vh;
    overflow-y: auto;
}

.help-panel-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.help-panel-content h4:not(:first-child) {
    margin-top: 1rem;
}

.help-panel-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.help-example {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-color);
    white-space: pre-line;
    font-family: inherit;
}

.help-panel-content ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.help-panel-content li {
    margin-bottom: 0.375rem;
}

.help-panel-content li:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .help-panel-content {
        padding: 0.875rem;
    }

    .help-panel-content h4 {
        font-size: 0.875rem;
    }

    .help-panel-content p,
    .help-panel-content ul,
    .help-example {
        font-size: 0.8125rem;
    }
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 420px;
    transition: all 0.2s ease;
}

.auth-card h2 {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.proposal-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.proposal-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
    transform: translateY(-2px);
}

.feature-card {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-size: 1.375rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.benefit-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.review-card {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    transition: all 0.2s ease;
}

.review-card h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.review-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (max-width: 640px) {
    .review-actions {
        grid-template-columns: 1fr;
    }
}

.review-notes-card {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    transition: all 0.2s ease;
}

.review-notes-card.review-notes-highlight {
    border-left: 4px solid var(--warning-color);
    background: rgba(200, 154, 90, 0.1);
    box-shadow: var(--shadow-md);
}

.review-notes-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.review-notes-content {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 0.9375rem;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
}

.review-notes-content p:last-child {
    margin-bottom: 0;
}

.review-notes-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    background: var(--bg-color);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    border: 1px solid var(--border-color);
    animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-color);
}

.modal-body {
    padding: 2rem;
}

.modal-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.modal-body h3:not(:first-child) {
    margin-top: 2rem;
}

.instructor-benefits,
.instructor-process {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.instructor-benefits li,
.instructor-process li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.instructor-benefits li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.5rem;
    line-height: 1;
}

.instructor-process li {
    counter-increment: step-counter;
}

.instructor-process {
    counter-reset: step-counter;
}

.instructor-process li::before {
    content: counter(step-counter) ".";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 600;
}

.instructor-benefits strong,
.instructor-process strong {
    color: var(--text-color);
    font-weight: 600;
}

.modal-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 640px) {
    .modal-actions {
        grid-template-columns: 1fr;
    }
}

.coming-soon-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
}

.coming-soon-note {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
    padding: 0.75rem;
    background: rgba(79, 70, 229, 0.04);
    border-radius: 0.75rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color);
}

@media (max-width: 640px) {
    .modal {
        padding: 0;
    }

    .modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}

.confirmation-modal {
    z-index: 2000;
}

.confirmation-modal-content {
    max-width: 500px;
}

.confirmation-modal-content .modal-body p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
}

.confirmation-modal-content .modal-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.confirmation-modal-content .modal-actions button {
    min-width: 100px;
}

.confirmation-modal-info .modal-header {
    border-bottom-color: var(--primary-color);
}

.confirmation-modal-info .modal-header h2 {
    color: var(--primary-color);
}

.confirmation-modal-warning .modal-header {
    border-bottom-color: var(--warning-color);
}

.confirmation-modal-warning .modal-header h2 {
    color: var(--warning-color);
}

.confirmation-modal-danger .modal-header {
    border-bottom-color: var(--danger-color);
}

.confirmation-modal-danger .modal-header h2 {
    color: var(--danger-color);
}

@media (max-width: 640px) {
    .confirmation-modal-content .modal-actions {
        flex-direction: column-reverse;
    }

    .confirmation-modal-content .modal-actions button {
        width: 100%;
    }
}
