/* ------------------------------------------------------------------------------------------------------------------ */
/* list */

.ct-list-page {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 1024px;
    height: 100dvh;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    border: solid 1px #333;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ct-tab-menu {
    display: flex;
    justify-content: space-around;
    background-color: #f5f5f5;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

.ct-tab-button {
    flex: 1;
    padding: 5px 0;
    font-size: 14px;
    font-weight: 500;
    background-color: #ddd;
    border: none;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease-in-out;
    border-bottom: 2px solid transparent;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ct-tab-button.active {
    color: #333;
    background-color: #ffffff;
    border-bottom: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

.ct-mylog-area-label {
    display: flex;
    font-size: 12px;
    color: #666;
    text-align: center;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}


.ct-mylog-area-label img {
    object-fit: cover;
    height: 15px;
    width: 15px;
    filter: invert(22%) sepia(95%) saturate(6741%) hue-rotate(-298deg) brightness(126%) contrast(0%)
}

.ct-mylog-area-label.active img {
    filter: invert(22%) sepia(95%) saturate(7000%) hue-rotate(315deg) brightness(105%) contrast(95%); 
}

.ct-mylog-area-label-name {
    border-radius: 20px;
    border: 1px solid #ccc;
    width: auto;
    padding: 2px 10px;
    justify-content: center;
    font-weight: normal;
}

.ct-mylog-area-label-name.active {
    background: rgb(233 81 142);
    color: white;
    border: 1px solid rgb(233 81 142);
}

.ct-theralog-card-area {
    color: #333;
    border: 1px solid #ccc;
    background: white;
    border-radius: 20px;
    font-size: 12px;
    width: auto;
    text-align: center;
    padding: 2px 10px;
}

.ct-tab-content {
    background-color: #ffffff;
    padding: 0px;
    border-radius: 0 0 12px 12px;
    border-top: none;
    position: relative;
    z-index: 1;
    flex: 1;
    overflow: auto;
}

.ct-post-mylog-button {
    position: absolute;
    bottom: 40px;
    right: 20px;
    padding: 4px 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    z-index: 100;
    border-radius: 50%;
    background-color: rgb(233 81 142);
    border: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.ct-post-mylog-button img {
    width: 30px;
    height: 30px;
    filter: invert(1);
}

.ct-reaction-mylog-button {
    position: absolute;
    bottom: 40px;
    left: 20px;
    padding: 4px 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    z-index: 100;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.ct-reaction-mylog-button img {
    width: 30px;
    height: 30px;
    filter: invert(1);
}

.ct-reaction-mylog-button .ct-reaction-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: rgb(233 81 142);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
    line-height: 1;
    z-index: 1;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.ct-region-slider {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.ct-region-slider::-webkit-scrollbar {
    display: none;
}

.ct-region-button {
    flex: 0 0 auto;
    padding: 8px 15px;
    font-size: 14px;
    color: #333;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    border-radius: 20px;
}

.ct-region-button.selected {
    background: rgb(233 81 142);
    color: white;
    border: 1px solid rgb(233 81 142);
}

.ct-no-mylog,
.ct-no-timeline {
    text-align: center;
    font-size: 16px;
    color: #777;
    margin: 20px 0;    
}

.ct-theralog-card {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 10px;
    border-bottom: 2px solid #ddd;
}

.ct-reported-post {
    position: relative;
    overflow: hidden;
}

.ct-reported-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(100, 100, 100, 0.6);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto
}

.ct-reported-modal-message {
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 12px;
    text-align: center;
    max-width: 90%;
    z-index: 11;
    pointer-events: none;
}

.ct-theralog-card.ct-user-post {
    background-color: rgba(233, 81, 142, 0.05);
}

.ct-theralog-card-avatar {
    flex: 0 0 40px;
    margin-right: 10px;
}

.ct-theralog-card-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.ct-theralog-card-content {
    flex: 1;
    width: calc(100% - 50px);
}

.ct-theralog-card-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.ct-theralog-card-username {
    font-weight: bold;
    color: #333;
}

.ct-theralog-card-content-header-date-and-btn {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.ct-theralog-card-content-header-date-and-btn img {
    width: 15px;
    height: 15px;
    filter: invert(22%) sepia(95%) saturate(6741%) hue-rotate(-298deg) brightness(126%) contrast(0%)
}

.ct-theralog-card-post-date {
    font-size: 12px;
    color: #999;
}

.ct-theralog-card-main-contents {
    font-size: 14px;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.ct-theralog-card-image {
    display: block;
    border-radius: 10px;
    margin-top: 10px;
    width: 330px;
    height: 250px;
    object-fit: cover;
}

.ct-theralog-card-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 5px;
    align-items: center;
}


.ct-theralog-card-like-btn,
.ct-theralog-card-comment-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}


.ct-theralog-card-like-btn img,
.ct-theralog-card-comment-btn img {
    width: 20px;
    height: auto;
    margin-right: 5px;
}

.ct-theralog-card-like-count,
.ct-theralog-card-comment-count {
    font-size: 14px;
    color: #333;
}

.ct-mylog-area-label-radio-group-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.ct-mylog-area-label-radio-group {
    display: flex;
    flex-direction: column;
    width: 120px;
}

.ct-mylog-area-label-radio-group input[type="radio"] {
    display: none;
}

.ct-mylog-area-label-radio-group .radio-label {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    min-width: 60px;
    transition: all 0.2s ease;
    color: #333;
    display: inline-block;
    margin: 5px;
    text-align: center;
}

.ct-mylog-area-label-radio-group input[type="radio"]:checked + .radio-label {
    background-color: rgb(233, 81, 142);
    color: white;
    border-color: rgb(233, 81, 142);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* post */

.ct-post-page {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 1024px;
    height: 100vh;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    padding: 5px;
    border: solid 1px #333;
    overflow-y: hidden;
}

.ct-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 30px;
    padding: 0px 10px;
}

.ct-post-header-post-btn {
    width: 60px;
    padding: 5px;
    background-color: rgb(233 81 142);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.ct-post-header-cancel-btn {
    width: 70px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border: none;
}

#ct-post-upload-progress {
    width: 100%;
    background-color: #f1f1f1;
    border-radius: 25px;
    margin-bottom: 10px;
    margin-top: 5px;
    height: 12px;
    position: relative;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.1);
}

#ct-post-progress-bar {
    height: 100%;
    background: linear-gradient(to right, rgb(233, 81, 142), rgb(255, 140, 190));
    width: 0%;
    border-radius: 25px;
    transition: width 0.4s ease-out;
}

#ct-post-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.ct-post-avatar-and-textarea {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 5px;
    margin-top: 5px;
}

.ct-post-avatar {
    flex: 0 0 40px;
}

.ct-post-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.ct-post-pic-and-textarea {
    display: flex;
    align-items: center;
    background: white;
    flex-direction: column;
    width: 100%;
    margin-top: 7px;
}

.ct-post-textarea-btn-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.ct-post-pic-item {
    background: #ffffff;
    border: solid 1px #333;
    padding: 4px 4px;
    border-radius: 8px;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}


.ct-post-pic-item img {
    width: 100%;
    height: 100%;
}

.ct-post-textarea-container {
    flex-grow: 1;
    width: 100%;
}

.ct-post-textarea {
    width: 100%;
    padding: 0px 15px;
    font-size: 14px;
    border-radius: 8px;
    resize: none;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: auto;
    max-height: 30dvh;
}

#ct-post-char-count {
    font-size: 14px;
    color: #333;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#ct-post-preview-image {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
    object-fit: cover;
}

#ct-post-preview-image img {
    border-radius: 10px;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* view */

.ct-view-theralog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.ct-view-theralog-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 1024px;
    height: 100dvh;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 200;
    border-radius: 12px;
}

