.pbpc-dashboard {
    max-width: 900px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.pbpc-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.pbpc-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.pbpc-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.pbpc-header .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px;
    backdrop-filter: blur(10px);
}

.pbpc-subtitle {
    margin: 12px 0 0 0;
    opacity: 0.9;
    font-size: 18px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.pbpc-content {
    max-width: 900px;
    margin: 0 auto;
}

.pbpc-settings-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8eaed;
    position: relative;
}

.pbpc-settings-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 16px 16px 0 0;
}

.pbpc-submit-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f1f3f4;
    text-align: center;
}

.pbpc-submit-section .button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pbpc-submit-section .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.pbpc-submit-section .button:active {
    transform: translateY(-1px);
}

.pbpc-submit-section .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Form styling */
.form-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.form-table th {
    padding: 24px 20px 24px 0;
    font-weight: 600;
    color: #1d2327;
    width: 220px;
    font-size: 15px;
    vertical-align: top;
    border-bottom: 1px solid #f1f3f4;
}

.form-table td {
    padding: 24px 20px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: top;
}

.form-table tr:last-child th,
.form-table tr:last-child td {
    border-bottom: none;
}

.form-table select,
.form-table input[type="text"],
.form-table input[type="number"] {
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 250px;
    background: #fafbfc;
    color: #1d2327;
}

.form-table select:hover,
.form-table input[type="text"]:hover,
.form-table input[type="number"]:hover {
    border-color: #c1c7cd;
    background: #f8f9fa;
}

.form-table select:focus,
.form-table input[type="text"]:focus,
.form-table input[type="number"]:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
}

.form-table .description {
    margin-top: 8px;
    color: #646970;
    font-style: normal;
    font-size: 13px;
    line-height: 1.4;
    display: block;
}

/* Enhanced select styling */
.form-table select {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23646970" d="M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Settings section styling */
.pbpc-settings-card h2 {
    margin: 0 0 30px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1d2327;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f3f4;
}

/* WordPress Admin Notices */
.notice {
    margin: 20px 0;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.notice-success {
    border-left-color: #00a32a;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.notice-error {
    border-left-color: #d63638;
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
}

.notice-warning {
    border-left-color: #dba617;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.notice-info {
    border-left-color: #72aee6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.notice p {
    margin: 0;
    font-weight: 500;
    color: #1d2327;
}

.notice-success p {
    color: #0f5132;
}

.notice-error p {
    color: #7f1d1d;
}

.notice-warning p {
    color: #92400e;
}

.notice-info p {
    color: #1e40af;
}

/* Responsive design */
@media (max-width: 768px) {
    .pbpc-dashboard {
        margin: 10px;
    }
    
    .pbpc-header {
        padding: 30px 20px;
        border-radius: 12px;
    }
    
    .pbpc-header h1 {
        font-size: 24px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .pbpc-header .dashicons {
        font-size: 28px;
        width: 28px;
        height: 28px;
    }
    
    .pbpc-settings-card {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .form-table {
        display: block;
    }
    
    .form-table tbody {
        display: block;
    }
    
    .form-table tr {
        display: block;
        margin-bottom: 20px;
        padding: 16px;
        background: #fafbfc;
        border-radius: 8px;
        border: 1px solid #e1e5e9;
    }
    
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
        border: none;
    }
    
    .form-table th {
        font-size: 14px;
        margin-bottom: 8px;
        color: #667eea;
        font-weight: 600;
    }
    
    .form-table select,
    .form-table input[type="text"],
    .form-table input[type="number"] {
        min-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .pbpc-submit-section .button {
        width: 100%;
        justify-content: center;
        padding: 18px 24px;
    }
}

@media (max-width: 480px) {
    .pbpc-header {
        padding: 24px 16px;
    }
    
    .pbpc-header h1 {
        font-size: 20px;
    }
    
    .pbpc-subtitle {
        font-size: 16px;
    }
    
    .pbpc-settings-card {
        padding: 20px 16px;
    }
} 