/* ========================================
   NEO PATROL - Futuristic Security System
   Global Styles
   ======================================== */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient(ellipse at 20% 30%, #0a0f1e, #05070f);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 480px;
    height: 90vh;
    max-height: 800px;
    background: rgba(10, 20, 30, 0.55);
    backdrop-filter: blur(20px);
    border-radius: 48px;
    border: 1px solid rgba(0, 255, 255, 0.25);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header */
.app-header {
    padding: 24px 20px 16px;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.8), rgba(0, 10, 20, 0.9));
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.logo h1 {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #00ffff, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.status-chip {
    background: rgba(0, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 600;
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.4);
}

.guard-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.guard-name {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.guard-badge {
    font-size: 12px;
    color: #94a3b8;
}

/* Location Info */
.location-info {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    padding: 12px;
    margin-top: 12px;
}

.location-name {
    font-size: 14px;
    font-weight: 600;
    color: #00ffff;
}

.location-address {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
}

.main-content::-webkit-scrollbar {
    width: 4px;
}

.main-content::-webkit-scrollbar-track {
    background: rgba(0, 255, 255, 0.1);
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb {
    background: #00ffff;
    border-radius: 4px;
}

/* Glass Card */
.glass-card {
    background: rgba(15, 25, 35, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #00ffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

/* Location Card (untuk halaman pilih lokasi) */
.location-card {
    background: rgba(15, 25, 35, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.location-card:hover {
    border-color: rgba(0, 255, 255, 0.6);
    background: rgba(15, 25, 35, 0.8);
}

.location-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.company-logo {
    width: 48px;
    height: 48px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.company-name {
    font-weight: 700;
    font-size: 16px;
    color: white;
}

.location-detail {
    padding-left: 60px;
}

.location-detail-name {
    font-weight: 600;
    font-size: 15px;
    color: #00ffff;
    margin-bottom: 4px;
}

.location-detail-address {
    font-size: 12px;
    color: #94a3b8;
}

/* Status Bar */
.status-bar {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid #00ffff;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: pulse 1.5s infinite;
}

.status-dot.active {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.status-text {
    flex: 1;
    font-size: 13px;
    color: #cbd5e1;
}

.status-time {
    font-size: 12px;
    color: #00ffff;
    font-family: monospace;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

/* Buttons */
.button-grid {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #00ffff, #3b82f6);
    color: #0a0f1e;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.4);
    color: #00ffff;
}

.btn-danger {
    background: linear-gradient(135deg, #ff0040, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
}

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

.w-100 {
    width: 100%;
}

/* Form */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 6px;
    display: block;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.photo-preview {
    margin-top: 12px;
    text-align: center;
}

.photo-preview img {
    max-width: 100%;
    border-radius: 20px;
    max-height: 150px;
}

/* Post List */
.post-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.post-icon {
    font-size: 28px;
    width: 48px;
    text-align: center;
}

.post-info {
    flex: 1;
}

.post-name {
    font-weight: 600;
    color: white;
    font-size: 15px;
}

.post-status {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

.post-badge {
    width: 32px;
    text-align: center;
}

.badge-done {
    background: #10b981;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
}

.badge-pending {
    background: rgba(100, 116, 139, 0.3);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #64748b;
}

/* History Item */
.history-item {
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-post {
    font-weight: 500;
    color: white;
}

.history-time {
    font-size: 11px;
    color: #64748b;
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding: 8px 16px 20px;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
    text-decoration: none;
    background: none;
    border: none;
}

.nav-item.active {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
}

.nav-icon {
    font-size: 22px;
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-card {
    background: rgba(15, 25, 35, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 24px;
    max-width: 380px;
    width: 100%;
    border: 1px solid rgba(0, 255, 255, 0.5);
    text-align: center;
}

.modal-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.modal-message {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

.modal-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

/* Floating SOS */
.fab-sos {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: linear-gradient(135deg, #ff0040, #dc2626);
    border: none;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    cursor: pointer;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.fab-sos:active {
    transform: scale(0.94);
}

/* Login */
.login-container {
    padding: 40px 24px;
}

.login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.login-logo h1 {
    font-size: 28px;
    background: linear-gradient(135deg, #00ffff, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-logo p {
    color: #64748b;
    margin-top: 8px;
}

/* Utils */
.text-center {
    text-align: center;
}

.text-muted {
    color: #64748b;
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}