/* 지역의용소방대 관리시스템 - 목업 스타일시트 */

:root {
    --primary-red: #E53935;
    --primary-orange: #FF6F00;
    --dark-gray: #424242;
    --medium-gray: #757575;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --success: #4CAF50;
    --warning: #FFC107;
    --danger: #F44336;
    --info: #2196F3;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.16);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.19);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
}

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

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    line-height: 1.6;
    min-height: 100vh;
}

/* 모바일 컨테이너 - Galaxy S24 Ultra 기준 */
.mobile-container {
    max-width: 412px;  /* Galaxy S24 Ultra viewport width */
    margin: 0 auto;
    min-height: 100vh;
    background: white;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
}

/* 헤더 */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 412px;
    margin: 0 auto;
    height: 56px;
    background: white;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
}

.header-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-red);
}

.header-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: background 0.3s;
}

.btn-icon:hover {
    background: var(--light-gray);
}

.badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* 메인 컨텐츠 */
.main-content {
    padding-top: 56px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.content {
    padding: 16px;
}

/* 하단 네비게이션 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 412px;
    margin: 0 auto;
    height: 60px;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
}

.nav-item {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 11px;
}

.nav-item.active,
.nav-item:hover {
    color: var(--primary-red);
}

/* 로그인 화면 */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 100%);
}

.login-box {
    width: 100%;
    max-width: 360px;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.logo {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: var(--radius-full);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.logo-section h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.logo-section h2 {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
}

/* OAuth 버튼 */
.btn-oauth {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 12px;
}

.btn-oauth:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-google {
    background: white;
    color: var(--dark-gray);
}

.btn-kakao {
    background: #FEE500;
    color: #000000;
}

/* 카드 */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    overflow: hidden;
}

.card-header {
    padding: 16px;
    border-bottom: 1px solid #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 16px;
}

/* 버튼 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-red);
    color: white;
}

.btn-primary:hover {
    background: #D32F2F;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--medium-gray);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: var(--dark-gray);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

/* 리스트 아이템 */
.list-item {
    padding: 16px;
    border-bottom: 1px solid #E0E0E0;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.list-item:hover {
    background: var(--light-gray);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--primary-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.list-item-content {
    flex: 1;
}

.list-item-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.list-item-subtitle {
    font-size: 13px;
    color: var(--medium-gray);
}

/* 폼 요소 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-gray);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E0E0E0;
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* 행사 카드 */
.event-card {
    padding: 16px;
    border-left: 4px solid var(--primary-red);
}

.event-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-red);
    font-weight: 500;
    margin-bottom: 8px;
}

.event-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.event-info {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--medium-gray);
    margin-bottom: 12px;
}

.event-participants {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #E0E0E0;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary-red);
    transition: width 0.3s;
}

/* 탭 */
.tabs {
    display: flex;
    border-bottom: 2px solid #E0E0E0;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    color: var(--medium-gray);
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.tab.active {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

/* 사이드바 */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: var(--shadow-lg);
    transition: left 0.3s;
    z-index: 2000;
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
}

.sidebar-overlay.active {
    display: block;
}

/* 알림 */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid var(--success);
}

.alert-warning {
    background: #FFF3E0;
    color: #F57C00;
    border-left: 4px solid var(--warning);
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border-left: 4px solid var(--danger);
}

/* 조직도 */
.org-chart {
    text-align: center;
    padding: 20px;
}

.org-level {
    margin-bottom: 30px;
}

.org-box {
    display: inline-block;
    padding: 12px 20px;
    background: white;
    border: 2px solid var(--primary-red);
    border-radius: var(--radius-md);
    margin: 0 10px;
    box-shadow: var(--shadow-sm);
}

.org-box.leader {
    background: var(--primary-red);
    color: white;
}

.org-line {
    width: 2px;
    height: 30px;
    background: var(--primary-red);
    margin: 0 auto;
}

/* 통계 카드 */
.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-red);
}

.stat-label {
    font-size: 14px;
    color: var(--medium-gray);
    margin-top: 4px;
}

/* 모바일 프레임 */
.mobile-frame {
    width: 375px;
    height: 812px;
    margin: 20px auto;
    border: 16px solid #333;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.3);
}

.mobile-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}