/* 전자도장 스타일 - 새로운 레이아웃 */

/* 메인 컨트롤 영역 */
.stamp-main-controls {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

/* 상단 입력 행 */
.stamp-input-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* 이름 입력 그룹 */
.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.input-group label.center-label {
    text-align: center;
}

.center-title {
    text-align: center;
}

.input-group input {
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.input-group small {
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

/* 모양 및 디자인 선택 영역 */
.shape-design-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 도장 모양 선택 */
.shape-selector label,
.design-selector label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    display: block;
    font-size: 14px;
    text-align: center;
}

.shape-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    justify-items: center;
}

.shape-option {
    text-align: center;
    padding: 15px 8px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.shape-option:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.shape-option.active {
    border-color: #007bff;
    background: #e3f2fd;
}

.shape-preview {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    border: 2px solid #d32f2f;
    background: rgba(211, 47, 47, 0.1);
}

.oval-shape {
    border-radius: 50%;
    transform: scaleX(0.8);
}

.circle-shape {
    border-radius: 50%;
}

.square-shape {
    border-radius: 4px;
}

.shape-option span,
.design-sample span {
    font-size: 12px;
    color: #495057;
    font-weight: 500;
}

/* 디자인 샘플 */
.design-samples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    justify-items: center;
}

.design-sample {
    text-align: center;
    padding: 15px 8px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.design-sample:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.design-sample.active {
    border-color: #007bff;
    background: #e3f2fd;
}

.design-sample canvas {
    display: block;
    margin: 0 auto 8px;
    width: 40px;
    height: 40px;
}

/* 폰트 및 색상 선택 영역 */
.font-color-selector {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.font-selector label,
.color-selector label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    display: block;
    font-size: 14px;
    text-align: center;
}

/* 폰트 선택 */
.font-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    justify-items: center;
}

.font-option {
    text-align: center;
    padding: 12px 8px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.font-option:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.font-option.active {
    border-color: #007bff;
    background: #e3f2fd;
}

.font-option span {
    font-size: 14px;
    font-weight: 600;
}

/* 색상 선택 */
.color-options {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    justify-items: center;
}

.color-option {
    width: 100%;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    max-width: 35px;
}

.color-option:hover,
.color-option.active {
    border-color: #333;
    transform: scale(1.1);
}

/* 세밀 조정과 미리보기 영역 */
.stamp-preview-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.text-controls-section,
.preview-download-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    border: 1px solid #e9ecef;
}

.text-controls-section h3,
.preview-download-section h3 {
    margin-bottom: 20px;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

/* 텍스트 컨트롤 */
.text-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.text-size-control,
.text-weight-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.text-size-control label,
.text-weight-control label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.text-size-control input,
.text-weight-control input {
    width: 100%;
    height: 8px;
    background: #ddd;
    outline: none;
    border-radius: 5px;
    cursor: pointer;
}

.text-size-control input::-webkit-slider-thumb,
.text-weight-control input::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

/* 미리보기 영역 */
.main-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.main-preview canvas {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    margin: 0 auto 20px auto;
    background: #fff;
    display: block;
}

.preview-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

/* 정보 섹션 - 새로운 디자인 */
.stamp-info-section {
    margin-top: 50px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 0;
}

.info-section-wrapper {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.info-main-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.info-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.info-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
}

.info-subtitle {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    font-weight: 300;
    color: #fff !important;
}

.info-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px;
}

.info-feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: 15px;
    background: #f8f9ff;
    border-left: 4px solid #007bff;
    transition: transform 0.3s ease;
}

.info-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

.feature-icon {
    font-size: 32px;
    flex-shrink: 0;
    margin-top: 5px;
}

.feature-content h4 {
    margin: 0 0 10px 0;
    color: #333 !important;
    font-size: 18px;
    font-weight: 600;
}

.feature-content p {
    margin: 0;
    color: #555 !important;
    line-height: 1.6;
    font-size: 14px;
}

/* 단계별 가이드 */
.steps-container {
    padding: 40px;
    background: #f8f9fa;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #007bff;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 10px 0;
    color: #333 !important;
    font-size: 18px;
    font-weight: 600;
}

.step-content p {
    margin: 0 0 10px 0;
    color: #555 !important;
    line-height: 1.6;
    font-size: 15px;
}

.step-tip {
    background: #e3f2fd;
    color: #1565c0;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    border-left: 3px solid #2196f3;
    margin-top: 10px;
}

/* 활용팁 섹션 */
.tips-container {
    padding: 40px;
    background: #f8f9fa;
}

.tip-category {
    margin-bottom: 40px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tip-category:last-child {
    margin-bottom: 0;
}

.tip-category h4 {
    margin: 0 0 25px 0;
    color: #333 !important;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
}

.tip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.tip-item {
    padding: 20px;
    background: #f8f9ff;
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.tip-item h5 {
    margin: 0 0 10px 0;
    color: #333 !important;
    font-size: 16px;
    font-weight: 600;
}

.tip-item p {
    margin: 0;
    color: #555 !important;
    line-height: 1.6;
    font-size: 14px;
}

/* 디자인 가이드 */
.design-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.design-tip {
    padding: 25px;
    background: #fff3e0;
    border-radius: 15px;
    border-left: 5px solid #ff9800;
}

.design-tip h5 {
    margin: 0 0 15px 0;
    color: #e65100;
    font-size: 16px;
    font-weight: 600;
}

.design-tip ul {
    margin: 0;
    padding-left: 20px;
    color: #6c757d;
    line-height: 1.8;
}

.design-tip li {
    margin-bottom: 8px;
    font-size: 14px;
}

.design-tip li strong {
    color: #495057;
    font-weight: 600;
}

/* 보안 팁 */
.security-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.security-tip {
    padding: 25px;
    background: #f3e5f5;
    border-radius: 15px;
    border-left: 5px solid #9c27b0;
}

.security-tip h5 {
    margin: 0 0 15px 0;
    color: #6a1b9a;
    font-size: 16px;
    font-weight: 600;
}

.security-tip p {
    margin: 0;
    color: #6c757d;
    line-height: 1.6;
    font-size: 14px;
}

/* 인쇄 팁 */
.print-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.print-tip {
    padding: 25px;
    background: #e8f5e8;
    border-radius: 15px;
    border-left: 5px solid #4caf50;
}

.print-tip h5 {
    margin: 0 0 15px 0;
    color: #2e7d32;
    font-size: 16px;
    font-weight: 600;
}

.print-tip p {
    margin: 0;
    color: #6c757d;
    line-height: 1.6;
    font-size: 14px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .info-content-grid {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .steps-container {
        padding: 30px 20px;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .step-number {
        align-self: center;
    }
    
    .tips-container {
        padding: 30px 20px;
    }
    
    .tip-category {
        padding: 20px;
    }
    
    .tip-grid,
    .design-guide,
    .security-tips,
    .print-tips {
        grid-template-columns: 1fr;
    }
    
    .info-header {
        padding: 25px 20px;
    }
    
    .info-header h3 {
        font-size: 20px;
    }
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .stamp-input-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .shape-design-selector {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stamp-preview-controls {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .stamp-main-controls,
    .text-controls-section,
    .preview-download-section {
        padding: 20px;
    }
    
    .shape-options,
    .design-samples {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .font-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .color-options {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 기존 스타일 정리 완료 */
/* 모바일 반응형 추가 */
@media (max-width: 768px) {
    .stamp-input-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stamp-preview-controls {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}