

/* 네비게이션 */
.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.logo {
    font-size: 2rem;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-img-sm {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #667eea;
    object-fit: cover;
}

.user-name {
    font-weight: 500;
    color: #333;
}

/* 메인 레이아웃 */
.page {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 20px;
}

.footer {
    background: #f8f9fa;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #dee2e6;
    text-align: center;
    color: #666;
}

/* 메인 컨테이너 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 랜딩 페이지 */
.landing-section {
    text-align: center;
}

/* 기능 카드 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 로그인 후 */
.welcome-section {
    text-align: center;
    padding: 40px 0;
}

.welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.lead {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* 로그인 페이지 */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    background: white;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    text-align: center;
}

.login-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #333;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.google-signin-wrapper {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    min-height: 50px;
}

.loading-container {
    padding: 30px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    font-weight: 500;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.info-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.info-section p {
    color: #666;
    margin: 10px 0;
    font-size: 0.95rem;
}

/* 모달 */
.modal-overlay{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    botton: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    animation: modalfadeIn 0.2s ease-in-out;
}

.modal-content{
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: modalslideUp .3s ease-out;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-close:hover {
    background: #f3f4f6;
    color: #1a1a1a;
}

.required {
    color: #ef4444;
}

/* 페이드인 애니메이션 */
@keyframes modalfadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 슬라이드업 애니메이션 */
@keyframes modalslideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 버튼 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.2rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-outline-danger {
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
}

/* 404 페이지 */
.not-found {
    text-align: center;
    padding: 100px 20px;
}

.not-found h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 20px;
}

.not-found p {
    font-size: 1.2rem;
    color: #666;
}

.not-found a {
    color: #667eea;
    text-decoration: underline;
}

/* 반응형 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 2rem;
    }
}

/* 유틸리티 */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}