/* public/assets/css/style.css — Arco Impact */
/* Tema & komponen mengikuti arco_project (orange #ff7a00) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #ff7a00;
    --primary-light: #ff9838;
    --primary-dark: #e66e00;
    --bg-color: #fcfcfc;
    --sidebar-bg: #ffffff;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --white: #FFFFFF;
    --danger: #e74c3c;
    --border-radius: 16px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --input-focus: rgba(255, 122, 0, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
}

/* ─── Login Page ─── */
.login-body {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.login-body::before, .login-body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.login-body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,122,0,0.15) 0%, rgba(255,255,255,0) 70%);
    top: -200px;
    left: -200px;
}

.login-body::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,122,0,0.1) 0%, rgba(255,255,255,0) 70%);
    bottom: -150px;
    right: -150px;
}

.login-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--box-shadow);
    z-index: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 15px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px var(--input-focus);
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #f87171;
}

.alert-success {
    background-color: #dcfce7;
    color: #16a34a;
    border: 1px solid #4ade80;
}

/* ─── Sidebar ─── */
.sidebar { width: 260px; background: var(--white); border-right: 1px solid #f3f4f6; padding: 25px 20px; display: flex; flex-direction: column; min-height: 100vh; flex-shrink: 0; }
.brand-area { display: flex; align-items: center; gap: 15px; margin-bottom: 40px; }
.brand-logo { width: 40px; height: 40px; }
.brand-text h2 { font-size: 18px; font-weight: 700; color: #111; margin: 0; }
.brand-text span { font-size: 12px; color: var(--primary-color); font-weight: 600; }

.sidebar-menu { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.sidebar-menu a { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 12px; text-decoration: none; color: #4b5563; font-weight: 500; font-size: 15px; transition: 0.2s; }
.sidebar-menu a .menu-left { display: flex; align-items: center; gap: 12px; }
.sidebar-menu a:hover { background: #f9fafb; color: #111; }
.sidebar-menu a.active { background: var(--primary-color); color: #fff; box-shadow: 0 4px 12px rgba(255,122,0,0.2); }
.sidebar-menu a.active svg { stroke: #fff; }

.submenu { list-style: none; padding-left: 36px; display: flex; flex-direction: column; gap: 2px; margin-top: 5px; }
.submenu a { padding: 8px 12px; font-size: 13.5px; color: #6b7280; border-radius: 8px; background: transparent !important; box-shadow: none !important; margin-bottom: 2px; }
.submenu a:hover { color: var(--primary-color); background: #fff7ed !important; }

.sidebar-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid #f3f4f6; }
.sidebar-footer a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; text-decoration: none; color: #6b7280; font-size: 14px; font-weight: 500; transition: 0.2s; }
.sidebar-footer a:hover { background: #fee2e2; color: #dc2626; }

/* ─── Main Content ─── */
.main-content { flex: 1; padding: 40px; background: #fffcfb; overflow-y: auto; min-height: 100vh; }

.top-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 25px; }
.top-header h1 { font-size: 28px; font-weight: 700; color: #111; margin: 0 0 8px 0; }
.top-header p { font-size: 15px; color: var(--text-muted); margin: 0; }

/* ─── Tables ─── */
.table-responsive { width: 100%; background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); border: 1px solid #f3f4f6; overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th { background: #fafafa; padding: 16px; text-align: left; font-weight: 600; font-size: 13px; color: #4b5563; border-bottom: 1px solid #f3f4f6; white-space: nowrap; }
td { padding: 16px; font-size: 14px; color: #1f2937; border-bottom: 1px solid #f3f4f6; vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f9fafb; }

.status-badge { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-block; }
.status-baseline { background: #e0f2fe; color: #2563eb; }
.status-monitoring { background: #fef3c7; color: #d97706; }
.status-endline { background: #dcfce7; color: #16a34a; }
.status-selesai { background: #f3f4f6; color: #4b5563; }

/* ─── Modal ─── */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); backdrop-filter: blur(4px); justify-content: center; align-items: center; }
.modal.active { display: flex; }
.modal-content { background: #fff; width: 680px; max-width: 95%; max-height: 90vh; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); display: flex; flex-direction: column; overflow: hidden; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; border-bottom: 1px solid #f3f4f6; }
.modal-header h3 { font-size: 18px; font-weight: 600; color: #111; }
.modal-close { background: none; border: none; font-size: 24px; color: #6b7280; cursor: pointer; padding: 4px; }
.modal-body { padding: 30px; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; padding: 20px 30px; border-top: 1px solid #f3f4f6; background: #fff; gap: 12px; }

/* ─── Buttons (non-login) ─── */
.btn { border-radius: 8px; padding: 10px 20px; font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: 0.2s; border: none; }
.btn-outline { background: #fff; border: 1px solid var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background: #fff7ed; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }

/* ─── Toolbar ─── */
.toolbar { margin-bottom: 25px; }
.search-row { display: flex; gap: 15px; margin-bottom: 20px; }
.search-input-wrapper { flex: 1; position: relative; }
.search-input-wrapper input { width: 100%; padding: 12px 15px 12px 40px; border: 1px solid #e5e7eb; border-radius: 8px; outline: none; font-size: 14px; }
.search-input-wrapper svg { position: absolute; left: 14px; top: 12px; color: #9ca3af; }
.filters-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
.filter-select { padding: 8px 30px 8px 12px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: #374151; font-size: 13px; font-weight: 500; outline: none; 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='%236b7280'%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 10px center; background-size: 16px; cursor: pointer; }

/* ─── Form Grid ─── */
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-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='%236b7280'%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 12px center; background-size: 16px; }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ─── Cards ─── */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-3px); }
