/* Common Styles */
:root {
    --primary-color: #1a5490;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Loading Spinner */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.loading.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

/* Footer Action Buttons */
.footer-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.footer-btn .btn-icon {
    font-size: 1.2em;
}

/* Project Info */
.footer-project-info {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.project-header {
    margin-bottom: 15px;
}

.project-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.project-manager {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
}

.project-description {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    line-height: 1.6;
}

.project-address {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* Disclaimers */
.footer-disclaimers {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center; /* 가운데 정렬 추가 */
}

.disclaimer-text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    margin-bottom: 5px;
    text-align: center; /* 가운데 정렬 추가 */
}

.disclaimer-text:last-child {
    margin-bottom: 0;
}

/* Companies */
.footer-companies {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.company-item {
    text-align: center;
}

.company-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 5px;
}

.company-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
}

/* Additional Note */
.footer-note {
    text-align: center;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin: 20px 0;
}

.footer-note p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* Copyright */
.footer-copyright {
    text-align: center;
    padding-top: 15px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copyright p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }
    
    .footer-actions {
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .footer-btn {
        width: 180px;
        justify-content: center;
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .footer-companies {
        flex-direction: column;
        gap: 15px;
        margin: 15px 0;
        padding: 15px 0;
    }
    
    .project-name {
        font-size: 1rem;
    }
    
    .project-manager,
    .project-description,
    .project-address {
        font-size: 0.85rem;
    }
    
    .disclaimer-text {
        font-size: 0.75rem;
    }
    
    .footer-note p,
    .footer-copyright p {
        font-size: 0.8rem;
    }
}