/* ============================================
   Partner Panel - Modern & Beautiful CSS
   ============================================ */

:root {
    --primary-color: #438dcb;
    --primary-dark: #03395c;
    --primary-light: #5ba3e0;
    --secondary-color: #03395c;
    --success-color: #10b981;
    --info-color: #438dcb;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #03395c;
    --light-color: #f0f7ff;
    --border-color: #d1e7ff;
    --text-primary: #03395c;
    --text-secondary: #5a7a9a;
    --shadow-sm: 0 1px 2px 0 rgba(3, 57, 92, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(3, 57, 92, 0.1), 0 2px 4px -1px rgba(3, 57, 92, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(3, 57, 92, 0.1), 0 4px 6px -2px rgba(3, 57, 92, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(3, 57, 92, 0.15), 0 10px 10px -5px rgba(3, 57, 92, 0.08);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Global Styles
   ============================================ */

.partner-panel {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f0ff 50%, #d1e7ff 100%);
    min-height: 100vh;
}

.content {
    padding: 2rem;
    background: transparent;
}

.form-create-page {
    padding-top: 1rem;
}

.form-card-body {
    padding: 2.5rem !important;
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.form-section-title i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.form-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    background: linear-gradient(135deg, rgba(67, 141, 203, 0.02) 0%, rgba(3, 57, 92, 0.01) 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

/* ============================================
   Cards - Modern & Elegant
   ============================================ */

.card {
    background: #ffffff;
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: var(--transition);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-bottom: 2px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.card-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

/* ============================================
   Stats Cards - Animated
   ============================================ */

.stats-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: var(--transition);
}

.stats-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.stats-card:hover::before {
    top: -30%;
    right: -30%;
}

.stats-card.info {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.stats-card.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.stats-card.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stats-card.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.stats-card .avatar-sm {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.stats-card .avatar-title {
    font-size: 1.75rem;
    color: white;
}

.stats-card h4 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.5rem 0 0 0;
    color: white;
}

.stats-card p {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin: 0;
}

/* ============================================
   Buttons - Modern & Interactive
   ============================================ */

.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 141, 203, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: 0 6px 20px rgba(67, 141, 203, 0.6);
    transform: translateY(-2px);
}

.btn-info {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 141, 203, 0.4);
}

.btn-info:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: 0 6px 20px rgba(67, 141, 203, 0.6);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, var(--success-color) 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, var(--warning-color) 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, var(--danger-color) 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.6);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ============================================
   Page Title
   ============================================ */

.page-title-box {
    margin-bottom: 2rem;
    padding: 1.75rem 2rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
}

.page-title-box h4 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* ============================================
   Tables - Modern & Clean
   ============================================ */

.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    border: none;
    border-bottom: 2px solid var(--border-color);
}

.table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(67, 141, 203, 0.08) 0%, rgba(3, 57, 92, 0.05) 100%);
    transform: scale(1.01);
    box-shadow: var(--shadow-sm);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(67, 141, 203, 0.08);
}

/* ============================================
   Badges - Modern & Colorful
   ============================================ */

.badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%) !important;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: white;
    box-shadow: 0 2px 8px rgba(67, 141, 203, 0.3);
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    color: white;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%) !important;
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.badge.bg-info {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: white;
    box-shadow: 0 2px 8px rgba(67, 141, 203, 0.3);
}

/* ============================================
   Forms - Modern Inputs
   ============================================ */

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-size: 0.9375rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* ============================================
   Alerts - Beautiful Notifications
   ============================================ */

.alert {
    border: none;
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #059669;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #dc2626;
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
    color: #0891b2;
    border-left: 4px solid var(--info-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #d97706;
    border-left: 4px solid var(--warning-color);
}

/* ============================================
   Quick Actions Section
   ============================================ */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.quick-action-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transition: var(--transition);
}

.quick-action-card:hover::before {
    transform: scaleX(1);
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    text-decoration: none;
    color: inherit;
}

.quick-action-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quick-action-card h5 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.quick-action-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* ============================================
   Empty States
   ============================================ */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state .icon {
    font-size: 4rem;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ============================================
   Images - Rounded & Styled
   ============================================ */

img.rounded {
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

img.rounded:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

/* ============================================
   Animations
   ============================================ */

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.5s ease-out;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .content {
        padding: 1rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .page-title-box {
        padding: 1rem;
    }
}

/* ============================================
   Loading States
   ============================================ */

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Custom Scrollbar
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

/* ============================================
   Utility Classes
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-xl);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   Form Builder - Modern UX/UI
   ============================================ */

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border: 2px dashed var(--primary-color);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(67, 141, 203, 0.05) 0%, rgba(3, 57, 92, 0.02) 100%);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--primary-dark);
    background: linear-gradient(135deg, rgba(67, 141, 203, 0.1) 0%, rgba(3, 57, 92, 0.05) 100%);
    transform: translateY(-2px);
}

.file-upload-label i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.file-upload-text {
    color: var(--text-primary);
    font-weight: 600;
}

