/* Custom CSS untuk project_bullying_report */
body {
    font-family: 'Quicksand', sans-serif;
    background-color: #f8f9fa;
}

.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
    padding: 120px 0;
    margin-top: 56px; /* Tinggi navbar */
}

.hero-button {
    color: #0d6efd;
    transition: all 0.3s ease;
}

.hero-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-card {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.navbar-brand {
    letter-spacing: 1px;
}

/* === Login Page Styles === */

.login-body {
    background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.login-card {
    border-radius: 15px;
    background-color: #ffffff;
}

.login-icon {
    font-size: 4rem; /* 64px */
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}/* === Login Page Styles === */

.login-body {
    background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.login-card {
    border-radius: 15px;
    background-color: #ffffff;
}

.login-icon {
    font-size: 4rem; /* 64px */
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* === General App Styles === */

.card-header {
    font-weight: 700;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}


/* === Chat Bubble Styles (Modern) === */
.chat-box {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background-color: #e9ebee; /* Latar belakang chat box seperti WhatsApp/FB */
    display: flex;
    flex-direction: column;
}

.chat-bubble {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    max-width: 85%;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.chat-content {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    position: relative;
}

.chat-sender {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.chat-time {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* PERUBAHAN DI SINI: Style untuk pesan Guru/PENGIRIM (kanan, hijau) */
.chat-bubble.guru {
    align-self: flex-end; /* Pindahkan ke kanan */
}
.chat-bubble.guru .chat-avatar {
    background-color: #0d6efd; /* Biru */
    margin-left: 10px; /* Jarak di kiri */
    order: 2; /* Pindahkan avatar ke paling kanan */
}
.chat-bubble.guru .chat-content {
    background-color: #dcf8c6; /* Hijau muda seperti WhatsApp */
    border-top-right-radius: 0;
    order: 1; /* Pindahkan bubble ke kiri avatar */
}
.chat-bubble.guru .chat-time {
    text-align: right;
}

/* PERUBAHAN DI SINI: Style untuk pesan Siswa/MASUK (kiri, putih) */
.chat-bubble.siswa {
    align-self: flex-start; /* Pindahkan ke kiri */
}
.chat-bubble.siswa .chat-avatar {
    background-color: #198754; /* Hijau */
    margin-right: 10px; /* Jarak di kanan */
}
.chat-bubble.siswa .chat-content {
    background-color: #ffffff; /* Putih */
    border-top-left-radius: 0;
}
.chat-bubble.siswa .chat-time {
    text-align: left;
}

/* === Wizard Form Styles === */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* === Instrumen Form Styles === */
.table .btn-check + .btn-outline-primary {
    transition: all 0.2s ease-in-out;
}
.table .btn-check + .btn-outline-primary:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.3);
}
