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

html, body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

.form-section {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 200px;
    position: relative;
}

.form-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.form-card:hover {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.02);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
    line-height: 1.5;
}

.form-input:hover {
    border-color: #d1d5db;
}

.form-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
    background: #fefffe;
}

.form-input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

textarea.form-input {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

.form-input.border-red-500 {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}

.form-input.border-red-500:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.form-input.border-emerald-500 {
    border-color: #10b981 !important;
    background-color: #f0fdf4;
}

.form-input.border-emerald-500:focus {
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08) !important;
}

@keyframes shake {
    0%, 100% { 
        transform: translateX(0); 
    }
    10%, 30%, 50%, 70%, 90% { 
        transform: translateX(-8px); 
    }
    20%, 40%, 60%, 80% { 
        transform: translateX(8px); 
    }
}

.shake-animation {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.25s ease;
    background: #f9fafb;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, rgba(5, 150, 105, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.file-upload-area:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.file-upload-area:hover::before {
    opacity: 1;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.file-item {
    background: #f8fffe;
    border: 1px solid #d1fae5;
    border-radius: 10px;
    padding: 12px 14px;
    transition: all 0.2s ease;
    animation: slideInUp 0.3s ease;
}

.file-item:hover {
    border-color: #10b981;
    background: #ecfdf5;
    transform: translateX(4px);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.privacy-notice {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
}

.privacy-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 13px 28px;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 
        0 4px 12px rgba(16, 185, 129, 0.2),
        0 0 0 0 rgba(16, 185, 129, 0);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-submit:hover:not(:disabled)::before {
    opacity: 1;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(16, 185, 129, 0.3),
        0 0 0 4px rgba(16, 185, 129, 0.1);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes scale-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-scale-in {
    animation: scale-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes check-draw {
    0% {
        stroke-dasharray: 0, 100;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dasharray: 100, 0;
        opacity: 1;
    }
}

.animate-check-draw {
    animation: check-draw 0.6s ease-in-out 0.2s both;
}

@keyframes pulse-subtle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.animate-pulse-subtle {
    animation: pulse-subtle 2s ease-in-out infinite;
}

.animate-slide-in-right {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.backdrop-blur-sm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#modalContent {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

@media (max-width: 768px) {
    .form-section {
        padding-top: 100px;
        padding-bottom: 150px;
        min-height: auto;
    }
    
    .form-card {
        padding: 32px 24px;
        border-radius: 18px;
    }
    
    .file-upload-area {
        padding: 24px 16px;
    }
}

@media (max-width: 640px) {
    .form-section {
        padding-top: 90px;
        padding-bottom: 120px;
    }
    
    .form-card {
        padding: 24px 18px;
        border-radius: 16px;
    }
    
    .form-input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    textarea.form-input {
        min-height: 100px;
    }
    
    .file-upload-area {
        padding: 20px 14px;
    }
    
    .btn-submit {
        padding: 11px 24px;
        font-size: 14px;
    }
    
    .privacy-notice {
        padding: 12px 14px;
    }

    #reportCode {
        font-size: 0.875rem !important;
        letter-spacing: 0.1em !important;
    }

    #modalContent {
        border-radius: 1rem;
    }
}

@media (max-width: 400px) {
    .form-card {
        padding: 20px 16px;
    }
    
    .form-input {
        padding: 9px 11px;
        font-size: 13px;
    }
    
    .btn-submit {
        padding: 10px 20px;
        font-size: 13px;
    }

    #reportCode {
        font-size: 0.75rem !important;
        letter-spacing: 0.05em !important;
    }
}

.form-input:focus-visible,
.btn-submit:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .decorative-circle {
        display: none;
    }
    
    .form-card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .btn-submit {
        background: #000;
        color: #fff;
    }

    #successModal {
        display: none !important;
    }
}

#reportCode {
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.1em;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background-color: #10b981;
    color: white;
}

::-moz-selection {
    background-color: #10b981;
    color: white;
}

/* ─── Tambahkan ke report-user-page.css ───────────────── */