.ct-view-page {
    background: #ffffff;
    width: 100%;
    max-width: 1024px;
    height: 100dvh;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 100px;
}

.ct-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10px;
    margin-top: 10px;
}

.ct-view-header-cancel-btn {
    width: 50px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border: none;
}

.ct-view-avatar-and-content {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 10px;
    margin-top: 5px;
}

.ct-view-avatar {
    flex: 0 0 40px;
    margin-right: 10px;
}

.ct-view-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.ct-view-pic-and-textarea {
    display: flex;
    background: white;
    flex-direction: column;
    width: 100%;
}

.ct-view-pic-and-textarea-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.ct-view-pic-and-textarea-header-username,
.ct-view-comment-card-username {
    font-weight: bold;
    color: #333;
}

.ct-view-pic-and-textarea-header-date-and-btn,
.ct-view-comment-card-content-header-date-and-btn {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.ct-view-pic-and-textarea-header-date-and-btn img,
.ct-view-comment-card-content-header-date-and-btn img {
    width: 15px;
    height: 15px;
    filter: invert(22%) sepia(95%) saturate(6741%) hue-rotate(-298deg) brightness(126%) contrast(0%)
}

.ct-view-pic-and-textarea-header-date,
.ct-view-comment-card-content-header-date {
    font-size: 12px;
    color: #999;
}

.ct-view-textarea-container {
    flex-grow: 1;
    width: 100%;
}

.ct-view-textarea {
    width: 100%;
    font-size: 14px;
    border-radius: 8px;
    resize: none;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: hidden;
}

#ct-view-preview-image {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
    object-fit: cover;
}

