/* AWS Cloud Console Style — Light Sidebar + Dropdown Menus */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --aws-navy: #232F3E;
    --aws-navy-dark: #1A2533;
    --aws-navy-hover: #2D3D4F;
    --aws-orange: #FF9900;
    --aws-orange-hover: #E68A00;
    --aws-orange-light: #FFF1D6;
    --aws-bg: #F2F2F2;
    --aws-white: #FFFFFF;
    --aws-border: #D5DBDB;
    --aws-border-light: #EAECEC;
    --aws-text: #16191F;
    --aws-text-secondary: #545B64;
    --aws-text-muted: #8B939C;
    --aws-link: #0066CC;
    --aws-link-hover: #004C99;
    --aws-success: #1D8102;
    --aws-success-bg: #EAF7E4;
    --aws-warning: #FF9900;
    --aws-warning-bg: #FFF1D6;
    --aws-danger: #D13212;
    --aws-danger-bg: #FDE8E3;
    --aws-info: #0066CC;
    --aws-info-bg: #E4F0FA;
    --aws-radius: 2px;
    --aws-shadow: 0 1px 1px rgba(0,0,0,0.04);
    --aws-shadow-dropdown: 0 4px 16px rgba(0,0,0,0.18);
    --aws-font: 'Amazon Ember', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    --sidebar-width: 240px;
    --sidebar-collapsed: 50px;
    --header-height: 48px;
    --sidebar-bg: #F7F8FA;
    --sidebar-border: #DDE1E3;
    --sidebar-text: #545B64;
    --sidebar-text-hover: #16191F;
    --sidebar-hover: #EDEFF0;
    --sidebar-active-bg: #FFF4E5;
    --sidebar-active-border: var(--aws-orange);
    --sidebar-section: #232F3E;
    --sidebar-child-indent: 44px;
}

html { font-size: 14px; }
body {
    font-family: var(--aws-font);
    background: var(--aws-bg);
    color: var(--aws-text);
    line-height: 1.5;
    min-height: 100vh;
    padding-top: var(--header-height);
    padding-left: var(--sidebar-width);
    transition: padding-left 0.15s ease;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--aws-link); text-decoration: none; }
a:hover { color: var(--aws-link-hover); text-decoration: underline; }
body.sidebar-collapsed { padding-left: var(--sidebar-collapsed); }
body.login-page { padding: 0; }