/* Template Section */
.template-section {
    background: linear-gradient(135deg, rgba(67, 141, 203, 0.02) 0%, rgba(3, 57, 92, 0.01) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.template-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.template-section-title i {
    color: var(--primary-color);
}

.template-section-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.template-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.template-btn {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.template-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transition: var(--transition);
}

.template-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.template-btn:hover::before {
    transform: scaleX(1);
}

.template-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(67, 141, 203, 0.1) 0%, rgba(3, 57, 92, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.template-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.template-btn:hover .template-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: scale(1.1);
}

.template-btn:hover .template-icon i {
    color: white;
}

.template-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* Fields Section */
.fields-section {
    background: linear-gradient(135deg, rgba(67, 141, 203, 0.02) 0%, rgba(3, 57, 92, 0.01) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.fields-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.fields-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fields-title i {
    color: var(--primary-color);
}

.fields-count {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.fields-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.fields-container {
    min-height: 200px;
}

.empty-fields-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-fields-state i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1rem;
    display: block;
}

.empty-fields-state p {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-fields-state small {
    color: var(--text-secondary);
}

/* Field Item */
.field-item {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.field-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.field-item-header {
    background: linear-gradient(135deg, rgba(67, 141, 203, 0.05) 0%, rgba(3, 57, 92, 0.02) 100%);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.field-item-handle {
    color: var(--text-secondary);
    cursor: move;
    font-size: 1.25rem;
    transition: var(--transition);
}

.field-item-handle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Sortable Placeholder */
.sortable-placeholder {
    height: 100px;
    background: linear-gradient(135deg, rgba(67, 141, 203, 0.1) 0%, rgba(3, 57, 92, 0.05) 100%);
    border: 2px dashed var(--primary-color);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Sortable Helper */
.ui-sortable-helper {
    opacity: 0.9;
    box-shadow: var(--shadow-xl);
    transform: rotate(2deg);
}

.ui-sortable-helper .field-item {
    border-color: var(--primary-color);
}

.field-item-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.field-item-title i {
    color: var(--primary-color);
}

.field-item-remove {
    background: transparent;
    border: none;
    color: var(--danger-color);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.field-item-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.field-item-body {
    padding: 1.5rem;
}

/* Form Switch */
.form-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0.5rem;
}

.form-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.form-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.form-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition);
    border-radius: 34px;
}

.form-switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

.form-switch input:checked + .slider {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.form-switch input:checked + .slider:before {
    transform: translateX(24px);
}

.form-switch input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(67, 141, 203, 0.2);
}

/* Status Toggle */
.form-status-toggle {
    background: linear-gradient(135deg, rgba(67, 141, 203, 0.05) 0%, rgba(3, 57, 92, 0.02) 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

.form-status-toggle:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.status-toggle-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.status-toggle-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.status-toggle-info {
    flex: 1;
}

.status-toggle-title {
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.status-toggle-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.status-toggle-switch {
    display: flex;
    align-items: center;
}

/* ============================================
   Dashboard - Kurumsal Tasarım
   ============================================ */

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Summary Cards (Genel Özet) */
.summary-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.dashboard-stats .summary-card {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.summary-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.summary-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.dashboard-stats .summary-card-header {
    background: linear-gradient(135deg, rgba(67, 141, 203, 0.14) 0%, rgba(3, 57, 92, 0.08) 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.summary-card-header h6 {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.dashboard-stats .summary-card-header h6 {
    color: var(--text-primary);
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.summary-card-body {
    padding: 1.5rem;
}

.summary-card-body h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.dashboard-stats .summary-card-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.dashboard-stats .summary-card-body h3 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.35rem;
}

.dashboard-stats .summary-card-body p {
    color: rgba(15, 23, 42, 0.65);
}

.summary-card-body p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Content Cards */
.content-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.content-card-header {
    background: linear-gradient(135deg, rgba(67, 141, 203, 0.05) 0%, rgba(3, 57, 92, 0.02) 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-card-header h6 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-card-header h6 i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.content-card-body {
    padding: 1.5rem;
}

.btn-view-all {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid var(--primary-color);
    background: transparent;
}

.btn-view-all:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 141, 203, 0.3);
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.data-table thead {
    background: linear-gradient(135deg, rgba(67, 141, 203, 0.05) 0%, rgba(3, 57, 92, 0.02) 100%);
}

.data-table thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: rgba(67, 141, 203, 0.02);
}

.data-table tbody td {
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    vertical-align: middle;
}

.data-table tbody td strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.inactive {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

/* Action Buttons */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: white;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-action:hover {
    background: linear-gradient(135deg, #d97706 0%, var(--warning-color) 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-action i {
    font-size: 1.125rem;
}

/* Link External */
.link-external {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.link-external:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.link-external i {
    font-size: 1rem;
}

/* Empty Content */
.empty-content {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-content i {
    font-size: 4rem;
    color: var(--border-color);
    display: block;
    margin-bottom: 1.5rem;
}

.empty-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.empty-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
}
