/* General Styles and Framework */
body {
    margin: 0; padding: 0; font-family: 'Roboto', sans-serif;
    /* Background gradient matching the images */
    background: linear-gradient(135deg, #e0f7fa 0%, #fffde7 50%, #fff3e0 100%); 
    display: flex; justify-content: center; align-items: flex-start; 
    min-height: 100vh; padding-top: 20px;
}
/*.phone-frame {
    width: 360px; max-width: 100%; border: 12px solid #333;
    border-radius: 40px; box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    overflow: hidden; background-color: #fff;
}*/
.status-bar {
    height: 25px; background-color: #333; display: flex; align-items: center; 
    justify-content: flex-end; padding: 0 10px; color: white; font-size: 10px;
}
.app-title-section { text-align: center; padding: 20px 0 10px; }
.app-title-section h1 { font-size: 32px; color: #1e3a8a; font-weight: 700; margin: 0; }
.app-title-section .underline {
    display: block; width: 30px; height: 4px; background-color: #1e3a8a;
    margin: 5px auto 0; border-radius: 2px;
}
.app-content { padding: 0 15px 30px; }
.hidden { display: none !important; }
.action-button { width: 100%; cursor: pointer; }

/* --- VIEW 1: LOGIN (unnamed (_1).jpg) --- */
.login-content { padding-top: 0; }
.login-header { text-align: center; margin-bottom: 40px; }
.login-header p { margin: 0; line-height: 1.4; font-size: 16px; color: #333; font-weight: 500;}
.login-header .institution { font-size: 18px; font-weight: 700; margin-top: 10px; }
.mobile-input-group {
    display: flex; border-bottom: 2px solid #1e3a8a; margin-bottom: 20px; padding-bottom: 5px;
}
.country-code { font-size: 20px; color: #1e3a8a; margin-right: 10px; font-weight: 500; }
#phone-number, .otp-input { flex-grow: 1; border: none; outline: none; font-size: 18px; padding: 0; margin: 0; }
.otp-input { text-align: center; margin-bottom: 20px; border-bottom: 2px solid #ccc; padding-bottom: 5px; }
.otp-instruction { text-align: center; font-size: 14px; color: #666; margin: 10px 0 30px; }
.action-button.login-button {
    background-color: #1e3a8a; color: white; border: none; border-radius: 8px; padding: 15px; font-size: 18px;
    margin-bottom: 10px;
}
.anonymous-section { text-align: center; margin-top: 30px; font-size: 14px; color: #666; }
.anonymous-link { color: #1e3a8a; text-decoration: none; font-weight: bold; margin-top: 5px; display: block; }


/* --- VIEW 2A: STUDENT WELCOME/HOME DASHBOARD (unnamed (2).png) --- */
.top-nav { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.top-nav .welcome-text { font-size: 16px; font-weight: 500; color: #333; flex-grow: 1; text-align: center; }
.top-nav .icon { font-size: 24px; color: #1e3a8a; cursor: pointer; }
.app-small-title { font-size: 14px; font-weight: 500; color: #1e3a8a; }
.welcome-banner { font-size: 20px; font-weight: 700; color: #333; margin: 15px 0; }

/* Home Status Grid */
.status-grid-home { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.home-status-item {
    width: 30px; height: 30px; border-radius: 50%; display: flex; justify-content: center;
    align-items: center; color: white; font-weight: bold; font-size: 14px; margin-left: 10px;
    border: 2px solid white; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.home-status-item.submitted-status { background-color: #ef4444; } /* Red */
.home-status-item.failed-status { background-color: #6b7280; } /* Gray */
.home-status-item.resolved-status { background-color: #f59e0b; } /* Yellow/Orange */

/* MCC Violation Mock Section */
/*.mcc-violations-mock {
    background-color: #fff; border-radius: 8px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px; padding: 10px;
}
.mcc-scroll-mock {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px;
    background-color: #f79009; border-radius: 8px;
}
.mcc-label-item { color: #fff; font-size: 13px; font-weight: 500; }
.mcc-title-bar { text-align: center; font-size: 12px; color: #333; margin-top: 5px; font-weight: bold; }
.register-label { margin-top: 25px; font-size: 14px; color: #555; }*/

/* --- MODIFIED: VERTICAL ALERT SELECTION (Replacing Mock Scroll) --- */
.mcc-violations-mock {
    background-color: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px; padding: 15px;
}
.alert-selection-vertical { 
    display: flex; flex-direction: column; gap: 10px; margin-top: 10px; 
}
.alert-selection-card {
    display: flex; align-items: center; background: #f8fafc; border: 1px solid #e2e8f0;
    padding: 12px 15px; border-radius: 10px; cursor: pointer; transition: all 0.2s ease;
    font-family: inherit; font-size: 15px; font-weight: 500; color: #334155;
}
.alert-selection-card .material-icons { margin-right: 12px; color: #1e3a8a; font-size: 22px; }
.alert-selection-card:hover { background: #f1f5f9; }
.alert-selection-card.active {
    background-color: #f79009; color: white; border-color: #fbbf24;
}
.alert-selection-card.active .material-icons { color: white; }

.mcc-title-bar { text-align: center; font-size: 12px; color: #666; font-weight: bold; letter-spacing: 0.5px; margin-bottom: 5px; }
.register-label { margin-top: 25px; font-size: 14px; color: #555; font-weight: 500; }

/* Vertical Alert Selection - Updated */
/*.alert-selection-vertical { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; }
.alert-selection-card {
    display: flex; align-items: center; background: #fff; border: 1px solid #ddd;
    padding: 12px; border-radius: 10px; cursor: pointer; font-family: inherit; text-align: left;
}
.alert-selection-card.active { background: #fdf2f2; border-color: #ef4444; color: #b91c1c; }
.alert-selection-card .material-icons { margin-right: 12px; color: #1e3a8a; }
.mcc-title-bar { font-size: 12px; font-weight: bold; color: #666; margin-bottom: 5px; }*/

/* Horizontal Media Buttons - Updated */
/*.complaint-buttons-horizontal { display: flex; gap: 8px; margin-top: 15px; }
.media-mini-button {
    flex: 1; display: flex; align-items: center; justify-content: center;
    background: #333; color: white; padding: 12px 5px; border-radius: 8px; cursor: pointer;
}
.mini-icon { font-size: 18px !important; margin-right: 5px; }
.mini-label { font-size: 11px; font-weight: bold; }*/

/* --- MODIFIED: HORIZONTAL COMPACT MEDIA BUTTONS --- */
.complaint-buttons-horizontal { 
    display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; 
}
.media-mini-button {
    flex: 1; display: flex; align-items: center; justify-content: center;
    background-color: #333; color: white; padding: 12px 5px; border-radius: 8px;
    cursor: pointer; box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.media-mini-button:active { transform: scale(0.96); }
.mini-icon { font-size: 18px !important; margin-right: 6px; }
.mini-label { font-size: 11px; font-weight: 700; }

/* Three Action Buttons (PHOTO/VIDEO/AUDIO) */
.complaint-buttons { display: flex; flex-direction: column; gap: 15px; margin-top: 10px; }
.complaint-button {
    display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
    padding: 25px 20px; width: 100%; border-radius: 12px; color: white; font-size: 24px;
    font-weight: 700; cursor: pointer; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.complaint-button .media-icon { font-size: 40px; margin-right: 20px; opacity: 0.9; }
.button-photo { background-color: #3b82f6; } /* Blue */
.button-audio { background-color: #f59e0b; } /* Orange/Gold */
.button-video { background-color: #ef4444; } /* Red */


/* --- VIEW 2B: STUDENT COMPLAINT LODGING FORM (unnamed (_3).jpg) --- */
.complaint-submission-card {
    padding: 15px; border-radius: 8px; background-color: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}
.media-placeholder {
    height: 150px; background-color: #f0f0f0; border: 1px solid #ccc; display: flex; align-items: center;
    justify-content: center; color: #777; font-size: 14px; margin-bottom: 15px;
}
/* Location Field Styling */
.location-mock-input-group {
    display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 15px; padding-left: 5px;
}
.location-icon { font-size: 16px; color: #333; margin-right: 5px; }
.location-label-text { font-size: 14px; color: #333; font-weight: 500; }
.location-input {
    width: 100%; padding: 10px; margin-top: 5px; border: 1px solid #ccc; background-color: #eee; 
    border-radius: 4px; box-sizing: border-box;
}
/* Additional Info Label */
.additional-info-label {
    display: flex; align-items: center; font-size: 14px; color: #333; margin-top: 15px;
    margin-bottom: 10px; font-weight: 500;
}
.additional-info-label .material-icons { font-size: 16px; margin-left: 5px; color: #1e3a8a; cursor: pointer; }

/* Form Inputs */
.input-group { margin-bottom: 10px; }
.input-group label { display: block; font-size: 14px; color: #555; margin-bottom: 5px; }
.input-group input[type="text"], .input-group select, .input-group textarea {
    width: 100%; padding: 10px; border-radius: 4px; box-sizing: border-box; font-size: 16px;
    border: 2px solid #aaa; 
}
.input-group textarea { height: 80px; resize: vertical; }

/* Action Row Buttons */
.action-row { display: flex; justify-content: space-between; margin-top: 20px; }
.reset-button {
    flex-grow: 1; padding: 12px; margin-right: 10px; border: 2px solid #ccc; background-color: white;
    color: #333; border-radius: 8px; font-weight: 700; cursor: pointer;
}
.submit-button {
    flex-grow: 2; padding: 12px; border: none; background-color: #3b82f6; color: white;
    border-radius: 8px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* --- VIEW 3: SECURITY PERSONNEL COMPLAINT LIST (Status/Action) --- */
.security-status-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; text-align: center;
    padding: 10px 0; border-bottom: 1px solid #ddd; margin-bottom: 15px;
}
.status-circle {
    width: 30px; height: 30px; line-height: 30px; border-radius: 50%; color: white; font-weight: bold;
    margin: 0 auto 5px; font-size: 16px;
}
.status-label { font-size: 12px; font-weight: bold; color: #666; text-align: left; margin-top: 10px; margin-bottom: 5px;}


/* Status Colors */
.submitted-status { background-color: #10b981; } /* Green */
.failed-status { background-color: #ef4444; } /* Red */
.in-progress-status { background-color: #f59e0b; } /* Orange */
.resolved-status { background-color: #1e3a8a; } /* Dark Blue/Resolved */

.total-complaints { font-size: 14px; font-weight: 500; text-align: center; margin-bottom: 15px; }
.complaint-card {
    background-color: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 15px;
    margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.card-header { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 14px; }
.status-badge { background-color: #10b981; color: white; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.status-pending { background-color: #ef4444; }
.date-time { font-size: 12px; color: #999; margin: 5px 0; }
.type-location, .description-text { font-size: 14px; color: #333; margin: 2px 0; }
.mini-button { width: 40%; padding: 8px; font-size: 14px; margin-top: 10px; }


/* --- VIEW 4: ADMIN DASHBOARD (Monitoring) --- */
#admin-view .top-nav { border-bottom: 1px solid #eee; margin-bottom: 15px; }
#admin-view .icon { color: #1e3a8a; }

.admin-metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.admin-metrics-grid .metric-card {
    padding: 15px 5px; border-radius: 8px; color: white; text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.admin-metrics-grid .metric-value { font-size: 24px; font-weight: 700; margin: 0 0 5px; }
.admin-metrics-grid .metric-label { font-size: 12px; margin: 0; }
.admin-metrics-grid .submitted-status { background-color: #10b981; } 
.admin-metrics-grid .failed-status { background-color: #f59e0b; } 
.admin-metrics-grid .resolved-status { background-color: #1e3a8a; } 

/* Admin Complaint Log Table */
.admin-log-container {
    overflow-x: auto; background-color: #fff; border: 1px solid #ddd; border-radius: 8px;
    margin-bottom: 20px;
}
.admin-complaint-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.admin-complaint-table th, .admin-complaint-table td { padding: 10px 8px; border-bottom: 1px solid #eee; }
.admin-complaint-table thead th { background-color: #f0f7ff; color: #1e3a8a; font-weight: 700; }
.admin-complaint-table tbody tr:hover { background-color: #f5f5f5; }
.status-resolved-admin { color: #10b981; font-weight: bold; }
.status-new-admin { color: #ef4444; font-weight: bold; }
.admin-action-link { color: #3b82f6; text-decoration: none; font-weight: 500; }

/* Fake Map Simulation //
.fake-map-container {
    height: 150px; background-color: #f0f8ff; border: 1px solid #ddd; border-radius: 8px;
    margin-bottom: 20px; display: flex; align-items: center; justify-content: center;
    background-image: linear-gradient(0deg, transparent 9px, #d0e8f8 10px), 
                      linear-gradient(90deg, transparent 9px, #d0e8f8 10px);
    background-size: 10px 10px;
    color: #333; font-weight: bold;
}*/
.map-text { 
    padding: 10px; background-color: rgba(255, 255, 255, 0.85); border-radius: 5px; 
    border: 1px solid #ccc;
}

/* --- MODAL (Security Details) --- */
/*
.modal {
    position: fixed; z-index: 10; left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto; background-color: rgba(0,0,0,0.6); display: none;
    align-items: center; justify-content: center;
}
.modal-content {
    background-color: #fefefe; margin: auto; padding: 20px; border: 1px solid #888;
    width: 80%; border-radius: 12px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.close-button {
    color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer;
}
*/
/* updated 291225*/

/* --- NEW: SECURITY REVIEW PAGE VIEW --- */
#complaint-details-view {
    background-color: #f8fafc; /* Subtle grey for a clean "App" look */
}

/* Container for data rows */
.detail-info-box {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
}

.detail-info-box p {
    margin: 10px 0;
    font-size: 14px;
    color: #475569;
    display: flex;
    justify-content: flex-start;
}

/* Styles labels (e.g., "Location:") */
.detail-info-box strong {
    color: #1e3a8a;
    width: 100px; /* Aligns all labels perfectly */
    flex-shrink: 0;
}

/* Fixed Mobile Frame */
.phone-frame {
    width: 360px; /* Standard mobile width */
    height: 740px; /* Standard mobile height */
    margin: 20px auto;
    border: 12px solid #333; /* Simulated phone bezel */
    border-radius: 36px;
    position: relative;
    overflow: hidden; /* Keeps content inside the frame */
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Ensure views fill the frame without breaking layout */
.app-view {
    height: 100%;
    overflow-y: auto; /* Allows scrolling inside the phone */
    display: flex;
    flex-direction: column;
}

/* Map Container Styling */
.fake-map-container {
    width: 100%;
    height: 200px; /* Fixed height for the map */
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid #ddd;
}

.fake-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Newly added features for side bar */
.side-drawer {
    position: absolute; top: 0; left: -250px; width: 200px; height: 100%;
    background: #fff; z-index: 1000; transition: 0.3s; box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}
.side-drawer.active { left: 0; }
.menu-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 999; display: none;
}
.drawer-header { background: #d32f2f; color: white; padding: 15px; display: flex; align-items: center; gap: 10px; }
.drawer-links { list-style: none; padding: 20px 0; }
.drawer-links li { padding: 15px 20px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: 0.2s; }
.drawer-links li:hover { background: #f0f0f0; }
.about-card { background: #fff; padding: 15px; border-radius: 10px; margin-top: 20px; line-height: 1.6; }

/* Added 291225 */

/* Styling for the Description text on the review page */
.desc-display {
    background: #f1f5f9;
    padding: 12px;
    border-radius: 8px;
    font-style: italic;
    color: #334155;
    margin-top: 5px;
    border-left: 4px solid #1e3a8a;
    font-size: 14px;
    line-height: 1.5;
}

/* Headers for "Description" and "Security Actions" */
.section-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 20px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Adjust the feedback textarea to match your theme */
#security-feedback {
    width: 100%;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px;
    font-family: inherit;
    resize: none;
    background: #fff;
    box-sizing: border-box; /* Ensures it stays within phone frame */
}