/* 컨퍼런스 페이지 전용 스타일 */

/* 관리 페이지 전용 스타일 */
.sub__header .sub__title {
    border-bottom: none;
}

/* 관리자 전용 스타일 */
.sub__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #6b53d3;
}

.admin-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.btn-admin-add,
.btn-admin-manage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid;
}

.btn-admin-add {
    background-color: #3d3c54;
    color: white;
    border-color: #3d3c54;
}

.btn-admin-add:hover {
    background-color: #3d3c54;
    border-color: #3d3c54;
    color: white;
    text-decoration: none;
}

.btn-admin-manage {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

.btn-admin-manage:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    text-decoration: none;
}

/* 아이콘 스타일 */
.icon-plus::before {
    content: "+";
    font-weight: bold;
}

.icon-settings::before {
    content: "⚙";
}

/* 컨퍼런스 카드 버튼 스타일 */
.btn_register,
.btn_detail {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn_register:hover,
.btn_detail:hover {
    text-decoration: none;
}

.btn_register[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
}

/* 홈페이지 이벤트 버튼 스타일 */
.detail-btn,
.register-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.detail-btn:hover,
.register-btn:hover {
    text-decoration: none;
}

.register-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
}

/* 관리 페이지 스타일 */
.manage-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

.table-responsive {
    overflow-x: auto;
}

.manage-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.manage-table th,
.manage-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.manage-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.poster-cell {
    width: 80px;
}

.manage-poster {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.no-poster {
    width: 60px;
    height: 80px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 10px;
    color: #666;
    text-align: center;
}

.conference-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

.conference-info .summary {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.date-info .time {
    font-size: 12px;
    color: #666;
}
.paging {
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.paging__inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.paging__numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.paging__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.paging__button:hover {
    background-color: #f8f9fa;
    border-color: #6b53d3;
}

.paging__button--on {
    background-color: #6b53d3 !important;
    color: white !important;
    border-color: #6b53d3 !important;
}

.paging__button.paging__disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background-color: #f8f9fa;
    color: #6c757d;
}

.paging__button.paging__disabled:hover {
    background-color: #f8f9fa;
    border-color: #ddd;
}

.paging__prev .paging__icon::before {

    font-size: 18px;
    font-weight: bold;
}

.paging__next .paging__icon::before {

    font-size: 18px;
    font-weight: bold;
}

.paging__prev::before {
    font-size: 18px;
    font-weight: bold;
}

.paging__next::before {
    font-size: 18px;
    font-weight: bold;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-right: 4px;
}

.status-badge.active {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.private {
    background-color: #dc3545;
    color: #ffffff;
}

.status-badge.featured {
    background-color: #fff3cd;
    color: #856404;
}

.participants-info {
    text-align: center;
}

.participants-info .small {
    font-size: 11px;
    color: #666;
}

.action-cell {
    width: 120px;
}

.action-buttons {
    display: flex;
    gap: 8px; /* 간격을 조금 늘림 */
}

.btn-action {
    width: auto; /* 자동 너비로 변경 */
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    padding: 0 12px; /* 좌우 패딩 증가 */
    min-width: 50px; /* 최소 너비 증가 */
    transition: all 0.2s ease;
    margin: 0 2px; /* 버튼 간격 추가 */
}

.btn-action.view {
    background-color: #17a2b8;
    color: white;
}

.btn-action.edit {
    background-color: #ffc107;
    color: #212529;
}

.btn-action.delete {
    background-color: #dc3545;
    color: white;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 폼 스타일 */
.form-container {
    background: white;
    padding-top: 30px;
    margin: 0 auto;
}

.conference-form {
    max-width: none;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-control {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.current-image {
    margin-top: 10px;
    text-align: center;
}

.current-image p {
    margin: 5px 0 0 0;
    font-size: 12px;
    color: #666;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-primary {
    background-color: #6b53d3;
    color: white;
    border: 1px solid #6b53d3;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #6b53d3;
    border-color: #6b53d3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: 1px solid #6c757d;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
    color: white;
    text-decoration: none;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
}

/* 모달 스타일 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-content h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.modal-content p {
    margin: 0 0 20px 0;
    color: #666;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #c82333;
}

.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.no-conferences {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* 아이콘 추가 */
.icon-back::before { content: "←"; }

/* 반응형 스타일 */
@media (max-width: 768px) {
    .sub__header {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .sub__title {
        font-size: 20px;
        flex: 1;
        min-width: 0;
    }
    
    .admin-actions {
        display: flex;
        gap: 8px;
        flex-shrink: 0;
    }
    
    .btn-admin-add,
    .btn-admin-manage {
        font-size: 12px;
        padding: 8px 12px;
        white-space: nowrap;
    }
    
    /* 관리 테이블 모바일 반응형 */
    .manage-table {
        border: none;
    }
    
    .manage-table thead {
        display: none;
    }
    
    .manage-table tbody tr {
        display: block;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 15px;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .manage-table tbody td {
        display: block;
        border: none;
        padding: 5px 0;
        text-align: left !important;
        width: 100%;
    }
    
    /* 포스터 섹션 */
    .poster-cell {
        display: flex;
        justify-content: center;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .manage-poster,
    .no-poster {
        width: 80px;
        height: 100px;
    }
    
    /* 컨퍼런스 정보 */
    .conference-info {
        margin-bottom: 12px;
    }
    
    .conference-info h4 {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .conference-info .summary {
        font-size: 14px;
        color: #666;
        line-height: 1.4;
    }
    
    /* 날짜 정보 */
    .manage-table tbody td:nth-child(3) {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
    }
    
    .manage-table tbody td:nth-child(3):before {
        content: "일정: ";
        font-weight: 600;
        color: #666;
        margin-right: 8px;
        font-size: 12px;
    }
    
    /* 장소 정보 */
    .manage-table tbody td:nth-child(4) {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
    }
    
    .manage-table tbody td:nth-child(4):before {
        content: "장소: ";
        font-weight: 600;
        color: #666;
        margin-right: 8px;
        font-size: 12px;
    }
    
    /* 상태 정보 */
    .manage-table tbody td:nth-child(5) {
        display: flex;
        align-items: center;
        margin-bottom: 12px;
    }
    
    .manage-table tbody td:nth-child(5):before {
        content: "상태: ";
        font-weight: 600;
        color: #666;
        margin-right: 8px;
        font-size: 12px;
    }
    
    /* 액션 버튼 */
    .action-cell {
        border-top: 1px solid #f0f0f0;
        padding-top: 12px !important;
        margin-top: 8px;
    }
    
    .action-buttons {
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    .btn-action {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 60px;
    }
    
    /* 빈 상태 메시지 */
    .no-conferences {
        padding: 40px 15px;
    }
    
    .no-conferences .btn-admin-add {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* 모달 반응형 */
    .modal-content {
        width: 90%;
        max-width: 400px;
        padding: 20px;
        margin: 10% auto;
    }
    
    .modal h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .modal p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-actions button {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .sub__title {
        font-size: 18px;
    }
    
    .btn-admin-add,
    .btn-admin-manage {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .manage-table tbody tr {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .conference-info h4 {
        font-size: 15px;
    }
    
    .conference-info .summary {
        font-size: 13px;
    }
    
    .btn-action {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 55px;
    }
    
    .modal-content {
        width: 95%;
        padding: 15px;
    }
}