/* NISN input + tombol cari */
.nisn-wrap {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.nisn-input {
    flex: 1;
    min-width: 0;
}

.btn-cari-nisn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-cari-nisn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-cari-nisn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-cari-nisn svg {
    width: 18px;
    height: 18px;
}

/* Info siswa ditemukan */
.student-found {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    animation: slideInUp 0.25s ease;
}

.student-found.hidden {
    display: none;
}

/* Modal kecil NISN not found */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-box-sm {
    background: white;
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    animation: slideInUp 0.3s ease;
}

.modal-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.modal-box-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.modal-box-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-modal-close {
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-modal-close:hover {
    background: #e5e7eb;
}

/* File type badges */
.file-type-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.file-type-badge.image {
    background: #d1fae5;
    color: #065f46;
}

.file-type-badge.video {
    background: #dbeafe;
    color: #1e40af;
}

/* ══════════════════════════════════════════════════════════
   TAMBAHKAN / MERGE ke track-user-page.css
   ══════════════════════════════════════════════════════════ */

.reporter-toggle-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #f3f4f6;
    padding: 5px;
    border-radius: 14px;
}

.reporter-toggle-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: #6b7280;
    transition: all .2s ease;
}

.reporter-toggle-btn.active {
    background: white;
    color: #059669;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* ── Violation Dropdown ── */
#violation-dropdown {
    background: #f0fdf4 !important;
    border: 1.5px solid #a7f3d0 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(16,185,129,.12) !important;
    overflow: hidden !important;
    margin-top: 6px !important;
    position: relative !important;
    z-index: 100 !important;
}

/* Header "Saran Kata:" */
#violation-dropdown::before {
    content: '💡 Saran tindakan — pilih yang sesuai';
    display: block;
    padding: 8px 16px;
    font-size: .7rem;
    font-weight: 700;
    color: #059669;
    background: #dcfce7;
    border-bottom: 1px solid #a7f3d0;
    text-transform: uppercase;
    letter-spacing: .05em;
}

#violation-dropdown .vt-suggestion-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 11px 16px !important;
    cursor: pointer !important;
    font-size: .85rem !important;
    color: #064e3b !important;
    background: #f0fdf4 !important;
    transition: background .12s !important;
    border-bottom: 1px solid #d1fae5 !important;
}

#violation-dropdown .vt-suggestion-item:last-child {
    border-bottom: none !important;
}

#violation-dropdown .vt-suggestion-item:hover,
#violation-dropdown .vt-suggestion-active {
    background: #d1fae5 !important;
}

#violation-dropdown .vt-suggestion-name {
    flex: 1 !important;
    font-weight: 600 !important;
    color: #065f46 !important;
}

#violation-dropdown .vt-suggestion-item:hover .vt-suggestion-name,
#violation-dropdown .vt-suggestion-active .vt-suggestion-name {
    color: #022c22 !important;
}

#violation-dropdown .vt-suggestion-icon {
    flex-shrink: 0 !important;
}

#violation-dropdown .vt-suggestion-cat {
    font-size: .68rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    padding: 2px 8px !important;
    border-radius: 99px !important;
    background: #a7f3d0 !important;
    color: #064e3b !important;
}
/* ── Selected Tag ── */
#violation_tags_wrap {
    background: #f0fdf4;
    border: 1.5px solid #a7f3d0;
    border-radius: 12px;
    padding: 10px 14px;
    margin-top: 10px;
}

#violation_tags_wrap p {
    font-size: .7rem;
    font-weight: 700;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 8px;
}

#violation_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vt-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 99px;
    font-size: .8rem;
    font-weight: 600;
    background: #059669;
    color: #ffffff;
    border: 1.5px solid #047857;
    box-shadow: 0 2px 6px rgba(5,150,105,.3);
}

.vt-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: rgba(255,255,255,0.25);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: .7rem;
    color: #ffffff;
    opacity: .9;
    padding: 0;
    line-height: 1;
    transition: all .15s;
}

.vt-tag-remove:hover {
    background: rgba(255,255,255,0.4);
    color: #ffffff;
    opacity: 1;
}

/* ── Child Name Dropdown (Student Autocomplete) ── */
#child_name-dropdown {
    background: #ffffff !important;
    border: 1.5px solid #dcfce7 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.08) !important;
    overflow-y: auto !important;
    max-height: 240px !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    margin-top: 6px !important;
}

#child_name-dropdown .student-suggestion-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 11px 16px !important;
    cursor: pointer !important;
    font-size: .85rem !important;
    color: #1f2937 !important;
    background: #ffffff !important;
    transition: background .12s !important;
    border-bottom: 1px solid #f0fdf4 !important;
}

#child_name-dropdown .student-suggestion-item:last-child {
    border-bottom: none !important;
}

#child_name-dropdown .student-suggestion-item:hover,
#child_name-dropdown .student-suggestion-active {
    background: #f0fdf4 !important;
    color: #047857 !important;
}

