/* WordPress Admin Panel Styles */
.wrap {
    margin: 10px 20px 0 2px;
}

/* Tab Navigation */
.nav-tab-wrapper {
    border-bottom: 1px solid #c3c4c7;
    margin: 0;
    padding-top: 9px;
    padding-bottom: 0;
    line-height: inherit;
}

.nav-tab {
    background: #dcdcde;
    border: 1px solid #c3c4c7;
    border-bottom: none;
    color: #50575e;
    font-size: 14px;
    line-height: 1.71428571;
    margin-left: 0;
    margin-right: 4px;
    padding: 5px 10px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-tab:hover,
.nav-tab:focus {
    background-color: #fff;
    color: #1d2327;
    text-decoration: none;
}

.nav-tab-active,
.nav-tab-active:focus,
.nav-tab-active:focus:active,
.nav-tab-active:hover {
    background: #f0f0f1;
    border-bottom: 1px solid #f0f0f1;
    color: #000;
}

/* Form Builder */
.form-builder {
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin-top: 20px;
    padding: 23px 24px 12px;
    position: relative;
    max-width: 800px;
}

.form-builder .form-group {
    margin: 0 0 1em 0;
    padding: 0;
}

.form-builder .form-group label {
    color: #1d2327;
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    padding: 0;
}

.form-builder .form-group input[type="text"],
.form-builder .form-group input[type="email"],
.form-builder .form-group input[type="tel"],
.form-builder .form-group input[type="number"],
.form-builder .form-group textarea,
.form-builder .form-group select {
    background-color: #fff;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    box-shadow: none;
    color: #2c3338;
    display: block;
    font-size: 14px;
    line-height: 2;
    margin: 0;
    min-height: 30px;
    padding: 0 8px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

.field-description {
    color: #646970;
    font-size: 13px;
    font-style: italic;
    margin: 4px 0 0;
}

/* Form Fields */
.form-fields {
    margin: 1.5em 0;
}

.field-list {
    margin: 0 0 1em;
}

.field-item {
    background: #fff;
    border: 1px solid #c3c4c7;
    margin-bottom: 10px;
    padding: 12px;
    position: relative;
}

.field-header {
    border-bottom: 1px solid #c3c4c7;
    margin: 0 0 12px;
    padding: 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.field-header h4 {
    color: #1d2327;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

/* Form Settings */
.form-settings {
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin: 1.5em 0;
    padding: 23px 24px 12px;
}

/* Form List Table */
.wp-list-table {
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    background: #fff;
}

.wp-list-table th {
    line-height: 1.4em;
    font-size: 14px;
}

.wp-list-table td {
    vertical-align: middle;
    padding: 8px 10px;
}

.wp-list-table .column-actions {
    width: 15%;
}

.wp-list-table .column-shortcode {
    width: 20%;
}

.wp-list-table code {
    background: #f6f7f7;
    padding: 4px 6px;
}

/* Links */
.wp-list-table a {
    color: #2271b1;
    text-decoration: none;
}

.wp-list-table a:hover {
    color: #135e96;
}

.wp-list-table .delete-form {
    color: #d63638;
}

.wp-list-table .delete-form:hover {
    color: #d63638;
    text-decoration: underline;
}

/* Form Submissions */
.form-submissions-container {
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
}

.form-submissions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #c3c4c7;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-left h2 {
    margin: 0;
    padding: 0;
    font-size: 1.3em;
    line-height: 1.4;
    font-weight: 600;
    color: #1d2327;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-to-forms {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2271b1;
    text-decoration: none;
    font-size: 13px;
}

.back-to-forms:hover {
    color: #135e96;
}

.back-to-forms .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.submission-count {
    color: #646970;
    font-size: 13px;
    padding: 4px 8px;
    background: #f0f0f1;
    border-radius: 4px;
}

.form-submissions-table-container {
    margin-top: 20px;
}

.form-submissions-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #c3c4c7;
}

.form-submissions-table th,
.form-submissions-table td {
    padding: 8px 10px;
    text-align: left;
    border: 1px solid #c3c4c7;
    vertical-align: top;
}

.form-submissions-table th {
    background: #f0f0f1;
    font-weight: 600;
    color: #1d2327;
}

.form-submissions-table td {
    background: #fff;
    color: #50575e;
}

.form-submissions-table tr:hover td {
    background: #f6f7f7;
}

/* Column Styles */
.column-date {
    width: 140px;
    white-space: nowrap;
}

.column-ip {
    width: 120px;
    font-family: monospace;
    font-size: 12px;
}

.column-textarea .textarea-content {
    max-height: 100px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* Form List */
.submissions-form-list {
    margin: 0;
}

.submissions-form-list ul {
    margin: 0;
    padding: 0;
}

.submissions-form-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #c3c4c7;
}

.submissions-form-list li:last-child {
    border-bottom: none;
}

.submissions-form-list .submissions-link {
    display: flex;
    align-items: center;
    padding: 12px;
    text-decoration: none;
    color: #2271b1;
    transition: all 0.2s ease;
}

.submissions-form-list .submissions-link:hover {
    background: #f6f7f7;
    color: #135e96;
}

.submissions-form-list .form-info {
    flex: 1;
    margin: 0 12px;
}

.submissions-form-list .form-name {
    display: block;
    font-weight: 500;
    margin-bottom: 2px;
}

.submissions-form-list .submission-count {
    font-size: 12px;
    color: #646970;
}

.submissions-form-list .dashicons {
    color: #646970;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Empty State */
.form-submissions-empty {
    text-align: center;
    padding: 40px 20px;
    color: #646970;
    background: #f0f0f1;
    border-radius: 4px;
    margin-top: 20px;
}

.form-submissions-empty .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    color: #c3c4c7;
}

.form-submissions-empty p {
    margin: 0;
    font-size: 14px;
}

/* Export Button */
.export-submissions-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.export-submissions-button:hover {
    background: #135e96;
}

.export-submissions-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Required Field */
.wp-list-table th .required {
    color: #d63638;
    margin-left: 3px;
    font-weight: 400;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .form-submissions-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .wp-list-table td,
    .wp-list-table th {
        padding: 10px;
    }

    .row-actions {
        visibility: visible;
    }
}

/* Frontend Form Styles */
.fotoshopcu-form-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.fotoshopcu-form-wrapper {
    max-width: 100%;
    margin: 30px auto;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 25px var(--fsc-shadow, rgba(0, 0, 0, 0.3));
    background: var(--fsc-card-bg, #1e1e1e);
    border: none;
}

.fotoshopcu-custom-form {
    background: var(--fsc-card-bg, #1e1e1e);
    padding: 30px;
    border-radius: 12px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.fotoshopcu-custom-form .form-title {
    margin: 0 0 25px;
    padding-bottom: 12px;
    border-bottom: none;
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Convert h2 to h3 */
.fotoshopcu-custom-form h2.form-title {
    display: none;
}

.fotoshopcu-custom-form h3.form-title {
    margin: 0 0 25px;
    padding-bottom: 12px;
    border-bottom: none;
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.fotoshopcu-custom-form .form-group {
    margin-bottom: 20px;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

.fotoshopcu-custom-form label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
}

.fotoshopcu-custom-form label .required {
    color: var(--fsc-accent, #fcd307);
    margin-left: 4px;
}

/* Input alanları için özel stil */
.fotoshopcu-custom-form input[type="text"],
.fotoshopcu-custom-form input[type="email"],
.fotoshopcu-custom-form input[type="tel"],
.fotoshopcu-custom-form input[type="number"],
.fotoshopcu-custom-form input[type="date"],
.fotoshopcu-custom-form select,
.fotoshopcu-custom-form textarea {
    display: block;
    width: 100% !important;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    color: #ffffff;
    background: var(--fsc-secondary-bg, #2a2a2a);
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin: 0;
    max-width: none !important;
    overflow: hidden;
}

.fotoshopcu-custom-form textarea {
    min-height: 120px;
    resize: vertical;
}

.fotoshopcu-custom-form input:focus,
.fotoshopcu-custom-form select:focus,
.fotoshopcu-custom-form textarea:focus {
    border: none;
    box-shadow: 0 0 0 2px rgba(252, 211, 7, 0.2);
    outline: none;
    background: var(--fsc-card-bg, #1e1e1e);
}

.fotoshopcu-custom-form .submit-button {
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 0;
    box-sizing: border-box;
    max-width: 100%;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    width: fit-content;
    height: auto;
}

.fotoshopcu-custom-form .submit-button:hover {
    transform: scale(1.05);
}

.fotoshopcu-custom-form .submit-button svg {
    display: inline-block;
    flex-shrink: 0;
}

/* Form başarı mesajı */
.fotoshopcu-form-success,
.success-message {
    background: rgba(252, 211, 7, 0.15);
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 6px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
    border: none;
    width: 100%;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Row Actions */
.row-actions {
    color: #666;
    font-size: 13px;
    visibility: hidden;
}

.wp-list-table tr:hover .row-actions {
    visibility: visible;
}

.row-actions .trash a {
    color: #d63638;
    text-decoration: none;
}

.row-actions .trash a:hover {
    color: #d63638;
    text-decoration: underline;
}

/* Bulk Actions */
.tablenav {
    clear: both;
    height: auto;
    margin: 8px 0 15px;
    padding-top: 5px;
    vertical-align: middle;
}

.tablenav.top {
    margin-top: 0;
}

.bulkactions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bulkactions select {
    float: left;
    margin-right: 8px;
    max-width: 200px;
}

/* Checkbox Column */
.check-column {
    width: 2.2em;
    padding: 8px 10px;
}

.check-column input[type="checkbox"] {
    margin: -4px 0 0 0;
    vertical-align: middle;
}

/* Table Adjustments */
.wp-list-table th.check-column {
    padding: 11px 0 0 3px;
}

.wp-list-table .check-column {
    width: 2.2em;
    padding: 8px 0 0 3px;
    vertical-align: top;
}

/* Form Sections */
.form-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    margin-bottom: 15px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.section-header {
    padding: 8px 12px;
    margin: 0;
    border-bottom: 1px solid #ccd0d4;
    background: #f8f9fa;
    cursor: pointer;
}

.section-header h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.section-header .dashicons {
    margin-right: 5px;
    transition: transform 0.2s ease;
}

.section-header.collapsed .dashicons {
    transform: rotate(-90deg);
}

.section-content {
    padding: 15px;
    background: #fff;
}

.section-content.collapsed {
    display: none;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    max-width: 400px;
}

.field-description {
    color: #666;
    font-style: italic;
    margin: 5px 0 0;
    font-size: 13px;
}

/* Form Actions */
.form-actions {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #ccd0d4;
    text-align: right;
}

/* Field Items */
.field-item {
    background: #fff;
    border: 1px solid #ccd0d4;
    margin-bottom: 15px;
    position: relative;
}

.field-header {
    padding: 8px 12px;
    background: #f8f9fa;
    border-bottom: 1px solid #ccd0d4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.field-header h4 {
    margin: 0;
    font-size: 13px;
}

.field-content {
    padding: 15px;
}

.field-content.collapsed {
    display: none;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .fotoshopcu-form-wrapper {
        padding: 0;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    }
    
    .fotoshopcu-custom-form {
        padding: 20px;
    }
    
    .fotoshopcu-custom-form .form-title,
    .fotoshopcu-custom-form h3.form-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .fotoshopcu-custom-form input[type="text"],
    .fotoshopcu-custom-form input[type="email"],
    .fotoshopcu-custom-form input[type="tel"],
    .fotoshopcu-custom-form input[type="number"],
    .fotoshopcu-custom-form input[type="date"],
    .fotoshopcu-custom-form select,
    .fotoshopcu-custom-form textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .fotoshopcu-custom-form .submit-button {
        padding: 10px 20px;
        font-size: 15px;
    }
} 