/* === HEADER (dark top bar, stays same) === */
.aw-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1200;
    height: var(--header-height);
    background: var(--aws-navy);
    display: flex;
    align-items: center;
    padding: 0 12px;
    user-select: none;
}
.aw-toggle-btn {
    background: transparent; border: none;
    width: 30px; height: 30px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border-radius: 2px; transition: background 0.1s;
    flex-shrink: 0; color: #AAB7B8;
}
.aw-toggle-btn:hover { color: #fff; }
.aw-toggle-btn svg { width: 16px; height: 16px; }
.aw-header-logo {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    text-decoration: none; flex-shrink: 0;
    transition: background 0.1s; border-radius: 2px;
}
.aw-header-logo:hover { text-decoration: none; }
.aw-header-logo .aw-icon {
    width: 22px; height: 22px;
    background: var(--aws-orange); border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
    color: #232F3E; font-weight: 700; font-size: 11px;
    flex-shrink: 0;
}
.aw-header-logo span {
    font-size: 15px; font-weight: 500; color: #fff;
    letter-spacing: -0.3px;
}
.aw-header-center { flex: 1; min-width: 0; }
.aw-header-right {
    display: flex; align-items: center; gap: 2px; margin-left: auto;
    flex-shrink: 0;
}

/* === USER DROPDOWN === */
.aw-user-dropdown { position: relative; display: flex; align-items: center; }
.aw-user-trigger {
    display: flex; align-items: center; gap: 6px;
    padding: 3px 8px 3px 6px; height: 30px;
    border: none; background: transparent; color: #D5DBDB;
    font-size: 13px; font-family: inherit; cursor: pointer;
    border-radius: 2px; transition: background 0.1s;
}
.aw-user-trigger:hover { background: rgba(255,255,255,0.08); color: #fff; }
.aw-user-trigger .aw-avatar {
    width: 22px; height: 22px; border-radius: 2px;
    background: var(--aws-orange); color: #232F3E;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.aw-user-trigger .aw-user-name { white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.aw-user-trigger .aw-dropdown-arrow { width: 10px; height: 10px; opacity: 0.5; transition: transform 0.15s; flex-shrink: 0; }
.aw-user-trigger[aria-expanded="true"] .aw-dropdown-arrow { transform: rotate(180deg); }
.aw-user-menu {
    position: absolute; top: 100%; right: 0; margin-top: 4px;
    min-width: 190px; background: #fff;
    border: 1px solid #D5DBDB; border-radius: 2px;
    box-shadow: var(--aws-shadow-dropdown);
    display: none; z-index: 1300; padding: 4px 0;
}
.aw-user-menu.show { display: block; }
.aw-user-menu .aw-menu-header {
    padding: 8px 12px 6px; border-bottom: 1px solid #EAECEC;
}
.aw-user-menu .aw-menu-header .aw-menu-name { font-size: 14px; font-weight: 500; color: var(--aws-text); }
.aw-user-menu .aw-menu-header .aw-menu-role { font-size: 12px; color: var(--aws-text-muted); margin-top: 1px; }
.aw-user-menu a, .aw-user-menu button {
    display: flex; align-items: center; gap: 8px;
    width: 100%; padding: 7px 12px;
    border: none; background: none; cursor: pointer;
    font-size: 13px; font-family: inherit; color: var(--aws-text);
    text-decoration: none; transition: background 0.08s;
}
.aw-user-menu a:hover, .aw-user-menu button:hover { background: #F5F5F5; }
.aw-user-menu a svg, .aw-user-menu button svg { width: 14px; height: 14px; color: var(--aws-text-muted); flex-shrink: 0; }
.aw-user-menu .aw-menu-divider { height: 1px; background: #EAECEC; margin: 4px 0; }

/* === SIDEBAR — LIGHT === */
.aw-sidebar {
    position: fixed; top: var(--header-height); left: 0; bottom: 0;
    width: var(--sidebar-width); z-index: 1100;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    transition: width 0.15s ease;
    overflow: hidden;
    display: flex; flex-direction: column;
}
.sidebar-collapsed .aw-sidebar { width: var(--sidebar-collapsed); }

/* Sidebar heading */
.aw-sidebar-heading {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px 8px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--sidebar-border);
}
.aw-sidebar-heading span {
    font-size: 14px; font-weight: 600; color: var(--aws-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aw-sidebar-heading-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--aws-text-secondary); }
.sidebar-collapsed .aw-sidebar-heading { justify-content: center; padding: 14px 0; }
.sidebar-collapsed .aw-sidebar-heading span { display: none; }
.sidebar-collapsed .aw-sidebar-heading-icon { width: 18px; height: 18px; }

/* Sidebar search */
.aw-sidebar-search {
    position: relative; padding: 8px 12px; flex-shrink: 0;
}
.aw-sidebar-search .aw-search-icon {
    position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
    width: 14px; height: 14px; color: var(--aws-text-muted);
    pointer-events: none;
}
.aw-search-input {
    width: 100%; height: 28px; padding: 4px 8px 4px 28px;
    border: 1px solid var(--sidebar-border);
    border-radius: 2px;
    font-size: 12px; font-family: inherit;
    background: #fff; color: var(--aws-text);
    outline: none; transition: border-color 0.1s;
}
.aw-search-input:focus { border-color: var(--aws-orange); }
.aw-search-input::placeholder { color: #AAB7B8; }
.sidebar-collapsed .aw-sidebar-search { display: none; }

.aw-sidebar-nav { flex: 1; overflow-y: auto; padding: 4px 0 8px; }
.aw-sidebar-nav::-webkit-scrollbar { width: 4px; }
.aw-sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.aw-sidebar-nav::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 2px; }

/* Section headers */
.aw-sidebar-section {
    padding: 14px 16px 6px;
    font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--sidebar-section);
}
.sidebar-collapsed .aw-sidebar-section { display: none; }

/* Parent menu items */
.aw-sidebar-nav .aw-menu-parent,
.aw-sidebar-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 16px;
    color: var(--sidebar-text); font-size: 13px;
    white-space: nowrap; transition: all 0.06s;
    text-decoration: none; border-left: 2px solid transparent;
    cursor: pointer;
}
.aw-sidebar-nav a:hover,
.aw-sidebar-nav .aw-menu-parent:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-hover); text-decoration: none;
}
.aw-sidebar-nav a.active {
    background: var(--sidebar-active-bg);
    color: #232F3E;
    border-left-color: var(--sidebar-active-border);
}
.aw-sidebar-nav a .aw-nav-icon,
.aw-sidebar-nav .aw-menu-parent .aw-nav-icon {
    width: 18px; height: 18px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.aw-sidebar-nav a .aw-nav-icon svg,
.aw-sidebar-nav .aw-menu-parent .aw-nav-icon svg { width: 16px; height: 16px; opacity: 0.55; }
.aw-sidebar-nav a:hover .aw-nav-icon svg,
.aw-sidebar-nav .aw-menu-parent:hover .aw-nav-icon svg { opacity: 0.85; }
.aw-sidebar-nav a.active .aw-nav-icon svg { opacity: 1; color: var(--aws-orange); }
.aw-sidebar-nav .aw-nav-label {
    flex: 1; overflow: hidden; text-overflow: ellipsis;
    font-weight: 400;
}

/* Dropdown chevron on parent */
.aw-sidebar-nav .aw-menu-chevron {
    width: 14px; height: 14px; flex-shrink: 0;
    transition: transform 0.12s;
    color: var(--aws-orange); opacity: 1; stroke-width: 3;
}
.aw-sidebar-nav .aw-menu-parent.open .aw-menu-chevron { transform: rotate(90deg); }

/* Child menu container */
.aw-sidebar-nav .aw-menu-children { overflow: hidden; max-height: 0; transition: max-height 0.2s ease; }
.aw-sidebar-nav .aw-menu-children.open { max-height: 500px; }
.aw-sidebar-nav .aw-menu-children a {
    padding-left: var(--sidebar-child-indent);
    font-size: 13px;
}

/* Collapsed sidebar overrides */
.sidebar-collapsed .aw-sidebar-nav a,
.sidebar-collapsed .aw-sidebar-nav .aw-menu-parent {
    padding: 10px 0; justify-content: center; border-left: none;
}
.sidebar-collapsed .aw-sidebar-nav a .aw-nav-label,
.sidebar-collapsed .aw-sidebar-nav .aw-menu-parent .aw-nav-label,
.sidebar-collapsed .aw-sidebar-nav .aw-menu-parent .aw-menu-chevron { display: none; }
.sidebar-collapsed .aw-sidebar-nav a .aw-nav-icon,
.sidebar-collapsed .aw-sidebar-nav .aw-menu-parent .aw-nav-icon { width: 22px; height: 22px; }
.sidebar-collapsed .aw-sidebar-nav a .aw-nav-icon svg,
.sidebar-collapsed .aw-sidebar-nav .aw-menu-parent .aw-nav-icon svg { width: 18px; height: 18px; }
.sidebar-collapsed .aw-sidebar-nav a.active { background: transparent; border-left: none; }
.sidebar-collapsed .aw-sidebar-nav a.active .aw-nav-icon svg { color: var(--aws-orange); opacity: 1; }
.sidebar-collapsed .aw-sidebar-nav .aw-menu-children { display: none; }

/* === PAGE LAYOUT === */
.aw-page {
    padding: 16px 20px 0;
    min-height: calc(100vh - var(--header-height));
    display: flex; flex-direction: column;
}
.aw-page-content { flex: 1; }

/* === PAGE HEADER === */
.aw-page-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}
.aw-page-header h2 { font-size: 20px; font-weight: 400; color: var(--aws-text); margin: 0; }
.aw-page-header-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* === STAT CARDS === */
.aw-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px; margin-bottom: 20px;
}
.aw-stat {
    background: var(--aws-white);
    border: 1px solid var(--aws-border);
    border-radius: var(--aws-radius);
    padding: 14px 16px;
    display: flex; justify-content: space-between; align-items: flex-start;
    transition: border-color 0.1s;
}
.aw-stat:hover { border-color: #B5BDBD; }
.aw-stat-label {
    font-size: 11px; color: var(--aws-text-secondary);
    margin-bottom: 2px; font-weight: 400;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.aw-stat-value { font-size: 24px; font-weight: 400; color: var(--aws-text); line-height: 1.2; }
.aw-stat-icon { opacity: 0.15; flex-shrink: 0; }
.aw-stat-icon svg { width: 30px; height: 30px; color: var(--aws-navy); }

/* === PANELS === */
.aw-panel {
    background: var(--aws-white);
    border: 1px solid var(--aws-border);
    border-radius: var(--aws-radius);
}
.aw-panel-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--aws-border-light);
    display: flex; justify-content: space-between; align-items: center;
    background: var(--aws-white);
}
.aw-panel-header h5 { font-size: 14px; font-weight: 500; color: var(--aws-text); }
.aw-panel-body { padding: 14px; }
.aw-panel + .aw-panel { margin-top: 12px; }

