.com-photo{
    position: relative;
    padding-top: 14px;
    color: rgb(34, 34, 34);
}
.com-photo::after{
    content: '';
    display: block;
    clear: both;
}
.com-pt-im{
    display: flex;
    align-items: center;
    padding-bottom: 4px;
}
.com-pt-im p{
    font-size: 14px;
}
.com-photo h1{
    font-size: 18px;
    overflow: hidden;
    padding-bottom: 4px;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 170px;
}
.com-photo span{
    display: flex;
    margin-right: 16px;
    align-items: center;
    float: left;
    font-size: 14px;
}
.com-photo span svg{
    margin-right: 6px;
}
.photo-backg{
    position: absolute;
    top: 0;
    justify-content: center;
    width: 182px;
    height: 254px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
}
.photo-backg div:first-child{
    margin-top: 72px;
}
.photo-backg div:last-child h1{
    padding-top: 20px;
    font-size: 20px;
    color:var(--brand-text);
}
.photo-backg div{
    text-align: center;
}
.newm-boxo{
    padding-top: 30px;
}
.newm-new-a{
    position: absolute;
    right: 0;
    top: -4px;
}
.newm-new-a a{
    padding: 10px 20px;
    display: flex;
    align-items: center;
    border-radius: 2px;
    color: white;
    background-color: var(--brand-action);
}
.newm-new-a a svg{
    margin-right: 6px;
}
.board-tabs{
    padding: 10px 0;
}

/* 帖子 */

.community-text{
    position: relative;
    margin-top: 40px;
}
.cm-tx-all {
    background: white;
    position: relative;
    border-top: 1px solid #ddd;
}
html[data-theme="dark"] .cm-tx-all {
    background: #2C2C2C;
    border-color: #444;
}

.board-tabs a {
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    border-radius: 39px;
    margin-right: 5px;
    background-color: white;
}
html[data-theme="dark"] .board-tabs a {
    color: #fff;
    background-color: #2C2C2C;
}
html[data-theme="dark"] .board-tabs a:not(.active):hover {
    background-color: #424242;
}
html[data-theme="dark"] .board-tabs a.active {
    background-color: var(--brand-action);
    color: #fff;
}

.board-tabs a.active {
    background-color: var(--brand-action);
    color: #fff;
    border-color: var(--brand-action);
    font-weight: bold;
}

.board-col.title {
    display: flex;
    align-items: center;
}

.board-tabs a:not(.active):hover {
    background-color: #eee;
}


.board-options {
    margin-left: auto;
}

