/* 색상 변수 정의 */
:root {
    --color-primary: #2445EF;
    --color-primary-dark: #2952ff;
    --color-background: #f0f2f5;
    --color-container: #ffffff;
    --color-text-primary: #333333;
    --color-text-secondary: #555555;
    --color-text-tertiary: #888888;
    --color-text-nav: #aaaaaa;
    --color-star: #FFD700;
    --color-border: #eeeeee;
    --color-blue-background: #e8f1ff;
	--color-border-trasparent: rgba(238,238,238,0.3);
    --white-background: #FAFBFF;
    --color-black: #000;
}

/* 기본 스타일 리셋 및 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.alert-box {
    margin: 20px 0;
    padding: 14px 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.8); /* 반투명 흰색 */
    border: 1px solid #58b0f7;
    color: #1877d2;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    animation: fadeInSlideDown 0.4s ease-in-out;
}


body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--color-background);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 0;
}

.page-container, .mobile-container {
    opacity: 0;
}

/* 모바일 화면 구현 */
.mobile-container {
    width: 100%;
    max-width: none;
    background-color: var(--color-container);
    border-radius: 0px;
    padding: 30px 25px 100px 25px; /* 하단 nav 공간 확보 */
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-height: 100vh;
}

/* 사용자 프로필 */
.greeting-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.greeting-text p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.greeting-text h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-primary); /*수정*/
}

.profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
}

/* 메인 타이틀 */
.main-title {
    margin-bottom: 25px;
}
.main-title h1 {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-text-primary);
}
.main-title .highlight {
    color: var(--color-primary);
    font-weight:700;
}

/* 세탁 사진 찍기 CTA 카드 */
.cta-card {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 30px;
    padding: 25px;
    color: var(--color-container);
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;

    box-shadow: 0 8px 16px rgba(74, 108, 255, 0.3);
}

.cta-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.2);
    width: 70px;
    height: 70px;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}
.cta-icon-wrapper i {
    font-size: 36px;
    color: var(--color-container);
}
.cta-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.cta-text p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.cta-button {
    background-color: var(--color-container);
    border: none;
    border-radius: 50px;

    padding: 16px 25px;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    color: var(--color-text-primary);

    display: flex;
    justify-content: space-between;
    align-items: center;

    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-decoration: none;
}
.cta-button i {
    background-color: var(--color-background);
    color: var(--color-primary);

    border-radius: 50%;
    width: 30px;
    height: 30px;

    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* 기록 보기 */
.history-section {
    margin-top: 40px;
}

.history-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.history-item {
    display: flex;
    align-items: center;
    background-color: var(--color-container);
    padding: 15px;
    border-radius: 20px;
    margin-bottom: 15px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.history-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.history-img {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    margin-right: 15px;
}

.history-details {
    flex-grow: 1;
}

.history-details h4 {
    font-size: 16px;
    font-weight: 500;
}
.history-details p {
    font-size: 13px;
    color: var(--color-text-tertiary);
    margin: 4px 0;
}
/* .rating .fa-star {
    color: #FFD700;
    font-size: 14px;
} 별 레이팅 뻄*/
.history-item > .fa-chevron-right {
    color: #ccc;
    font-size: 14px;
}

/* 하단 네비게이션 바 */
.bottom-nav {
    position: fixed;
    z-index: 1000;
    bottom: 0;
    left: 0;
    right: 0;
    height: 85px;
    background-color:var(--color-container);

    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--color-border);
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;

    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 999;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-nav);
    font-size: 12px;
}
.nav-item i {
    font-size: 22px;
    margin-bottom: 5px;
}
.nav-item.active i{
    color: var(--color-primary);
}
.nav-item.active span{
    color:  var(--color-primary);
    
}

/* 중앙 메인 버튼 */
.nav-item-main {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-container);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-40%);
    box-shadow: 0 4px 12px rgba(74, 108, 255, 0.4);
    border: 5px solid var(--color-container);
    cursor: pointer;
    text-decoration: none;
}
.nav-item-main i {
    font-size: 28px;

}

