:root {
    --primary: #0F9D58;
    --primary-hover: #0B8043;
    --bg-color: #F0F2F5;
    --surface: #FFFFFF;
    --border: #DADCE0;
    --text-main: #202124;
    --text-sec: #5F6368;
}

* {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden { display: none !important; }
.w-full { width: 100%; }

/* --- NAVBAR --- */
.navbar-app {
    background: var(--surface);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.nav-menu { display: flex; gap: 5px; }

.nav-item-app {
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 500;
    color: #5F6368;
    transition: 0.2s;
    text-decoration: none;
}

.nav-item-app:hover { background-color: #f1f3f4; }
.nav-item-app.active { background-color: #e6f4ea; color: var(--primary); font-weight: 600; }

/* --- LAYOUTS --- */
.main-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.split-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    align-items: start;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* --- CARDS & FORMS --- */
.card {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.input-group { margin-bottom: 12px; }

.input-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #5F6368;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
    background: #fff;
}

.input-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 157, 88, 0.1);
}

.input-control:disabled {
    background-color: #f8f9fa;
    color: #333;
    cursor: default;
    border-color: #e0e0e0;
    font-weight: 500;
}

/* --- BUTTONS --- */
.btn-app {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}

.btn-app-primary { background: var(--primary); color: white; }
.btn-app-primary:hover { background: var(--primary-hover); }
.btn-app-secondary { background: #f1f3f4; color: #202124; }
.btn-app-danger { background: #d93025; color: white; }
.btn-app-danger:hover { background: #b3261e; }

/* --- TABLE --- */
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.custom-table th {
    text-align: left;
    padding: 12px;
    color: #5F6368;
    font-weight: 600;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.custom-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

/* --- AUTOCOMPLETE --- */
.suggestions-box {
    position: absolute;
    background: white;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
    margin-top: 2px;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}

.suggestion-item:hover { background: #f5f5f5; }

/* --- LOGIN --- */
.login-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

/* --- BADGE --- */
.badge-depo {
    background: #e3f2fd;
    color: #1565c0;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-status {
    color: #0F9D58;
    font-weight: 600;
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Upload area */
.upload-area {
    border: 2px dashed #ddd;
    padding: 40px;
    cursor: pointer;
    background: #fafafa;
    text-align: center;
    border-radius: 8px;
    transition: 0.2s;
}

.upload-area:hover {
    border-color: var(--primary);
    background: #f0faf4;
}