/**
 * SPA Common Styles
 * Shared across all SPA pages - ORISKIN Brand
 */

:root {
    --primary: #F56B6B;
    --primary-hover: #E55858;
    --primary-light: #FFDADA;
    --bg-main: #F9FAFB;
}

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   Gradient & Effects
   ============================================ */

.gradient-bg {
    background: linear-gradient(135deg, #F56B6B 0%, #E55858 100%);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ============================================
   Card & Button Styles
   ============================================ */

.card-shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.btn-primary {
    background: linear-gradient(135deg, #F56B6B 0%, #E55858 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 107, 107, 0.3);
}

/* ============================================
   Sidebar Styles
   ============================================ */

.sidebar-item {
    transition: all 0.2s ease;
}

.sidebar-item:hover {
    background: linear-gradient(90deg, rgba(245, 107, 107, 0.1) 0%, transparent 100%);
}

.sidebar-item.active {
    background: linear-gradient(90deg, rgba(245, 107, 107, 0.15) 0%, transparent 100%);
    border-left: 3px solid var(--primary);
}

/* ============================================
   DataTable Styles
   ============================================ */

table.dataTable {
    width: 100% !important;
}

table.dataTable thead th {
    background-color: #f9fafb;
    color: #374151;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

table.dataTable tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #e5e7eb;
}

table.dataTable tbody tr:hover {
    background-color: #f9fafb;
}

.dataTables_wrapper {
    padding: 0;
}

.dataTables_filter input,
.dataTables_length select {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.dataTables_filter input:focus,
.dataTables_length select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 107, 107, 0.1);
}

.dataTables_paginate .paginate_button {
    padding: 0.5rem 0.75rem;
    margin: 0 0.125rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: white;
    color: #374151;
    transition: all 0.2s;
}

.dataTables_paginate .paginate_button:hover {
    background-color: #f3f4f6;
}

.dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #F56B6B 0%, #E55858 100%);
    border-color: transparent;
    color: white;
}

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

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FFDADA, #A8C0E3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #F56B6B, #4877Ba);
}

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

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

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

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

.shortcut-btn {
    transition: all 0.2s ease;
}

.shortcut-btn:hover {
    transform: translateY(-1px);
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