.board-header, .cm-tx-li {
    display: flex;
    align-items: center;
    padding: 16px 0px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.board-header {
    background-color: #f8f8f8;
    font-weight: bold;
    font-size: 14px;
}
.board-col img{
    width: 70px;
    object-fit: cover;
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

.cm-tx-li:hover {
    background-color: #f5f5f5;
}
html[data-theme="dark"] .cm-tx-li:hover{ background-color:#424242 }

.board-col {
    text-align: center;
    color: #333;
}

/* Dark mode overrides */
html[data-theme="dark"] .board-header{ background-color:#424242; border-bottom-color:#424242; color:#fff }
html[data-theme="dark"] .board-col{ color:#fff }
html[data-theme="dark"] .cm-tx-li{ border-bottom:1px solid #424242 }
html[data-theme="dark"] .board-col.title a{ color:#fff }

.board-col:nth-child(1) { /* 번호 */
    width: 6%;
}

.board-col:nth-child(2) { /* 제목 */
    width: 54%;
    text-align: left;
}

.board-col:nth-child(3) { /* 글쓴이 */
    width: 15%;
}

.board-col:nth-child(4) { /* 작성일 */
    width: 10%;
}

.board-col:nth-child(5) { /* 조회 */
    width: 7.5%;
}

.board-col:nth-child(6) { /* 추천 */
    width: 7.5%;
}

.board-col.title a {
    text-decoration: none;
    color: #333;
}

.board-col.title a:hover {
    text-decoration: underline;
}
.board-controls{
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
    justify-content: space-between;
}
.board-options select{
    padding: 8px 6px;
    border: 1px solid #ddd;
    border-radius:  4px;
}

.board-col.title img {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .board-header {
        display: none;
    }

    .cm-tx-all {
        border-top: none;
    }

    .cm-tx-li {
        display: flex;
        flex-wrap: wrap;
        padding: 15px;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 12px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.02);
        margin-bottom: 10px;
        align-items: center;
        justify-content: space-between;
    }

    html[data-theme="dark"] .cm-tx-li {
        background: #2C2C2C;
        border-color: #444;
    }

    .board-col:nth-child(1) { /* 번호 */
        display: none !important;
    }

    .board-col:nth-child(2) { /* 제목 */
        width: 100%;
        text-align: left;
        margin-bottom: 12px;
        display: flex;
        align-items: flex-start;
        gap: 6px;
    }

    .board-col.title a {
        font-size: 15px;
        font-weight: 600;
        color: #222;
        line-height: 1.4;
    }

    .board-col:nth-child(3) { /* 글쓴이 */
        flex: 1;
        text-align: left;
        font-size: 14px;
        color: #666;
        display: flex;
        align-items: center;
    }

    html[data-theme="dark"] .board-col:nth-child(3) {
        color: #aaa;
    }

    .board-col:nth-child(3)::before {
        content: '뉴비';
        display: inline-block;
        background: #9e9e9e;
        color: #fff;
        font-size: 14px;
        padding: 2px 6px;
        border-radius: 10px;
        margin-right: 6px;
        font-weight: 500;
    }

    .board-col:nth-child(4),
    .board-col:nth-child(5),
    .board-col:nth-child(6) {
        width: auto;
        display: flex;
        align-items: center;
        font-size: 14px;
        color: #999;
        margin-left: 10px;
    }

    /* 아이콘 추가 */
    .board-col:nth-child(5)::before {
        content: '👁';
        margin-right: 4px;
        font-size: 14px;
    }

    .board-col:nth-child(4)::before {
        content: '🕒';
        margin-right: 4px;
        font-size: 14px;
    }

    .board-col:nth-child(6)::before {
        content: '👍';
        margin-right: 4px;
        font-size: 14px;
    }

    /* 순서 배치: 작성일(4) -> 조회(5) -> 추천(6) */
    .board-col:nth-child(4) { order: 1; }
    .board-col:nth-child(5) { order: 2; }
    .board-col:nth-child(6) { order: 3; }

}

.cm-tx-tt{
    position: relative;
}
.cm-tt-up{
    position: relative;
}
.cm-tt-name{
    display: flex;
    /* padding-bottom: 10px; */
    align-items: center;
}

.cm-tt-name img{
    margin-right: 8px;
}
.cm-tt-name h1{
    display: flex;
    align-items: center;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 300px;
    color: rgb(34, 34, 34);
}
.cm-tt-name h1 svg{
    margin-right: 8px;
}
.cm-tt-textt{
    padding: 12px 0;
}
.cm-tt-textt p{
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 330px;
    color: rgb(34, 34, 34);
}
.cmtt-tp{
    display: flex;
    align-items: center;
    color: rgb(34, 34, 34);
}
.cmtt-tp span{
    font-size: 14px;
    padding-right: 20px;
}
.cm-tx-ps{
    margin-right: 8px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 18px;
    height: 18px;
    border-radius: 50%;
}
.cm-tt-rig{
    position: absolute;
    right: 0;
    color: rgb(34, 34, 34);
    top: 66px;
}
.cm-tt-rig::after{
    display: block;
    content: '';
    clear: both;
}
.cm-tt-rig span{
    display: flex;
    align-items: center;
    float: left;
    font-size: 14px;
    padding-left: 10px;
}
.cm-tt-rig span svg{
    margin-right: 4px;
}


/* 照片详情页 */
.pt-dt-tt{    
    position: relative;
    padding: 30px 0;
    border-bottom: 1px solid rgb(235, 235, 235);
}
.pt-dt-tto{
    padding-bottom: 10px;
}
.pt-dt-tto h4{
    font-size: 18px;
}
.pt-dt-ttt{
    position: relative;
    font-size: 14px;
}
.pt-dt-ttt::after{
    content: '';
    display: block;
    clear: both;
}
.pt-dt-ttt span{
    display: flex;
    float: left;
    align-items: center;
}
.pt-dt-ttt span:first-child{
    padding-right: 20px;
    color: rgb(171, 171, 171);
}
.pt-dt-ttt span:nth-child(2), .pt-dt-ttt span:nth-child(3){
    padding-right: 10px;
}
.pt-dt-ttt span:nth-child(2) svg, .pt-dt-ttt span:nth-child(3) svg{
    margin-right: 10px;
}
.pt-dt-ttt span:nth-child(4){
    color: rgb(171, 171, 171);
    padding-left: 20px;
}

/* Request Board specific styles */
.request-board-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-bottom: 15px; 
}
.request-board-tabs {
    margin: 0; 
    padding: 0; 
    border: none;
}
.request-board-tabs h1 {
    display: flex; 
    gap: 20px; 
    margin: 0; 
    padding: 0; 
    font-size: 18px; 
    font-weight: bold; 
    background: none;
}
.request-board-tabs .board-tab {
    cursor: pointer; 
    color: #888;
}
.request-board-tabs .board-tab.active {
    color:var(--brand-text);
}
.request-board-actions {
    display: flex; 
    gap: 10px;
}
.request-board-actions .request-btn {
    background: #222; 
    color: #fff; 
    padding: 8px 16px; 
    border-radius: 4px; 
    font-size: 14px; 
    font-weight: bold;
}
.request-board-actions .edit-btn {
    background: transparent; 
    color: #222; 
    border: 1px solid #ddd; 
    padding: 8px 16px; 
    border-radius: 4px; 
    font-size: 14px; 
    font-weight: bold;
}
html[data-theme="dark"] .request-board-actions .edit-btn {
    color: #fff;
    border-color: #555;
}

/* 照片内容展示 */
.pt-dt-pt{
    position: relative;
}
.pt-dt-img{
    padding-top: 40px;
}
.pt-dt-img p{
    padding: 10px 0;
    font-size: 14px;
    line-height: 28px;
}
.pt-dt-bnt{
    padding-top: 40px;
    display: flex;
    justify-content: center;
}
.dt-bnt-o, .dt-bnt-t{
    padding: 0 20px;
}
.dt-bnt-o button, .dt-bnt-t button{
    background: none;
    cursor: pointer;
    border: none;
}
.dt-bnt-o p, .dt-bnt-t p{
    text-align: center;
    font-weight: bold;
    font-size: 24px;
}


/* 留言板 */
.pt-dt-lp{
    position: relative;
    margin-top: 40px;
}
.dt-lp-tt{
    padding: 14px 0;
    position: relative;
    border-bottom: 1px solid rgb(235, 235, 235);
}
.dt-lp-tt h4{
    font-size: 18px;
    color:var(--brand-text);
}
.dt-lp-bt{
    position: absolute;
    right: 0;
    top: 11px;
}
.dt-lp-bt button{
    background: none;
    border: none;
    margin-right: 10px;
    cursor: pointer;
}
.dt-lp-bt button:last-child{
    color: rgb(171, 171, 171);
}
.dt-lp-o{
    position: relative;
    padding: 20px 0;
    border-bottom: 1px solid rgb(235, 235, 235);
}
.dt-lp-o::after{
    content: '';
    display: block;
    clear: both;
}
.dt-lp-img{
    margin-right: 10px;
    float: left;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 40px;
    width: 40px;    
}
.dt-lp-text{
    float: left;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 900px;
}
.dt-lp-text font{
    font-size: 16px;
    padding-right: 6px;
    font-weight: bold;
}
.dt-lp-text span{
    font-size: 14px;
}
.dt-lp-down{
    font-size: 14px;
    padding-top: 6px;
    color: rgb(171, 171, 171);
}
.dt-lp-down span{
    padding-right: 14px;    
    font-size: 14px;
}
.dt-lp-down span button{
    background: none;
    color: rgb(171, 171, 171);
    border: none;
    /* font-weight: 600; */
    cursor: pointer;
}
.dt-lp-icon{
    position: absolute;
    right: 0;
}
.dt-lp-icon::after{
    clear: both;
    content: '';
    display: block;
}
.dt-lp-icon span{
    display: flex;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    align-items: center;
    float: left;
}
.dt-lp-icon span:first-child{
    padding-right: 20px;
}
.dt-lp-icon span svg{
    margin-right: 2px;
}
.dt-lp-ot{
    margin-left: 40px;
}
.dt-li-li{
    border-bottom: none;
}
.dt-lp-sk{    
    position: relative;
    margin-left: 80px;
    background-color: #fafafa;
    padding: 20px;
}

.dt-lp-sk textarea{
    padding: 10px;
    width: 100%;
    border: none;
    outline: none;
    resize: none;
}
.dt-lp-bnt{
    text-align: end;
    padding-top: 20px;
}
.dt-lp-bnt button{
    padding: 10px;
    border: none;
    cursor: pointer;    
    border-radius: 2px;
}
.dt-lp-bnt button:first-child{
    background: var(--brand-action);
    color: white;
    margin-right: 10px;
}
.dt-lp-bnt button:last-child{
    background: transparent;
    color: rgb(34, 34, 34);
    border: 1px solid #ebebeb;
}
html[data-theme="dark"] .dt-lp-bnt button:last-child {
    color: #fff;
    border-color: #555;
}

@media (max-width:980px){
    .newm-boxo{
        padding-top: 0;
    }    
    .com-pt-im {
        display: none;
    }
    .com-photo h1{
        font-size: 14px;
        max-width: 100px;
    }
    .com-photo span{
        font-size: 14px;
        margin-right: 6px;
    }
    .com-photo span svg{
        width: 12px;
        height: 12px;
    }
    .photo-backg{
        width: 110px;
        height: 152px;
    }
    .photo-backg div:first-child{
        margin-top: 40px;
    }    
    .photo-backg div:first-child svg{
        width: 40px;
        height: 40px;
    }
    .photo-backg div:last-child h1{
        font-size: 14px;
        padding-top: 10px;
    }
    .community-text{
        margin-top: 20px;
    }
    .dt-lp-o{
        position: relative;
    }
    .cm-tx-all{
        padding: 0;
    }
    .cm-tx-li{
        padding: 20px;
    }
    .cm-tx-li a{
        margin: 0;
        width: 100%;
        padding: 10px 0;
    }
    .newm-new-a{
        top: 14px;
        margin-right: 10px;
    }
    .newm-new-a a{
        font-size: 14px;
    }
    .pt-dt-tt{
        padding: 30px 10px;
    }
    .newm-tt h1{
        display: none;
    }
    .newm-new-b{
        left: 0;
        padding-left: 10px;
        right: auto;
    }
    .pt-dt-pt{
        padding: 0 10px;
    }
    .dt-lp-o{
        /* width: 100%; */
        padding: 16px 0;
    }
    .dt-lp-img{
        margin-right: 10px;
    }    
    .pt-dt-img img{
        width: 100%;
        height: auto;
    }
    .pt-dt-img p{
        padding: 10px 10px;
    }
    .pt-dt-lp{
        padding: 0 10px;
    }
    .dt-lp-icon{
        /* position: relative; */
        bottom: 16px;
        right: 10px;
    }
    .dt-lp-icon span{
        font-size: 14px;
    }
    .dt-lp-icon span svg{
        width: 18px;
        height: 18px;
    }
    .dt-lp-text{
        max-width: 300px;
    }
    .dt-lp-texto{
        max-width: 260px;
    }
    .dt-lp-text font{
        font-size: 14px;
    }
    .dt-lp-text span{
        font-size: 14px;
        width: 100%;
    }
    .dt-lp-ls{
        right: dt-lp-ot;
    }
    .dt-lp-sk{
        margin: 0;
        width: 100%;
    }
}


/* Blind-style Post Detail */
.blind-post-container {
    background: transparent;
    padding: 30px 10px;
    margin-bottom: 20px;
    border-radius: 8px;
}
.bp-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.bp-title {
    font-size: 24px;
    font-weight: bold;
    color: #222;
    margin: 0 0 15px 0;
}
.bp-author-info {
    margin-bottom: 10px;
    font-size: 14px;
}
.bp-company {
    color: #00A3FF;
}
.bp-dot {
    color: #888;
    margin: 0 5px;
}
.bp-user {
    color: #222;
    font-weight: 500;
}
.bp-meta {
    display: flex;
    gap: 15px;
    color: #888;
    font-size: 14px;
    align-items: center;
}
.bp-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.bp-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 40px;
}
.bp-content p {
    margin-bottom: 10px;
}
.bp-actions-summary {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.bp-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #666;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
}
.bp-action-btn:hover {
    color: #333;
}
.bp-action-btn.active {
    color:var(--brand-text);
}
.bp-action-btn.active svg {
    fill: var(--brand-action);
    stroke: var(--brand-action);
}

/* Comments Section */
.bp-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.bp-comments-header h3 {
    font-size: 16px;
    font-weight: bold;
    color: #222;
    margin: 0;
}
.bp-sort-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}
.bp-comment-input-box {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
}
.bp-comment-input-box input {
    border: none;
    width: 100%;
    outline: none;
    font-size: 14px;
}
.bp-comment-input-box input::placeholder {
    color: #aaa;
}

.bp-comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bp-comment-item {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}
.bp-comment-item.reply {
    padding-left: 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #fff;
    padding-right: 20px;
}
.bpc-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.bpc-author {
    font-size: 14px;
}
.bpc-company {
    color: #00A3FF;
}
.bpc-dot {
    color: #888;
    margin: 0 4px;
}
.bpc-user {
    color: #888;
}
.bpc-badge {
    color:var(--brand-text);
    font-size: 14px;
    font-weight: bold;
    margin-left: 6px;
}
.bpc-more-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.bpc-text {
    font-size: 14px;
    line-height: 1.5;
    color: #222;
    margin-bottom: 15px;
}
.bpc-bottom {
    display: flex;
    gap: 15px;
    align-items: center;
}
.bpc-time {
    color: #888;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.bpc-action-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 0;
}
.bpc-action-btn:hover {
    color: #555;
}
.bpc-action-btn.active {
    color:var(--brand-text);
}
.bpc-action-btn.active svg {
    fill: var(--brand-action);
    stroke: var(--brand-action);
}

.bp-comment-more-reply {
    text-align: center;
    padding: 15px;
    background: #f9f9f9;
    border-bottom: 1px solid #f0f0f0;
}
.bp-comment-more-reply button {
    background: none;
    border: none;
    color: #222;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

/* Dark mode overrides */
html[data-theme="dark"] .blind-post-container {
    background: #1e1e1e;
    border-color: #333;
}
html[data-theme="dark"] .bp-header, html[data-theme="dark"] .bp-actions-summary, html[data-theme="dark"] .bp-comment-item {
    border-color: #333;
}
html[data-theme="dark"] .bp-title, html[data-theme="dark"] .bp-content, html[data-theme="dark"] .bp-comments-header h3, html[data-theme="dark"] .bpc-text, html[data-theme="dark"] .bp-user {
    color: #eee;
}
html[data-theme="dark"] .bp-comment-input-box {
    border-color: #444;
}
html[data-theme="dark"] .bp-comment-input-box input {
    background: transparent;
    color: #eee;
}
html[data-theme="dark"] .bp-comment-item.reply, html[data-theme="dark"] .bp-comment-more-reply {
    background: #2a2a2a;
    border-bottom-color: #1e1e1e;
}
html[data-theme="dark"] .bp-comment-more-reply button {
    color: #eee;
}

/* Inline Reply Box */
.inline-reply-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px 15px;
    background: #f4f4f4;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.inline-reply-box input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
}
.inline-reply-submit {
    background: var(--brand-action);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}
.inline-reply-submit:hover {
    background: #e63e3e;
}
html[data-theme="dark"] .inline-reply-box {
    background: #2a2a2a;
    border-color: #444;
}
html[data-theme="dark"] .inline-reply-box input {
    color: #eee;
}

/* ==============================================================
   Request Board Write Form Styles
   ============================================================== */
.request-write-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 40px;
}
html[data-theme="dark"] .request-write-container {
    background-color: #2C2C2C;
}

html[data-theme="dark"] .btn-cancel {
    background-color: transparent;
    color: #ccc;
    border-color: #555;
}
html[data-theme="dark"] .btn-cancel:hover {
    background-color: #333;
    color: #fff;
}

.write-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.write-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    
    align-items: flex-start;
}

.write-form .form-group label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: left;
    width: 100%;
}