/* === TABLES === */
.aw-table-wrap { overflow-x: auto; }
.aw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.aw-table thead { background: #FAFAFA; }
.aw-table th {
    padding: 8px 10px; text-align: left; font-weight: 500;
    font-size: 12px; color: var(--aws-text-secondary);
    border-bottom: 1px solid var(--aws-border-light);
    white-space: nowrap;
}
.aw-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #F0F0F0;
    vertical-align: middle;
}
.aw-table tbody tr { transition: background 0.06s; }
.aw-table tbody tr:hover { background: #F7F8F8; }
.aw-table tbody tr:last-child td { border-bottom: none; }

/* === FORMS === */
.aw-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}
.aw-form .full-width { grid-column: 1 / -1; }
.aw-form-group { display: flex; flex-direction: column; }
.aw-form-group label { font-size: 12px; font-weight: 400; color: var(--aws-text); margin-bottom: 3px; }
.aw-input, .aw-select, .aw-textarea {
    padding: 5px 8px; height: 30px;
    border: 1px solid var(--aws-border);
    border-radius: var(--aws-radius);
    font-size: 13px; font-family: inherit;
    background: var(--aws-white); color: var(--aws-text);
    transition: border-color 0.1s;
    outline: none; width: 100%;
}
.aw-textarea { height: auto; min-height: 54px; resize: vertical; }
.aw-input:focus, .aw-select:focus, .aw-textarea:focus { border-color: var(--aws-orange); box-shadow: 0 0 0 1px var(--aws-orange); }
.aw-input:hover, .aw-select:hover, .aw-textarea:hover { border-color: #AAB7B8; }
.aw-input::placeholder { color: #AAB7B8; }
.aw-form-actions {
    grid-column: 1 / -1;
    display: flex; gap: 6px; padding-top: 12px;
    border-top: 1px solid var(--aws-border-light);
}

/* === FILE UPLOAD === */
.aw-file-upload {
    border: 2px dashed var(--aws-border);
    border-radius: var(--aws-radius);
    padding: 16px 12px;
    text-align: center; cursor: pointer;
    transition: all 0.1s; background: #FAFAFA;
}
.aw-file-upload:hover { border-color: var(--aws-orange); background: var(--aws-orange-light); }
.aw-file-upload input[type="file"] { display: none; }
.aw-file-upload .aw-upl-icon { margin-bottom: 4px; }
.aw-file-upload .aw-upl-icon svg { width: 20px; height: 20px; color: var(--aws-text-muted); }
.aw-file-upload .aw-upl-text { font-size: 12px; color: var(--aws-text-secondary); }
.aw-preview-img {
    max-width: 200px; max-height: 60px; object-fit: contain;
    border: 1px solid var(--aws-border-light);
    border-radius: var(--aws-radius); padding: 2px; background: #FAFAFA;
}

/* === BUTTONS === */
.aw-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; height: 28px;
    border: 1px solid var(--aws-border);
    border-radius: var(--aws-radius);
    font-size: 13px; font-family: inherit; font-weight: 400;
    cursor: pointer; transition: all 0.1s;
    background: #fff; color: var(--aws-text);
    text-decoration: none; line-height: 1; white-space: nowrap;
}
.aw-btn:hover { background: #F5F5F5; border-color: #C5CBCB; text-decoration: none; color: var(--aws-text); }
.aw-btn-primary { background: var(--aws-navy); color: #fff; border-color: var(--aws-navy); }
.aw-btn-primary:hover { background: #2D3D4F; border-color: #2D3D4F; color: #fff; }
.aw-btn-success { background: var(--aws-success); color: #fff; border-color: var(--aws-success); }
.aw-btn-success:hover { background: #156A02; border-color: #156A02; color: #fff; }
.aw-btn-warning { background: var(--aws-orange); color: #232F3E; border-color: var(--aws-orange); }
.aw-btn-warning:hover { background: var(--aws-orange-hover); border-color: var(--aws-orange-hover); color: #232F3E; }
.aw-btn-danger { background: var(--aws-danger); color: #fff; border-color: var(--aws-danger); }
.aw-btn-danger:hover { background: #B52E12; border-color: #B52E12; color: #fff; }
.aw-btn-sm { padding: 2px 6px; height: 22px; font-size: 12px; gap: 3px; }

/* === BADGES === */
.aw-badge { display: inline-block; padding: 1px 6px; border-radius: 2px; font-size: 11px; font-weight: 500; }
.aw-badge-success { background: var(--aws-success-bg); color: #1D8102; }
.aw-badge-warning { background: var(--aws-warning-bg); color: #B86A00; }
.aw-badge-danger { background: var(--aws-danger-bg); color: var(--aws-danger); }
.aw-badge-info { background: var(--aws-info-bg); color: var(--aws-info); }
.aw-badge-secondary { background: #F0F0F0; color: var(--aws-text-secondary); }

/* === ALERTS === */
.aw-msg { padding: 8px 12px; border-radius: var(--aws-radius); margin-bottom: 12px; font-size: 13px; border-left: 3px solid; }
.aw-msg-success { background: var(--aws-success-bg); border-left-color: var(--aws-success); color: #1D8102; }
.aw-msg-error { background: var(--aws-danger-bg); border-left-color: var(--aws-danger); color: #B52E12; }
.aw-msg-info { background: var(--aws-info-bg); border-left-color: var(--aws-info); color: #004C99; }
.aw-msg-warning { background: var(--aws-warning-bg); border-left-color: var(--aws-warning); color: #B86A00; }

/* === LOGIN PAGE (AWS Console Sign-In style) === */
.aw-login-wrap { display: flex; flex-direction:column; justify-content: center; align-items: center; min-height: 100vh; background: #F2F2F2; padding: 20px; }
.aw-login-logo { display:flex; align-items:center; justify-content:center; width:44px; height:44px; margin-bottom:18px; background:var(--aws-orange); border-radius:50%; color:#fff; font-size:24px; font-weight:700; font-family:var(--aws-font); flex-shrink:0; }
.aw-login-box { background: #fff; border:1px solid var(--aws-border); border-radius: 2px; box-shadow: var(--aws-shadow); width: 100%; max-width: 360px; padding: 28px 24px; }
.aw-login-box h2 { text-align: center; font-weight: 600; font-size: 18px; margin-bottom: 2px; color: #232F3E; }
.aw-login-box .aw-subtitle { text-align: center; color: var(--aws-text-secondary); font-size: 12px; margin-bottom: 20px; }
.aw-login-box .aw-form { grid-template-columns: 1fr; gap:14px; }
.aw-login-box .aw-btn { width: 100%; justify-content: center; height: 36px; background:var(--aws-orange); border-color:var(--aws-orange); color:#fff; font-weight:600; }
.aw-login-box .aw-btn:hover { background:var(--aws-orange-hover); border-color:var(--aws-orange-hover); }
.aw-login-box .aw-msg { margin-bottom: 12px; }
.aw-checkbox-row { display:flex !important; align-items:center; gap:8px; flex-direction:row !important; }
.aw-checkbox-row label { margin-bottom:0 !important; cursor:pointer; font-size:13px; user-select:none; }
.aw-checkbox { width:16px; height:16px; accent-color:var(--aws-orange); cursor:pointer; }

/* Input with icon */
.aw-input-icon { position:relative; display:flex; align-items:center; }
.aw-input-icon .aw-input { padding-left:34px; }
.aw-input-icon-svg { position:absolute; left:9px; width:16px; height:16px; color:var(--aws-text-muted); pointer-events:none; flex-shrink:0; }

/* Icons */
.aw-btn-icon { width:16px; height:16px; flex-shrink:0; }
.aw-icon { width:14px; height:14px; display:block; }

/* === FOOTER === */
.aw-footer { height: 40px; margin: 0 -20px; border-top: 1px solid var(--aws-border-light); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--aws-text-muted); background: #fff; padding: 0 20px; box-sizing: border-box; flex-shrink: 0; }
.aw-footer a { color: var(--aws-text-muted); }
.aw-footer a:hover { color: var(--aws-link); }

/* === GRID === */
.aw-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 900px) { .aw-grid-2 { grid-template-columns: 1fr; } }

/* === UTILITY === */
.aw-text-muted { color: var(--aws-text-secondary); }
.aw-mb-0 { margin-bottom: 0; }
.aw-mt-16 { margin-top: 16px; }
.aw-mb-16 { margin-bottom: 16px; }
.aw-text-right { text-align: right; }
.aw-text-center { text-align: center; }
.aw-gap-8 { gap: 8px; }
.aw-d-flex { display: flex; }
.aw-align-center { align-items: center; }
.aw-justify-between { justify-content: space-between; }
.aw-flex-wrap { flex-wrap: wrap; }
.aw-w-full { width: 100%; }

/* Modals */
.aw-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.aw-overlay.show { display: flex; }
.aw-modal {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.aw-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e9edf4;
}
.aw-modal-header h5 { margin:0; font-size:15px; }
.aw-modal-close {
    background: none; border: none; font-size:22px; line-height:1; cursor:pointer; color:#6b7280; padding:0 4px;
}
.aw-modal-close:hover { color:#111; }
.aw-modal-body { padding: 20px; }
.aw-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #e9edf4;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Pagination */
.aw-pagination { display:flex; justify-content:center; padding:14px 0; }
.aw-pagination ul { display:flex; gap:4px; list-style:none; margin:0; padding:0; }
.aw-pagination li a {
    display:inline-flex; align-items:center; justify-content:center;
    min-width:32px; height:32px; padding:0 8px;
    border:1px solid #d5dbe8; border-radius:4px;
    font-size:13px; text-decoration:none; color:#3b4a5e;
    background:#fff;
}
.aw-pagination li a:hover { background:#f0f2f5; border-color:#bcc3d0; }
.aw-pagination li.active a {
    background: #ff9900; border-color: #ff9900; color:#fff; font-weight:600;
}
.aw-pagination-info {
    text-align:center; font-size:12px; color:#6b7280; padding:4px 0 8px;
}

/* Modal form overrides */
.aw-modal .aw-form { grid-template-columns: 1fr; }

/* Sort links in tables */
.aw-table th a { color:inherit; text-decoration:none; display:inline-flex; align-items:center; gap:4px; }
.aw-table th a:hover { color:#ff9900; }

/* Sidebar collapsed hide user name */
.sidebar-collapsed .aw-user-name { display:none; }

@media (max-width: 768px) {
    :root { --sidebar-width: 0px; --sidebar-collapsed: 0px; }
    body { padding-left: 0; }
    .aw-sidebar { display: none; }
    .aw-page { padding: 12px 14px; }
    .aw-stats { grid-template-columns: 1fr; }
    .aw-form { grid-template-columns: 1fr; }
}

/* AWS Style Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #f2f3f3; }
::-webkit-scrollbar-thumb { background: #aab7b8; border-radius: 4px; border: 2px solid #f2f3f3; }
::-webkit-scrollbar-thumb:hover { background: #879596; }
::-webkit-scrollbar-corner { background: #f2f3f3; }

* { scrollbar-width: thin; scrollbar-color: #aab7b8 #f2f3f3; }

/* Form row layout */
.aw-form-row { display: flex; gap: 12px; }
.aw-form-row .aw-form-group { flex: 1; }
