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

:root {
    --primary: #3b82f6;      /* Blue 500 */
    --primary-dark: #2563eb; /* Blue 600 */
    --dark: #1e293b;         /* Slate 800 */
    --dark-hover: #0f172a;   /* Slate 900 */
    --bg-color: #f8fafc;     /* Slate 50 */
    --card-bg: #ffffff;
    --text-main: #334155;    /* Slate 700 */
    --text-muted: #64748b;   /* Slate 500 */
    --border: #e2e8f0;       /* Slate 200 */
    --success: #10b981;      /* Emerald 500 */
    --info: #0ea5e9;         /* Sky 500 */
    --danger: #ef4444;       /* Red 500 */
}

body { margin: 0; font-family: 'Inter', 'Noto Sans JP', sans-serif; background: var(--bg-color); color: var(--text-main); font-size: 15px; }
* { box-sizing: border-box; }
a { text-decoration: none; color: var(--primary); transition: 0.2s; }
a:hover { color: var(--primary-dark); }

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.font-bold { font-weight: 600; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-2 { gap: 10px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.col-md-5 { width: 41.66%; padding: 0 10px; }
.col-md-7 { width: 58.33%; padding: 0 10px; }
.col-md-6 { width: 50%; padding: 0 10px; }
.col-md-8 { width: 66.66%; padding: 0 10px; }
.col-md-4 { width: 33.33%; padding: 0 10px; }

/* Layout */
.app-container { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: var(--dark); color: #f8fafc; display: flex; flex-direction: column; flex-shrink:0; }
.sidebar-brand { padding: 25px 20px; font-size: 1.2rem; font-weight: 700; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,0.05); color:white; }
.sidebar-brand i { color: var(--primary); margin-right: 8px; }
.sidebar-nav { padding: 20px 0; display: flex; flex-direction: column; }
.sidebar-nav a { padding: 12px 25px; color: #cbd5e1; display: flex; align-items: center; gap: 12px; font-weight: 500; }
.sidebar-nav a:hover { background: rgba(255,255,255,0.05); color: white; border-left: 3px solid var(--primary); padding-left: 22px; }
.main-content { flex: 1; padding: 40px; overflow-y: auto; }
.page-header { margin-bottom: 30px; }
.page-title { margin: 0 0 5px 0; font-size: 24px; color: var(--dark); }

/* Cards */
.card { background: var(--card-bg); border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03); margin-bottom: 24px; border: 1px solid var(--border); overflow: hidden; }
.card-header { padding: 18px 24px; font-size: 1.1rem; font-weight: 600; border-bottom: 1px solid var(--border); background: #fcfcfc; }
.card-body { padding: 24px; }
.step-num { background: var(--primary); color: white; border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; margin-right: 8px; }

/* Forms */
form { padding: 24px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-size: 0.9rem; font-weight: 600; color: var(--text-main); }
.form-control { width: 100%; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; color: var(--text-main); transition: 0.2s; font-family:inherit; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
.form-control-lg { padding: 14px 16px; font-size: 1.1rem; }
.input-icon-wrap { position: relative; }
.input-icon-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.input-icon-wrap input { padding-left: 40px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 6px; border: none; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: 0.2s; font-family:inherit; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-dark { background: var(--dark); color: white; }
.btn-dark:hover { background: var(--dark-hover); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn-lg { padding: 14px 24px; font-size: 1.1rem; }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 16px 24px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { background: #f8fafc; font-weight: 600; color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.table tbody tr:hover { background: #f1f5f9; }

/* Badges */
.badge { padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; display: inline-block; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-info { background: #e0f2fe; color: #0369a1; }

/* Login Page Specific */
.login-body { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%); }
.login-wrapper { width: 100%; max-width: 400px; padding: 20px; }
.login-brand { text-align: center; font-size: 28px; font-weight: 800; color: var(--primary-dark); margin-bottom: 30px; letter-spacing: 1px; }
.login-card { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); border: none; padding: 40px 30px; border-radius:16px; }
.login-card form { padding: 0; }