/**
 * Sentient Forms Admin CSS
 */

/* General Styles */
.sentient-forms-admin {
    max-width: 1200px;
}

.sentient-forms-admin h1 {
    margin-bottom: 20px;
}

.sentient-forms-admin .description {
    font-style: italic;
    color: #666;
}

.sentient-forms-admin .success {
    color: #46b450;
    font-weight: bold;
}

.sentient-forms-admin .error {
    color: #dc3232;
    font-weight: bold;
}

/* Settings Sections */
.sentient-forms-settings-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.sentient-forms-settings-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Dashboard Widgets */
.sentient-forms-dashboard-header {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.sentient-forms-dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.sentient-forms-dashboard-widget {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
}

.sentient-forms-dashboard-widget h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sentient-forms-license-status {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.sentient-forms-license-valid {
    color: #46b450;
}

.sentient-forms-license-invalid,
.sentient-forms-license-expired,
.sentient-forms-license-disabled {
    color: #dc3232;
}

.sentient-forms-license-inactive {
    color: #f0c33c;
}

.sentient-forms-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.sentient-forms-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #2271b1;
    display: block;
}

.sentient-forms-stat-label {
    font-size: 14px;
    color: #666;
}

.sentient-forms-dashboard-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sentient-forms-dashboard-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
}

.sentient-forms-dashboard-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sentient-forms-getting-started li {
    margin-bottom: 20px;
}

.sentient-forms-getting-started h4 {
    margin: 0 0 5px 0;
}

.sentient-forms-action-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sentient-forms-action-icon {
    margin-right: 15px;
}

.sentient-forms-action-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.sentient-forms-action-details h4 {
    margin: 0 0 5px 0;
}

.sentient-forms-action-details p {
    margin: 0;
    color: #666;
}

/* License Page */
.sentient-forms-license-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.sentient-forms-license-details {
    border-collapse: collapse;
    width: 100%;
    max-width: 500px;
}

.sentient-forms-license-details th,
.sentient-forms-license-details td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.sentient-forms-license-details th {
    width: 150px;
    color: #666;
}

.sentient-forms-license-plans {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sentient-forms-license-plan {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    position: relative;
    text-align: center;
}

.sentient-forms-license-plan-featured {
    border-color: #2271b1;
    box-shadow: 0 0 10px rgba(34, 113, 177, 0.2);
}

.sentient-forms-license-plan-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #2271b1;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.sentient-forms-license-plan h3 {
    margin-top: 0;
}

.sentient-forms-license-plan-price {
    margin: 15px 0;
}

.sentient-forms-license-plan-amount {
    font-size: 24px;
    font-weight: bold;
}

.sentient-forms-license-plan-period {
    font-size: 14px;
    color: #666;
}

.sentient-forms-license-plan-features {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.sentient-forms-license-plan-features li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.sentient-forms-license-plan-features li:last-child {
    border-bottom: none;
}

/* Forms Page */
.sentient-forms-forms-header {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.sentient-forms-forms-table-wrapper {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 0;
    margin-bottom: 20px;
    overflow: hidden;
}

.sentient-forms-forms-table {
    margin: 0;
}

.sentient-forms-form-title-column {
    width: 30%;
}

.sentient-forms-form-builder-column {
    width: 20%;
}

.sentient-forms-form-status-column {
    width: 20%;
}

.sentient-forms-form-actions-column {
    width: 30%;
}

.sentient-forms-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.sentient-forms-status-enabled {
    background: #edfaef;
    color: #46b450;
}

.sentient-forms-status-disabled {
    background: #f8f8f8;
    color: #999;
}

.sentient-forms-action-count {
    font-size: 12px;
    color: #666;
}

/* Modal */
.sentient-forms-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.sentient-forms-modal.sentient-forms-modal-open {
    display: block;
}

.sentient-forms-modal-content {
    background-color: #fefefe;
    margin: 50px auto;
    padding: 0;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sentient-forms-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.sentient-forms-modal-header h2 {
    margin: 0;
    padding: 0;
}

.sentient-forms-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
}

.sentient-forms-modal-body {
    padding: 20px;
}

.sentient-forms-form-settings-section {
    margin-bottom: 30px;
}

.sentient-forms-form-settings-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sentient-forms-actions-tabs {
    margin-top: 20px;
}

.sentient-forms-actions-tabs-nav {
    display: flex;
    border-bottom: 1px solid #ccd0d4;
    margin-bottom: 20px;
    overflow-x: auto;
}

.sentient-forms-actions-tab-button {
    padding: 10px 15px;
    background: #f8f8f8;
    border: 1px solid #ccd0d4;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    margin-right: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
}

.sentient-forms-actions-tab-button .dashicons {
    margin-right: 5px;
}

.sentient-forms-actions-tab-button.active {
    background: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    color: #2271b1;
}

.sentient-forms-actions-tab-content {
    display: none;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.sentient-forms-actions-tab-content.active {
    display: block;
}

.sentient-forms-action-header {
    margin-bottom: 20px;
}

.sentient-forms-action-header h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.sentient-forms-action-header p {
    margin: 0;
    color: #666;
}

.sentient-forms-form-settings-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.sentient-forms-form-settings-actions .spinner {
    float: none;
    margin-top: 0;
}

/* Actions Page */
.sentient-forms-actions-header {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.sentient-forms-actions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.sentient-forms-action-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    overflow: hidden;
}

.sentient-forms-action-card-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.sentient-forms-action-card-header .sentient-forms-action-icon {
    margin-right: 15px;
}

.sentient-forms-action-card-header .sentient-forms-action-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #2271b1;
}

.sentient-forms-action-card-header h2 {
    margin: 0;
    font-size: 18px;
}

.sentient-forms-action-card-body {
    padding: 20px;
}

.sentient-forms-action-description {
    margin-bottom: 20px;
}

.sentient-forms-action-details h3 {
    font-size: 16px;
    margin: 20px 0 10px 0;
}

.sentient-forms-action-hooks,
.sentient-forms-action-compatibility {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.sentient-forms-action-hooks li,
.sentient-forms-action-compatibility li {
    padding: 5px 0;
}

.sentient-forms-hook-id {
    font-size: 12px;
    color: #666;
}

.sentient-forms-action-settings table {
    border-collapse: collapse;
    width: 100%;
}

.sentient-forms-action-settings th,
.sentient-forms-action-settings td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.sentient-forms-action-settings th {
    background: #f8f8f8;
}

.sentient-forms-action-card-footer {
    padding: 15px 20px;
    background: #f8f8f8;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.sentient-forms-actions-footer {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.sentient-forms-actions-cta {
    text-align: center;
}

.sentient-forms-actions-cta h3 {
    margin-top: 0;
}

/* Responsive Adjustments */
@media screen and (max-width: 782px) {
    .sentient-forms-dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .sentient-forms-actions-list {
        grid-template-columns: 1fr;
    }
    
    .sentient-forms-license-plans {
        grid-template-columns: 1fr;
    }
    
    .sentient-forms-modal-content {
        width: 95%;
        margin: 20px auto;
    }
}
