/**
 * Flowdash Core CSS - Essential styles only
 * Extracted from Flowdash template for WordPress plugin use
 */

/* Flowdash CSS Variables - Marine World Blue Theme */
:root {
    /* Primary Colors - Marine World Blue */
    --primary: #0084ff;
    --primary-hover: #0070dd;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #00bfff;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8fafc;
    --dark: #1a1d2b;

    /* Extended Colors */
    --blue: #0084ff;
    --teal: #16BA71;
    --purple: #5163C5;
    --dark-gray: #64748b;
    --light-gray: #e8f4ff;
    --muted-light: #f0f9ff;

    /* Text Colors */
    --text-primary: #1a1d2b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* Background Colors */
    --bg-primary: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #1a1d2b;

    /* Border Colors - Marine World Blue Tinted (Visible) */
    --border-color: #c5dcf0;
    --border-light: #e8f4ff;

    /* Shadows - Blue Tinted */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 132, 255, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 132, 255, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 132, 255, 0.175);

    /* Border Radius - Modern Rounded */
    --radius: 8px;
    --radius-lg: 12px;
    --radius-sm: 6px;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    
    /* Line Heights */
    --line-height-base: 1.5;
    --line-height-sm: 1.25;
    --line-height-lg: 1.75;
}

/* Base Typography */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
}

/* Flowdash Button System */
.flowdash-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.625rem 1rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: var(--line-height-sm);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.flowdash-btn:hover,
.flowdash-btn:focus {
    text-decoration: none;
    outline: 0;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.flowdash-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.flowdash-btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.flowdash-btn-secondary {
    background-color: white;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.flowdash-btn-success {
    background-color: var(--success);
    border-color: var(--success);
    color: white;
}

.flowdash-btn-danger {
    background-color: var(--danger);
    border-color: var(--danger);
    color: white;
}

.flowdash-btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: var(--font-size-xs);
}

.flowdash-btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-lg);
}

/* Flowdash Card System */
.flowdash-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.flowdash-card-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-white);
}

.flowdash-card-body {
    padding: var(--spacing-lg);
}

.flowdash-card-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    background-color: var(--light);
}

/* Flowdash Form System */
.flowdash-form-group {
    margin-bottom: var(--spacing-lg);
}

.flowdash-form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-primary);
}

.flowdash-form-control {
    width: 100%;
    padding: 0.75rem;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.flowdash-form-control:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 132, 255, 0.25);
}

/* Flowdash Alert System */
.flowdash-alert {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    border: 1px solid transparent;
    border-radius: var(--radius);
}

.flowdash-alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.flowdash-alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.flowdash-alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.flowdash-alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Flowdash Modal System */
.flowdash-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    backdrop-filter: blur(2px);
}

.flowdash-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    margin: var(--spacing-lg);
    max-height: 90vh;
    overflow-y: auto;
}

.flowdash-modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flowdash-modal-body {
    padding: var(--spacing-lg);
}

.flowdash-modal-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
}

/* Flowdash Table System */
.flowdash-table {
    width: 100%;
    margin-bottom: var(--spacing-lg);
    border-collapse: collapse;
}

.flowdash-table th,
.flowdash-table td {
    padding: 0.75rem;
    vertical-align: top;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.flowdash-table th {
    font-weight: 600;
    color: var(--text-primary);
    background-color: var(--light);
}

.flowdash-table tbody tr:hover {
    background-color: var(--light);
}

/* Flowdash Loading System */
.flowdash-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
}

.flowdash-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    margin-right: var(--spacing-sm);
}

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

/* Flowdash Toast System */
.flowdash-toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.flowdash-toast {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow);
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flowdash-toast-success {
    border-left: 4px solid var(--success);
}

.flowdash-toast-error {
    border-left: 4px solid var(--danger);
}

.flowdash-toast-warning {
    border-left: 4px solid var(--warning);
}

.flowdash-toast-info {
    border-left: 4px solid var(--info);
}

/* Utility Classes */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }

.bg-primary { background-color: var(--bg-primary) !important; }
.bg-white { background-color: var(--bg-white) !important; }
.bg-light { background-color: var(--light) !important; }

.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-none { display: none !important; }

.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }

.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }

.gap-1 { gap: var(--spacing-xs) !important; }
.gap-2 { gap: var(--spacing-sm) !important; }
.gap-3 { gap: var(--spacing-md) !important; }
.gap-4 { gap: var(--spacing-lg) !important; }

.p-1 { padding: var(--spacing-xs) !important; }
.p-2 { padding: var(--spacing-sm) !important; }
.p-3 { padding: var(--spacing-md) !important; }
.p-4 { padding: var(--spacing-lg) !important; }

.m-1 { margin: var(--spacing-xs) !important; }
.m-2 { margin: var(--spacing-sm) !important; }
.m-3 { margin: var(--spacing-md) !important; }
.m-4 { margin: var(--spacing-lg) !important; }

.border-radius { border-radius: var(--radius) !important; }
.border-radius-lg { border-radius: var(--radius-lg) !important; }
.border-radius-sm { border-radius: var(--radius-sm) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }