@charset "UTF-8";

/* ==========================================================================
   My Page Modern Design
   ========================================================================== */

/* Menu List Container */
.mypage_menu_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
}

/* Menu Item Card */
.mypage_menu_item {
    width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    /* anchor block */
}

.mypage_menu_item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #ff6500;
}

.mypage_menu_item a {
    text-decoration: none;
    display: block;
    color: inherit;
}

/* Header inside Item */
.mypage_menu_head {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.mypage_menu_head i {
    color: #ff6500;
    margin-right: 10px;
    font-size: 20px;
}

/* Arrow Icon */
.mypage_menu_arrow {
    margin-left: auto;
    color: #ccc;
    transition: 0.3s;
}

.mypage_menu_item:hover .mypage_menu_arrow {
    color: #ff6500;
    transform: translateX(5px);
}

/* Description Text */
.mypage_menu_text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-left: 30px;
    /* Align with text, skipping icon */
}

/* --------------------------------------------------------------------------
   Unread Emphasis ("Job Application Management")
   -------------------------------------------------------------------------- */
.mypage_menu_item.highlight_unread {
    border: 2px solid #f53148;
    background: linear-gradient(to right, #fff5f5, #fff);
    position: relative;
}

.mypage_menu_item.highlight_unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #f53148;
}

.mypage_menu_item.highlight_unread .mypage_menu_head {
    color: #f53148;
}

.mypage_menu_item.highlight_unread .mypage_menu_head i {
    color: #f53148;
    animation: icon-pulse 2s infinite;
}

@keyframes icon-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Unread Badge in Menu */
.unread_alert {
    display: inline-block;
    background-color: #f53148;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(245, 49, 72, 0.4);
}

/* --------------------------------------------------------------------------
   Side Menu Badge Refinement
   -------------------------------------------------------------------------- */
.badge {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background-color: #f53148;
    border-radius: 10px;
    margin-left: 8px;
    margin-right: 8px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width:767px) {
    #pnav>li.sp span.badge {
        color: #fff;
        margin-right: 50px;
    }
}

/* --------------------------------------------------------------------------
   Application List Card Design
   -------------------------------------------------------------------------- */

.application_list {
    margin-top: 10px;
}

.application_item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    transition: box-shadow 0.3s;
}

.application_item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #bbb;
}

/* grid layout within card */
.app_date {
    font-size: 12px;
    color: #888;
    width: 100px;
}

.app_info {
    flex: 1;
    padding: 0 15px;
    min-width: 250px;
}

.app_company_name {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.app_job_title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.app_status_area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.app_action {
    width: 180px;
    text-align: right;
}

/* Status Labels */
.status_label {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 4px;
    color: #fff;
    background: #999;
    font-weight: bold;
    white-space: nowrap;
    line-height: 1.2;
}

.status_label.unread {
    background: #f53148;
}

/* 未読 */
.application_item.unread_card {
    border: 2px solid #f53148;
    background-color: #fff5f5;
}

.status_label.reply_waiting {
    background: #FCF5CA;
    color: #d88c00;
    border: 1px solid #d88c00;
}

/* 返事待ち */
.status_label.no_reply {
    background: #f39c12;
}

/* 未返信 */
.status_label.adopted {
    background: #2ecc71;
}

/* 採用 */
.status_label.rejected {
    background: #7f8c8d;
}

/* 不採用 */
.status_label.declined {
    background: #95a5a6;
}

/* 辞退済 */
.status_label.read {
    background: #3498db;
}

/* 既読 */

/* Action Button */
.btn_message {
    display: inline-block;
    background: #ff6500;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    transition: background 0.3s;
    text-align: center;
    border: 1px solid #e55a00;
}

.btn_message:hover {
    background: #fff;
    color: #ff6500;
    text-decoration: none;
}

.btn_message i {
    margin-right: 5px;
}

/* --------------------------------------------------------------------------
   Responsive Logic for App List
   -------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
    .mypage_menu_item {
        margin-bottom: 15px;
        padding: 15px;
    }

    .mypage_menu_head {
        font-size: 16px;
    }

    .mypage_menu_text {
        font-size: 12px;
        margin-left: 0;
        margin-top: 8px;
    }

    /* App List SP */
    .application_item {
        display: block;
        padding: 15px;
    }

    .app_date {
        width: auto;
        margin-bottom: 5px;
        display: inline-block;
    }

    .app_info {
        padding: 0;
        margin: 10px 0;
    }

    .app_company_name {
        margin-bottom: 3px;
    }

    .app_job_title {
        font-size: 15px;
    }

    .app_status_area {
        margin-top: 8px;
    }

    .app_action {
        width: 100%;
        margin-top: 15px;
        text-align: center;
    }

    .btn_message {
        display: block;
        width: 100%;
        padding: 12px 0;
    }
}