#ct-view-preview-image img {
    border-radius: 10px;
}

.ct-view-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 5px;
}


.ct-view-like-tab-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}


.ct-view-like-tab-btn img {
    width: 20px;
    height: auto;
    margin-right: 5px;
}

.ct-view-comment-tab-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.ct-view-comment-tab-btn img {
    width: 20px;
    height: auto;
    margin-right: 5px;
}

.ct-view-likers {
    display: flex;
    flex-direction: column;

}

.ct-view-liker-card {
    display: flex;
    align-items: center;
    background: white;
    padding: 10px;
    border-bottom: 2px solid #ddd;
}

.ct-view-liker-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.ct-view-liker-card-name {
    font-size: 14px;
    color: #333;
}

.ct-view-no-likes,
.ct-view-no-comments,
.ct-no-reaction {
    text-align: center;
    font-size: 16px;
    color: #777;
    margin: 20px 0;
}

.ct-view-comments {
    display: flex;
    flex-direction: column;
}

.ct-view-comment-card {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 10px;
    border-bottom: 2px solid #ddd;
}

.ct-view-comment-card-header {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-direction: column;
}

.ct-view-comment-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.ct-view-comment-card-content {
    flex: 1;
    width: calc(100% - 50px);
}

.ct-view-comment-card-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.ct-view-comment-text {
    font-size: 14px;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.ct-same-role-user {
    pointer-events: none;
    cursor: default;
    background: #eee;
}

.ct-view-comment-footer {
    background-color: #f5f5f5;
    padding: 10px;
    border-top: 1px solid #ccc;
    display: flex;
    align-items: center;
    position: relative;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;    
}

#ct-view-comment-form {
    font-size: 16px;
    display: flex;
    width: 100%;
    gap: 5px;
    align-items: center;
}

#ct-view-comment-textarea {
    flex: 1;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 8px;
    resize: none;
    font-size: 14px;
    max-height: 200px;
    overflow-y: auto;
}

#ct-view-comment-send-button {
    background: #ffffff;
    border: solid 1px #333;
    padding: 4px 4px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

#ct-view-comment-send-button img {
    width: 100%;
    height: 100%;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* reaction */

.ct-reaction-mylog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.ct-reaction-mylog-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 1024px;
    height: 100dvh;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 100;
    border-radius: 12px;
}

.ct-reaction-mylog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10px;
    margin-top: 10px;
}

.ct-reaction-mylog-header-cancel-btn {
    width: 50px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border: none;
}

.ct-reaction-mylog-modal-main-content {
    height: 100%;
    overflow: auto;
}

.ct-reaction-cards {
    display: flex;
    flex-direction: column;
}

.ct-reaction-card {
    display: flex;
    align-items: flex-start;
    width: 100%;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    background: #fff;
    cursor: pointer;
}

.ct-reaction-card-icon-area {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-reaction-type-icon {
    width: 24px;
    height: autopx;
}

.ct-reaction-card-content-area {
    flex: 1;
    width: calc(100% - 40px);
}

.ct-reaction-card-header {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
    margin-bottom: 5px;
}

.ct-reaction-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.ct-reaction-username {
    color: #333;
    text-decoration: none;
}

.ct-reaction-card-body {
    margin-top: 5px;
    color: #555;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 14px;
    text-align: left;
    margin-left: 5px;
}

.ct-reaction-card-footer {
    font-size: 12px;
    color: #999;
    text-align: right;
}

.ct-reaction-unconfirmed {
    background: rgba(233, 81, 142, 0.1);
}
