/* ShopEdit.cshtml styles - Extracted from view */

/* Upload styles */
.bar {
    height: 18px;
    background: green;
}

.uploadedbox {
    display: inline-block;
    position: relative;
    text-align: center;
    margin-right: 3px;
    margin-top: 10px;
}

.uploadedbox .link {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 20px;
}

.photocontainer {
    /*min-height:110px;*/
}

.addressguide {
    font-size: 11px;
}

.bannerdiv {
    display: inline-block;
    border: 2px solid #ccc;
}

/* Translation button spinning animation */
.spinning {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* General form styles */
h1 {
    padding-top: 20px;
    padding-bottom: 20px;
}

.halfbox {
    width: 50%;
}

.form-label {
    padding-top: 5px;
    padding-bottom: 3px;
}

.loadrecipientbutton {
    width: 200px;
    margin-bottom: 5px;
}

.has-error,
.has-error:focus {
    border: 2px solid #e74c3c;
}

/* Shop Edit Tabs */
.shop-edit-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}
.shop-edit-tabs .tab-btn {
    padding: 12px 24px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    border-radius: 8px 8px 0 0;
    margin-right: 4px;
    transition: all 0.2s;
}
.shop-edit-tabs .tab-btn:hover {
    background: #e8e8e8;
}
.shop-edit-tabs .tab-btn.active {
    background: #3498db;
    color: white;
}
/* Page tabs only - exclude modal tabs */
#tab-basic, #tab-website {
    display: none;
}
#tab-basic.active, #tab-website.active {
    display: block;
}

