/* assets/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #2c3e50;
    /* Deep Navy - Trust */
    --secondary-color: #27ae60;
    /* Green - Safety */
    --accent-color: #e67e22;
    /* Orange - Alert/Action */
    --bg-color: #f4f6f9;
    /* Light Gray Background */
    /* Light Gray Background */
    --sidebar-width: 200px;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --header-height: 60px;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    color: #333;
    overflow-x: hidden;
}

/* Layout */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1a252f 0%, #2c3e50 100%);
    color: #fff;
    flex-shrink: 0;
    position: fixed;
    height: 100%;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    overflow: hidden;
}

.sidebar-header h3,
.sidebar-header p {
    margin-left: 0;
}

.sidebar-header i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 1.2rem;
    min-width: auto;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.nav-header {
    padding-left: 25px !important;
    opacity: 1;
    height: auto;
    overflow: hidden;
    transition: all 0.2s;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 4px solid transparent;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-menu a span {
    opacity: 1;
    transition: opacity 0.2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-left-color: var(--secondary-color);
}

.sidebar-menu a i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

/* Header */
.top-header {
    height: var(--header-height);
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.page-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
}

.stat-info h5 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

.stat-info h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Table Styles */
.custom-table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 20px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.table tbody tr:hover {
    background-color: #f1f3f5;
    cursor: pointer;
}

/* Badges & Buttons */
.badge {
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: #1a252f;
    transform: translateY(-2px);
}

.btn-pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

/* Proposal Section specific */
.proposal-slide {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid #ddd;
    background: #fff;
}