/* ========================================
   공통 CSS 모듈 - 전체 애플리케이션 공통 스타일
   ======================================== */

/* ========================================
   1. 기본 리셋 및 폰트 설정
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #bdc2e8 0%, #e6dee9 100%);
    padding-top: 75px;
    min-height: 100vh;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   2. 공통 배경 효과
   ======================================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, rgba(189, 194, 232, 0.1) 0%, transparent 50%),
        linear-gradient(-45deg, rgba(230, 222, 233, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, rgba(90, 103, 216, 0.05) 0%, transparent 50%),
        linear-gradient(-45deg, rgba(76, 81, 191, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* ========================================
   3. 공통 카드 스타일
   ======================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(90, 103, 216, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(90, 103, 216, 0.3);
}

/* ========================================
   4. 공통 버튼 스타일

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
 ======================================== */


/* ========================================
   5. 공통 입력 필드 스타일
   ======================================== */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #4a5568;
    font-size: 1.1rem;
    z-index: 2;
    transition: color 0.3s ease;
}

.input-wrapper:focus-within .input-icon {
    color: #5a67d8 !important;
}

.input-wrapper input,
.form-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    transition: all 0.3s ease;
}

.input-wrapper input:focus,
.form-input:focus {
    outline: none;
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.1);
    background: white;
}

.input-wrapper input:hover,
.form-input:hover {
    border-color: #5a67d8;
    background: white;
}

.input-wrapper input::placeholder,
.form-input::placeholder {
    color: #9ca3af;
}

/* ========================================
   6. 공통 버튼 스타일

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn-primary {
    background: linear-gradient(135deg, #5a67d8, #4c51bf);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4c51bf, #5a67d8);
    box-shadow: 0 4px 12px rgba(90, 103, 216, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e1e5e9;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

.btn-outline {
    background: transparent;
    color: #5a67d8;
    border: 2px solid #5a67d8;
}

.btn-outline:hover {
    background: #5a67d8;
    color: white;
}

.btn-danger {
    background: #e53e3e;
    color: white;
    border: 1px solid #c53030;
}

.btn-danger:hover {
    background: #c53030;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
  ======================================== */

/* 모달 버튼 스타일 */
.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #5a67d8, #4c51bf);
    color: white;
}

.modal-btn-primary:hover {
    background: linear-gradient(135deg, #4c51bf, #5a67d8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 103, 216, 0.3);
}

/* 체크 버튼 스타일 (인증용 작은 버튼) */
.check-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 12px;
    background: linear-gradient(135deg, #5a67d8, #4c51bf);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.check-btn:hover {
    background: linear-gradient(135deg, #4c51bf, #5a67d8);
    transform: translateY(-50%) translateY(-1px);
    box-shadow: 0 2px 8px rgba(90, 103, 216, 0.3);
}

/* ========================================
   7. 공통 체크박스 스타일
   ======================================== */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #5a67d8;
}

.checkbox-wrapper label {
    cursor: pointer;
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-wrapper label a {
    color: #5a67d8;
    text-decoration: none;
}

.checkbox-wrapper label a:hover {
    text-decoration: underline;
}

/* ========================================
   8. 공통 헤더 스타일
   ======================================== */
.main-header {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(90, 103, 216, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header h2 {
    color: #4a5568;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

/* ========================================
   7. 공통 섹션 스타일
   ======================================== */
.section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(90, 103, 216, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(90, 103, 216, 0.1);
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.section-header h3 i {
    color: #5a67d8;
}

/* ========================================
   8. 공통 폼 그룹 스타일
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-label i {
    color: #5a67d8;
}

.required {
    color: #e53e3e;
    font-weight: bold;
}

/* ========================================
   9. 공통 테이블 스타일
   ======================================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.data-table th {
    background: #f7fafc;
    color: #4a5568;
    font-weight: 600;
    padding: 15px 12px;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 2px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

.data-table th:last-child {
    border-right: none;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #4a5568;
}

.data-table td:last-child {
    border-right: none;
}

.data-table tr:hover {
    background: rgba(90, 103, 216, 0.05);
}

/* ========================================
   10. 공통 모달 스타일
   ======================================== */
/* .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal[style*="display: block"] {
    display: flex !important;
}

.modal-content {
    background: white;
    margin: 0;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

/* 모달 사이즈별 스타일 */
.modal-content.modal-sm {
    max-width: 400px;
    max-height: 300px;
    padding: 20px;
    overflow-y: auto;
}

.modal-content.modal-md {
    max-width: 500px;
    max-height: 400px;
    padding: 30px;
}

.modal-content.modal-lg {
    max-width: 700px;
    max-height: 600px;
    padding: 40px;
}

.modal-content.modal-xl {
    max-width: 900px;
    max-height: 700px;
    padding: 40px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.modal-header h3 {
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

/* 다크 모달 헤더 스타일 */
.modal-dark .modal-header {
    background: linear-gradient(135deg, #5a67d8, #4c51bf);
    color: white;
    padding: 20px 30px;
}

.modal-dark .modal-header h3 {
    color: white;
}

.modal-dark .modal-close {
    color: white;
}

.modal-dark .modal-close:hover {
    color: rgba(255, 255, 255, 0.8);
}

.close {
    color: #a0aec0;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #4a5568;
} */

/* ========================================
   11. 공통 애니메이션
   ======================================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   12. 공통 유틸리티 클래스
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* ========================================
   13. 공통 색상 변수 (CSS Custom Properties)
   ======================================== */
:root {
    --primary-color: #5a67d8;
    --primary-dark: #4c51bf;
    --secondary-color: #f59e0b;
    --success-color: #f59e0b;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --text-color: #4a5568;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --background-glass: rgba(255, 255, 255, 0.25);
    --shadow-primary: rgba(90, 103, 216, 0.2);
    --shadow-success: rgba(245, 158, 11, 0.2);
    --shadow-danger: rgba(220, 53, 69, 0.2);
}

/* ========================================
   14. 공통 레이아웃 컨테이너 스타일
   ======================================== */

/* 메인 컨테이너 */
.mani-container {
    display: flex;
    min-height: 80vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #bdc2e8 0%, #e6dee9 100%);
}


/* 메인 콘텐츠 스타일 */
.main-content {
    flex: 1;
    /*margin-left: 280px;*/
    padding: 20px;
    min-height: 90vh;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

/* 기본 페이지 컨테이너 */
.page-container {
    margin: 0 auto;
    padding: 20px;
}

/* 기본 섹션 스타일 */
.content-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(90, 103, 216, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 섹션 헤더 */
.section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(90, 103, 216, 0.1);
}

.section-header h3 {
    margin-bottom: 5px;
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    color: #5a67d8;
}

.section-header p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

/* 2열 그리드 레이아웃 */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}


/* Bootstrap flex 컨테이너에서 자식이 높이 계산되도록 */
.container-fluid, .row, .col-12 { min-height: 0; }

.grid-section, .grid-wrap { min-height: 0; }   /* flex 자식이 키를 제대로 받을 수 있게 */
.grid-wrap, .grid-user { height: 98%; }            /* 그리드 컨테이너 100% */
.bg-cell-yellow{ background-color:yellow;}
