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

:root {
    --bg-main: #FFFFFF;
    --bg-sidebar: #F7F7F5;
    --text-main: #37352F;
    --text-meta: rgba(55, 53, 47, 0.65);
    --border-light: #EDEDED;
    --accent-blue: #2383E2;
    --accent-gray: #DEE1E3;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --radius: 4px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================ */
/* NOTION-STYLE FORM                                            */
/* ============================================================ */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 40px;
}

.form-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.section-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-meta);
    margin-top: 40px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
}

.form-group {
    margin-bottom: 25px;
}

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

input[type="text"], input[type="number"], input[type="date"], input[type="password"], select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    transition: background 0.1s ease-in;
}

input:focus, select:focus {
    outline: none;
    background: #fdfdfd;
    border-color: #aaa;
}

.platforms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* ============================================================ */
/* NOTION-STYLE DASHBOARD                                       */
/* ============================================================ */
.dashboard-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
aside.list-panel {
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    padding: 20px 12px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px;
    margin-bottom: 20px;
}

.sidebar-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.sidebar-title {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Menu (Tabs) */
.main-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 30px;
}

.tab-btn {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border: none;
    background: transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-main);
    font-weight: 500;
    text-align: left;
    transition: background 0.1s ease;
}

.tab-btn:hover {
    background: rgba(55, 53, 47, 0.08);
}

.tab-btn.active {
    background: rgba(55, 53, 47, 0.08);
}

/* List Items */
#request-list {
    flex: 1;
    overflow-y: auto;
    padding-top: 10px;
}

.request-item {
    margin: 1px 0;
    padding: 8px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.1s ease;
}

.request-item:hover {
    background: rgba(55, 53, 47, 0.08);
}

.request-item.active {
    background: rgba(55, 53, 47, 0.12);
}

/* Main Content Area */
main.detail-panel {
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

header {
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumbs {
    font-size: 14px;
    color: var(--text-meta);
}

.breadcrumbs span {
    color: var(--text-main);
    margin: 0 4px;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

#logout-btn {
    font-size: 12px;
    color: var(--text-meta);
    border: none;
    background: transparent;
    cursor: pointer;
}

#logout-btn:hover {
    color: var(--text-main);
}

/* Detail Content (Side Peek Style) */
#detail-content {
    padding: 40px 60px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.page-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Notion Properties Grid */
.props-grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 8px;
    margin-bottom: 40px;
}

.prop-label {
    color: var(--text-meta);
    font-size: 14px;
}

.prop-value {
    font-size: 14px;
    font-weight: 400;
}

/* Criteria Table */
.criteria-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.criteria-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-meta);
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.criteria-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.criteria-num-input {
    background: transparent;
    border: 1px solid transparent;
    padding: 4px 8px;
    width: 60px;
    text-align: center;
}

.criteria-num-input:hover {
    background: rgba(55, 53, 47, 0.04);
}

.criteria-num-input:focus {
    background: white;
    border-color: var(--border-light);
}

/* Utility */
.hidden { display: none !important; }

/* Buttons */
.btn-primary {
    background: var(--accent-blue);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.btn-danger {
    color: #EB5757;
    background: transparent;
    border: none;
    font-weight: 500;
    cursor: pointer;
    margin-right: 20px;
}

.btn-danger:hover {
    background: rgba(235, 87, 87, 0.1);
    border-radius: var(--radius);
}

/* Success Overlay */
#success-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-main);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000;
    text-align: center;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Login */
#login-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-sidebar);
    display: flex; align-items: center; justify-content: center;
    z-index: 20000;
}
.login-box {
    width: 320px;
    padding: 40px;
    text-align: center;
}
