/*
 * OYS Standalone Dashboard Console CSS
 */

:root {
    --oys-bg-dark: #08090f;
    --oys-bg-sidebar: #0b0c13;
    --oys-bg-surface: #0e1018;
    --oys-bg-card: rgba(20, 22, 34, 0.75);
    --oys-border-color: rgba(255, 255, 255, 0.08);
    --oys-border-hover: rgba(59, 130, 246, 0.3);
    
    --oys-text-primary: #f1f2f6;
    --oys-text-secondary: #9aa0b9;
    --oys-text-muted: #5e647e;
    
    --oys-accent-primary: hsl(265, 85%, 63%);     /* Neon Violet */
    --oys-accent-secondary: hsl(215, 90%, 55%);   /* High-tech Blue */
    --oys-accent-success: #10b981;
    --oys-accent-danger: #ef4444;
    
    --oys-font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --oys-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--oys-bg-dark);
    margin: 0;
    padding: 0;
    font-family: var(--oys-font-sans);
    color: var(--oys-text-primary);
    display: flex;
    min-height: 100vh;
}

/* Sidebar Layout */
.oys-sidebar {
    width: 260px;
    background-color: var(--oys-bg-sidebar);
    border-right: 1px solid var(--oys-border-color);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--oys-font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--oys-text-primary);
    text-decoration: none;
    margin-bottom: 40px;
}

.sidebar-logo span.logo-symbol {
    color: var(--oys-accent-primary);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--oys-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-nav-item svg {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sidebar-nav-item:hover svg, .sidebar-nav-item.active svg {
    color: var(--oys-text-primary);
}

.sidebar-nav-item:hover, .sidebar-nav-item.active {
    background: rgba(255, 255, 255, 0.04);
    color: var(--oys-text-primary);
}

.sidebar-nav-item.active {
    border-left: 3px solid var(--oys-accent-primary);
    background: rgba(124, 58, 237, 0.08);
}

.sidebar-footer {
    border-top: 1px solid var(--oys-border-color);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logout-btn {
    color: var(--oys-text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.logout-btn:hover {
    color: var(--oys-accent-danger);
}

/* Main Content Area */
.oys-main {
    flex-grow: 1;
    padding: 40px;
    box-sizing: border-box;
    overflow-y: auto;
}

.oys-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--oys-border-color);
    padding-bottom: 24px;
    margin-bottom: 30px;
}

.oys-header-tagline {
    font-family: var(--oys-font-display);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    font-weight: 700;
    color: var(--oys-accent-secondary);
    display: block;
    margin-bottom: 4px;
}

.oys-header-title {
    font-family: var(--oys-font-display);
    font-weight: 800;
    font-size: 32px;
    margin: 0;
    color: var(--oys-text-primary);
    background: linear-gradient(135deg, var(--oys-text-primary) 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.oys-badge {
    background: linear-gradient(135deg, var(--oys-accent-primary) 0%, var(--oys-accent-secondary) 100%);
    color: white;
    font-family: var(--oys-font-display);
    font-weight: 600;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 30px;
}

/* Dashboard Statistics Cards Grid */
.oys-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.oys-stat-bar-card {
    background: var(--oys-bg-surface);
    border: 1px solid var(--oys-border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.oys-stat-title {
    font-size: 12px;
    color: var(--oys-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.oys-stat-value {
    font-family: var(--oys-font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--oys-text-primary);
}

/* Grids and Cards */
.oys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    align-items: start;
}

.oys-card {
    background: var(--oys-bg-card);
    border: 1px solid var(--oys-border-color);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    box-sizing: border-box;
}

.oys-card-header {
    margin-bottom: 16px;
    border-bottom: 1px solid var(--oys-border-color);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.oys-card h3 {
    margin: 0;
    font-family: var(--oys-font-display);
    font-size: 18px;
    color: var(--oys-text-primary);
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: var(--oys-text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--oys-border-color);
    border-radius: 8px;
    padding: 10px 14px;
    box-sizing: border-box;
    color: var(--oys-text-primary);
    font-family: var(--oys-font-sans);
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--oys-accent-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    font-family: var(--oys-font-display);
    cursor: pointer;
    text-decoration: none;
    border: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--oys-accent-primary) 0%, var(--oys-accent-secondary) 100%);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--oys-border-color);
    color: var(--oys-text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-danger {
    background: var(--oys-accent-danger);
    color: white;
}

/* Table Style */
.oys-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.oys-table th, .oys-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--oys-border-color);
    font-size: 13px;
}

.oys-table th {
    color: var(--oys-text-secondary);
    font-weight: 600;
}

.oys-table td {
    color: var(--oys-text-primary);
}

/* Embed Box Styling */
.embed-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed var(--oys-border-color);
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
    position: relative;
}

.embed-code {
    font-family: monospace;
    font-size: 11px;
    color: #38bdf8;
    word-break: break-all;
    white-space: pre-wrap;
    margin: 0;
}

/* Phone Mockup Frame */
.phone-mock-container {
    width: 320px;
    height: 600px;
    border: 12px solid #1e293b;
    border-radius: 36px;
    background: #000;
    position: sticky;
    top: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    margin: 0 auto;
}

.phone-mock-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

/* Custom Interactive Links drag and drop */
.draggable-link-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--oys-border-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.draggable-link-item.dragging {
    opacity: 0.5;
}

/* Live Cookie Preview inside admin */
.live-cookie-banner-box {
    border: 1px solid var(--oys-border-color);
    border-radius: 12px;
    padding: 20px;
    background: #090b11;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

/* Interactive Calendar Monthly Grid UI */
.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 15px;
}

.calendar-day-header {
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    color: var(--oys-text-secondary);
    padding: 6px 0;
}

.calendar-day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.calendar-day-cell:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--oys-border-hover);
}

.calendar-day-cell.active {
    background: var(--oys-accent-secondary);
    color: white;
    font-weight: bold;
}

.calendar-day-cell.muted {
    opacity: 0.2;
    cursor: not-allowed;
}

.calendar-day-cell.has-bookings {
    border-bottom: 3px solid var(--oys-accent-primary);
}
