/**
 * Easy WooCommerce PDF Catalog Admin Styles
 * Modern & Premium UI - V2
 */

:root {
    --kgdc-primary: #0a5fa5;
    --kgdc-primary-dark: #084d85;
    --kgdc-accent: #e67e22;
    --kgdc-bg: #f0f2f5;
    --kgdc-card-bg: #ffffff;
    --kgdc-text: #2c3e50;
    --kgdc-text-light: #7f8c8d;
    --kgdc-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.kgdc-settings-wrap {
    max-width: 1100px;
    margin: 40px auto;
    color: var(--kgdc-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.kgdc-card {
    background: var(--kgdc-card-bg);
    border-radius: 16px;
    box-shadow: var(--kgdc-shadow);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.kgdc-card:hover {
    transform: translateY(-2px);
}

.kgdc-card-header {
    background: linear-gradient(135deg, var(--kgdc-primary) 0%, var(--kgdc-primary-dark) 100%);
    padding: 25px 35px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 15px;
}

.kgdc-card-header h3 {
    margin: 0;
    color: #ffffff !important;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.kgdc-card-body {
    padding: 40px 35px;
}

/* Form Alignment using Grid */
.kgdc-form-group {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    margin-bottom: 35px;
    align-items: start;
}

.kgdc-label label {
    font-weight: 600;
    color: #34495e;
    font-size: 15px;
    display: block;
    padding-top: 12px;
}

.kgdc-control {
    max-width: 650px;
}

.kgdc-input,
.kgdc-textarea,
.kgdc-select {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #edf2f7;
    border-radius: 10px;
    transition: all 0.25s ease;
    background-color: #f8fafc;
    font-size: 14px;
    color: #2d3748;
}

.kgdc-input:focus,
.kgdc-textarea:focus,
.kgdc-select:focus {
    border-color: var(--kgdc-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(10, 95, 165, 0.1);
    outline: none;
}

.kgdc-textarea {
    min-height: 120px;
    line-height: 1.6;
}

.kgdc-note {
    font-size: 13px;
    color: var(--kgdc-text-light);
    margin-top: 10px;
    line-height: 1.5;
}

.kgdc-note b {
    color: var(--kgdc-primary);
    font-weight: 600;
}

/* Image Preview Enhancements */
.kgdc-logo-preview {
    margin-bottom: 20px;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    display: inline-block;
    background: #fbfcfe;
}

.kgdc-logo-preview img {
    max-width: 280px;
    height: auto;
    display: block;
}

.kgdc-upload-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Layout Selector & Grid Preview */
.kgdc-layout-selector {
    display: flex;
    gap: 40px;
    align-items: start;
    margin-top: 5px;
}

.kgdc-layout-preview {
    border: 1px solid #e2e8f0;
    padding: 12px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.kgdc-layout-preview img {
    max-width: 320px;
    height: auto;
    border-radius: 6px;
    display: block;
}

/* Premium Buttons */
.kgdc-button-primary {
    background: var(--kgdc-primary) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 40px !important;
    height: auto !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 15px rgba(10, 95, 165, 0.25) !important;
    text-transform: none !important;
}

.kgdc-button-primary:hover {
    background: var(--kgdc-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 95, 165, 0.35) !important;
}

.kgdc-button-primary:active {
    transform: translateY(0);
}

.kgdc-submit-wrap {
    margin-top: 20px;
    padding-top: 40px;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: flex-start;
}

/* Email History Specifics */
.kgdc-card-body p {
    font-size: 15px;
    color: #475569;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Thickbox Ultra-Premium Overrides */
#TB_window {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden;
}

#TB_title {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    height: 60px !important;
}

#TB_ajaxWindowTitle {
    padding: 20px 30px !important;
    color: var(--kgdc-primary) !important;
    font-weight: 700 !important;
    font-size: 17px !important;
    text-transform: none !important;
}

#TB_closeWindowButton {
    top: 18px !important;
    right: 20px !important;
    color: #94a3b8 !important;
}

#TB_closeWindowButton:hover {
    color: var(--kgdc-primary) !important;
}

/* Modal Inner Polish */
.kgdc-modal-inner {
    background: #ffffff;
}

/* Error State */
.kgdc-error-bar {
    background: #fff5f5;
    border-left: 6px solid #f56565;
    padding: 25px 35px;
    border-radius: 14px;
    margin: 40px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.kgdc-error-bar h1 {
    color: #c53030;
    font-size: 20px;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