/* Sub-tabs */
.sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}
.sub-tab-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s;
}
.sub-tab-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}
.sub-tab-btn.active {
    background: #2ecc71;
    color: white;
    border-color: #27ae60;
}
.sub-tab-content {
    display: none;
}
.sub-tab-content.active {
    display: block;
}
.sub-tab-panel {
    padding: 15px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

/* site.hojuen.com Phase 3 styles */
.section-title {
    font-size: 16px;
    font-weight: bold;
    margin: 25px 0 15px 0;
    padding: 10px 0;
    border-bottom: 2px solid #3498db;
    color: #2c3e50;
}

.business-hours-table {
    width: 100%;
    border-collapse: collapse;
}

.business-hours-table th,
.business-hours-table td {
    padding: 8px 5px;
    border-bottom: 1px solid #eee;
}

.business-hours-table th {
    text-align: left;
    width: 80px;
}

.business-hours-table .today-row {
    background: #e8f6ff;
}

/* Time picker dropdown styles */
.time-picker-group {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.time-select {
    width: 60px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
}

.time-select:disabled {
    background: #f5f5f5;
    color: #999;
}

.time-separator {
    font-weight: bold;
    color: #666;
    padding: 0 2px;
}

/* Quick settings panel */
.quick-settings-panel {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.quick-settings-title {
    font-weight: 600;
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.quick-settings-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-label {
    font-size: 13px;
    color: #666;
}

.quick-open-checkbox {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    margin-right: 10px;
}

.quick-open-checkbox input {
    margin: 0;
}

.service-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    align-items: center;
}

.service-row input {
    flex: 1;
}

.service-row .service-name { flex: 2; }
.service-row .service-desc { flex: 3; }
.service-row .service-price { flex: 1; max-width: 100px; }
.service-row .service-duration { flex: 1; max-width: 80px; }

.service-row .btn-remove-service {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.btn-add-service {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 3px;
    margin-top: 10px;
}

/* Service Row V2 - 2줄 레이아웃 */
.service-row-v2 {
    margin-bottom: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}
.service-row-line {
    display: flex;
    gap: 10px;
    align-items: center;
}
.service-row-line input[name="service_name[]"],
.service-row-line input[name="service_nameen[]"] {
    flex: 0 0 180px;
}
.service-row-line .service-desc-wide {
    flex: 1;
}
.service-row-line .service-price {
    flex: 0 0 80px;
}
.service-row-line .service-duration {
    flex: 0 0 60px;
}
.service-row-en {
    margin-top: 8px;
    padding-left: 0;
}
.service-row-en input {
    background: #f0f8ff !important;
}
.service-translate-btns {
    text-align: center;
    margin: 4px 0;
}
.service-translate-btns .btn {
    padding: 2px 8px;
    font-size: 11px;
}
.service-row-v2 .btn-remove-service {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Service Image */
.service-image-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.service-image-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.service-image-btn {
    padding: 4px 10px;
    font-size: 11px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
.service-image-btn:hover {
    background: #2980b9;
}
.service-image-remove {
    padding: 4px 8px;
    font-size: 11px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.site-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.site-settings-grid .full-width {
    grid-column: 1 / -1;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.slug-preview {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

/* Content Manager Styles (Phase 4) */
.content-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    background: #fff;
}
.content-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    border-radius: 5px 5px 0 0;
}
.content-item-title {
    font-weight: bold;
    color: #333;
}
.btn-remove-content {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}
.content-item-body {
    padding: 15px;
}
.content-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.content-field {
    flex: 1;
}
.content-field.full-width {
    flex: 1 1 100%;
}
.content-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}
.content-image-upload {
    display: flex;
    align-items: center;
    gap: 10px;
}
.content-image-preview {
    max-width: 150px;
    max-height: 100px;
    border: 1px solid #ddd;
    border-radius: 3px;
}
.btn-add-content {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 3px;
    margin-top: 10px;
}
.btn-add-content:hover {
    background: #2980b9;
}
/* Multi-column layout editor */
.column-items-container {
    display: grid;
    gap: 15px;
}
.column-items-container.cols-2 { grid-template-columns: 1fr 1fr; }
.column-items-container.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.column-items-container.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.column-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    background: #fafafa;
}
.column-item label {
    font-size: 12px;
    color: #666;
}
.column-item input,
.column-item textarea {
    width: 100%;
    margin-bottom: 8px;
}
.column-item-image-preview {
    max-width: 100%;
    max-height: 80px;
    display: block;
    margin-bottom: 5px;
}
.col-lang-section {
    margin-top: 8px;
    padding: 8px;
    border-radius: 4px;
}
.col-lang-section:first-of-type {
    background: #fffef0;
}
.col-lang-section:last-of-type {
    background: #f0f8ff;
}
.col-lang-section small {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
}
.col-translate-btns .btn {
    padding: 2px 8px;
    font-size: 11px;
}

/* Standard layout language sections */
.std-lang-section {
    padding: 10px;
    border-radius: 4px;
}
.std-lang-ko {
    background: #fffef0;
}
.std-lang-en {
    background: #f0f8ff;
}
.std-lang-section textarea {
    background: #fff;
}

/* Logo container styles */
.logo-upload-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
#currentLogoContainer {
    display: flex;
    align-items: center;
    gap: 10px;
}
#currentLogoImg {
    max-width: 150px;
    max-height: 60px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Hero Images carousel styles */
.hero-images-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
    min-height: 80px;
    padding: 10px;
    border: 1px dashed #ddd;
    border-radius: 5px;
    background: #fafafa;
}
.hero-image-item {
    position: relative;
    width: 120px;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}
.hero-image-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}
.hero-image-item .hero-remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
    padding: 0;
    cursor: pointer;
}
.hero-image-item .hero-remove-btn:hover {
    background: #dc3545;
}

/* Hero/Gallery Image Menu */
.hero-image-menu {
    position: absolute;
    top: 2px;
    left: 2px;
}
.hero-menu-btn {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 3px;
    width: 22px;
    height: 20px;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}
.hero-menu-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}
.hero-menu-dropdown {
    display: none;
    position: absolute;
    top: 22px;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    min-width: 120px;
    z-index: 100;
}
.hero-menu-dropdown a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
}
.hero-menu-dropdown a:hover {
    background: #f5f5f5;
}
.hero-menu-dropdown a:first-child {
    border-radius: 4px 4px 0 0;
}
.hero-menu-dropdown a:last-child {
    border-radius: 0 0 4px 4px;
}

.collapsible-section {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
}

.collapsible-header {
    padding: 12px 15px;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collapsible-header:hover {
    background: #eee;
}

.collapsible-content {
    padding: 15px;
    display: none;
}

.collapsible-content.open {
    display: block;
}