.write-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.write-input:focus,
.write-textarea:focus {
    border-color: var(--brand-action);
}

.write-textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    outline: none;
    resize: vertical;
    min-height: 300px;
    transition: border-color 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

html[data-theme="dark"] .write-input,
html[data-theme="dark"] .write-textarea {
    color: #fff;
    border-color: #555;
    background: #1e1e1e;
}
html[data-theme="dark"] .write-form .form-group label {
    color: #eee;
}
html[data-theme="dark"] .write-select {
    background-color: #1e1e1e;
    color: #eee;
    border-color: #555;
}
html[data-theme="dark"] .char-count {
    color: #aaa;
}

.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    border: 1px dashed #d0d0d0;
}

.write-file-input {
    display: none;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background-color: #fff;
    color: #555;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.file-name {
    font-size: 14px;
    color: #888;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-cancel,
.btn-submit {
    padding: 12px 35px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

.btn-cancel {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.btn-cancel:hover {
    background-color: #e5e5e5;
    color: #333;
}

.btn-submit {
    background-color: var(--brand-action);
    color: #fff;
}

.btn-submit:hover {
    background-color: var(--brand-action);
}

@media (max-width: 768px) {
    .request-write-container {
        padding: 20px 15px;
    }

    .form-row-multi {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .select-group,
    .select-wrapper,
    .write-select {
        width: 100%;
        max-width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
        padding: 14px;
    }
    
    .file-upload-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Error Report Form Styles */
.write-page-title {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin-bottom: 30px;
    text-align: left;
}
html[data-theme="dark"] .write-page-title {
    color: #fff;
}

.title-group {
    position: relative;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 20px;
}
html[data-theme="dark"] .title-group {
    border-bottom-color: #444;
}

.write-input.no-border-bottom {
    border: none;
    padding: 10px 0;
    font-size: 15px;
    color: #333;
}
.write-input.no-border-bottom:focus {
    border-color: transparent;
}
html[data-theme="dark"] .write-input.no-border-bottom {
    background: transparent;
    color: #fff;
}

.char-count {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 14px;
}

.form-row-multi {
    display: flex;
    gap: 30px;
    margin-bottom: 10px;
}

.select-group {
    width: 250px;
}

.select-group label {
    font-size: 15px !important;
    margin-bottom: 10px;
}

.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.select-icon {
    position: absolute;
    left: 12px;
    color: #666;
    display: flex;
    align-items: center;
}

.write-select {
    width: 200px;
    box-sizing: border-box;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 15px center;
    font-size: 14px;
    color: #555;
    outline: none;
}

.select-wrapper .select-icon + .write-select {
    padding-left: 35px;
}

.light-label {
    color: #888 !important;
    font-weight: normal !important;
    font-size: 14px !important;
    margin-bottom: 15px !important;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.cat-btn {
    background: transparent;
    border: 1px solid #eee;
    color: #888;
    padding: 10px 15px;
    border-radius: 2px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}
html[data-theme="dark"] .cat-btn {
    border-color: #555;
    color: #aaa;
}

.cat-btn .plus {
    font-weight: bold;
    color: #000;
}

.cat-btn.active {
    border-color: var(--brand-action);
    color:var(--brand-text);
}

.cat-btn.active .plus {
    color:var(--brand-text);
}

.form-actions.left-align {
    justify-content: flex-start;
    border-top: none;
    padding-top: 10px;
    gap: 10px;
}

.btn-submit {
    background-color: var(--brand-action);
    color: #fff;
    border: none;
    border-radius: 2px;
    padding: 12px 40px;
    font-size: 15px;
}

.btn-cancel {
    background-color: #fff;
    color: #888;
    border: 1px solid #eee;
    border-radius: 2px;
    padding: 12px 30px;
    font-size: 15px;
}
