/* 반응형 스타일 */

/* 반응형 개선 */
@media (max-width: 768px) {
    .meeting-card .card-body {
        padding: 1rem;
    }
    
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch !important;
    }
    
    .d-flex.align-items-center.gap-3 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
}

/* 모바일: 네비게이션 사용자 영역 우측 정렬 유지 */
@media (max-width: 768px) {
    .nav-user-area {
        width: 100%;
    }
}

/* 모바일: 사용자 대시보드 탭 4개를 한 줄 그리드로 */
@media (max-width: 576px) {
    #dashboardTabs {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }
    #dashboardTabs .nav-item {
        width: 100%;
    }
    #dashboardTabs .nav-link {
        text-align: center;
        padding: 0.5rem 0.25rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

/* 모바일: 미팅 찾기 헤더는 가로 정렬 유지 */
@media (max-width: 768px) {
    .meeting-find-header {
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem;
    }
    .meeting-find-actions {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem !important;
    }
    .meeting-find-actions select {
        min-width: 140px;
    }
    .meeting-find-actions .btn {
        white-space: nowrap;
    }
}

/* 모바일: 내 대시보드 헤더는 가로 정렬 유지 */
@media (max-width: 768px) {
    .user-dashboard-header {
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem;
    }
}

/* 모바일: 마이페이지 헤더에서 새로고침 버튼을 우측 정렬 유지 */
@media (max-width: 768px) {
    .mypage-header {
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem;
        justify-content: space-between !important;
    }
}

/* 모바일: 마이페이지 새로고침 버튼 터치 영역 확대 */
@media (max-width: 768px) {
    .mypage-header .mypage-refresh-btn {
        padding: 0.5rem 0.75rem;
        min-width: 20px;
        min-height: 20px;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* 반응형 통계 카드 */
@media (max-width: 768px) {
    .card .fa-2x {
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .carousel-item .row {
        flex-direction: column;
    }
    
    .carousel-item .col-md-4,
    .carousel-item .col-md-8 {
        max-width: 100%;
        flex: 0 0 100%;
    }
}

/* 호텔 정보 컨테이너 스타일 */
.hotel-info-container {
    padding: 0.5rem 0;
}

.hotel-info-container .hotel-name {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.hotel-info-container .hotel-details {
    margin-top: 0.5rem;
}

.hotel-info-container .hotel-details .d-flex {
    margin-bottom: 0.25rem;
}

.hotel-info-container small {
    font-size: 0.85rem;
    line-height: 1.4;
}

.hotel-info-container .text-truncate {
    max-width: 100%;
}

/* 모달 내 미팅 정보 그리드 스타일 */
.meeting-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.meeting-info-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 0.375rem;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.meeting-info-item.full-width {
    grid-column: 1 / -1;
    align-items: flex-start;
}

.meeting-info-item.full-width > div {
    flex: 1;
}

.meeting-info-item i {
    flex-shrink: 0;
}

/* 테이블 반응형 개선 */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: 0.375rem !important;
        margin-bottom: 0.25rem;
    }
    
    .hotel-info-container .hotel-name {
        font-size: 1rem;
    }
    
    .hotel-info-container .hotel-details {
        margin-top: 0.25rem;
    }
    
    .meeting-info-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .meeting-info-item {
        padding: 0.375rem;
    }
}

/* 링크 열 트렁케이션 강화 및 우측 정렬 보조 */
.my-promo-links-table td a.url-cell {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 숫자 열 가독성을 위한 최소 너비와 줄바꿈 방지 */
.my-promo-links-table th.col-visits,
.my-promo-links-table td.col-visits,
.my-promo-links-table th.col-apps,
.my-promo-links-table td.col-apps {
    min-width: 80px;
    white-space: nowrap;
}

/* 모바일: 내 미팅 카드 레이아웃 */
@media (max-width: 768px) {
    #myMeetingsCardsContainer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .my-meeting-card .card-body {
        padding: 0.875rem 1rem;
    }
    .my-meeting-card .hotel-name {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    .my-meeting-card .alert-info {
        padding: 0.25rem 0.5rem;
    }
    /* 카드 내 버튼 묶음은 세로로 정렬 */
    .my-meeting-card .btn + .btn {
        margin-top: 0.25rem;
    }
}
