/* Incident Report Specific Styles */

.report-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #F8FAFC;
}

/* Action Bar */
.report-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.btn-discard {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    color: #475569;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.btn-discard:hover {
    background-color: #F1F5F9;
    color: #0F172A;
}

.badge-document {
    background-color: #FEE2E2;
    color: #A03E21;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Main Form Container */
.report-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    max-width: 1000px;
    margin: 0 auto 3rem;
    width: 100%;
    overflow: hidden;
}

/* Report Header/Hero */
.report-hero {
    background-color: #0F172A;
    color: white;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.report-hero-content {
    position: relative;
    z-index: 2;
}

.report-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.report-hero-subtitle {
    font-size: 1.125rem;
    color: #94A3B8;
    margin-bottom: 2rem;
}

.report-meta-row {
    display: flex;
    gap: 2rem;
    color: #CBD5E1;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.report-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-hero-badge {
    position: absolute;
    top: 3rem;
    right: 3rem;
    z-index: 2;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(4px);
    color: #34D399;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-hero-watermark {
    position: absolute;
    top: -20%;
    right: 5%;
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.03);
    z-index: 1;
    pointer-events: none;
    font-weight: 900;
}

/* Form Sections */
.report-form-body {
    padding: 3rem;
}

.form-section {
    margin-bottom: 3rem;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #2563EB;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.form-section-header h2 {
    font-size: 1.25rem;
    color: #1E293B;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

/* Input Fields */
.report-input-group {
    margin-bottom: 1.5rem;
}

.report-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.report-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: #94A3B8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-dictate {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-dictate:hover {
    color: #3B82F6;
    background: #EFF6FF;
}

.btn-dictate.recording {
    color: #EF4444;
    background: #FEF2F2;
    animation: dictatePulse 1.5s infinite;
}

@keyframes dictatePulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.report-input,
.report-select,
.report-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: #334155;
    transition: all 0.2s;
}

.report-input:focus,
.report-select:focus,
.report-textarea:focus {
    outline: none;
    border-color: #3B82F6;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.report-input::placeholder,
.report-textarea::placeholder {
    color: #94A3B8;
}

.report-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
}

.report-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Acknowledgment Block */
.ack-block {
    background-color: #F8FAFC;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
    border: 1px solid #E2E8F0;
}

.ack-block h3 {
    font-size: 1.5rem;
    color: #0F172A;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ack-text {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.ack-signature-group {
    max-width: 400px;
    margin: 0 auto 2rem;
}

.signature-input {
    text-align: center;
    font-style: italic;
    font-size: 1.125rem;
    padding: 1rem;
    background-color: white;
    border: 1px solid #E2E8F0;
}

.signature-input::placeholder {
    font-style: italic;
    color: #94A3B8;
}

.btn-finalize {
    background-color: #A03E21;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 400px;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.2);
}

.btn-finalize:hover {
    background-color: #A03E21;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(220, 38, 38, 0.3);
}

@media (max-width: 1024px) {
    .report-hero {
        padding: 2rem;
    }

    .report-hero h1 {
        font-size: 2rem;
    }

    .report-meta-row {
        flex-direction: column;
        gap: 1rem;
    }

    .report-hero-badge {
        position: static;
        display: inline-flex;
        margin-top: 1.5rem;
    }

    .report-row {
        grid-template-columns: 1fr;
    }

    .report-form-body {
        padding: 2rem;
    }
}