/* M2 Studioz Custom Style sheet - Violet-Pink Gradient Theme */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #6f42c1;        /* Deep Violet */
    --secondary: #e83e8c;      /* Pink Accent */
    --gradient-primary: linear-gradient(135deg, #6f42c1, #e83e8c);
    --gradient-hover: linear-gradient(135deg, #5b30a6, #d03079);
    --dark: #2b1f3d;           /* Slate Dark */
    --light: #f8f9fa;          /* Neutral Light */
    --white: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

/* Sidebar Styling */
#sidebar {
    min-width: 260px;
    max-width: 260px;
    background: var(--white);
    box-shadow: var(--box-shadow);
    min-height: 100vh;
    transition: var(--transition);
    position: fixed;
    z-index: 1000;
}

.sidebar-header {
    background: var(--gradient-primary);
    padding: 20px;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu {
    padding: 20px 0;
    list-style: none;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar-menu li a {
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.sidebar-menu li a:hover {
    color: var(--primary);
    background: rgba(111, 66, 193, 0.05);
    border-left-color: var(--primary);
}

.sidebar-menu li.active a {
    color: var(--primary);
    background: rgba(111, 66, 193, 0.08);
    border-left-color: var(--secondary);
    font-weight: 600;
}

/* Main Content Wrapper */
#content-wrapper {
    margin-left: 260px;
    width: calc(100% - 260px);
    transition: var(--transition);
    min-height: 100vh;
}

/* Topbar Styling */
.topbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    height: 70px;
    padding: 0 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Modern Card Customizations */
.card {
    background: var(--white);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 25px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.card-header {
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 600;
    color: var(--primary);
    padding: 20px;
    border-top-left-radius: var(--border-radius) !important;
    border-top-right-radius: var(--border-radius) !important;
}

/* Gradients Buttons */
.btn-gradient {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-gradient:hover, .btn-gradient:focus {
    background: var(--gradient-hover);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.4);
}

/* Badges & Tables Customizations */
.table {
    border-collapse: separate;
    border-spacing: 0 10px;
}

.table tr {
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    border-radius: 8px;
}

.table th {
    border: none;
    color: #8c9099;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 15px;
}

.table td {
    background: var(--white);
    border: none;
    padding: 18px 15px;
    vertical-align: middle;
}

.table tr td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.table tr td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Kanban Board Styling */
.kanban-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}

.kanban-column {
    min-width: 300px;
    background: #f1f3f9;
    border-radius: var(--border-radius);
    padding: 15px;
}

.kanban-column-header {
    font-weight: 600;
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-card {
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    cursor: grab;
}

/* Responsive Overrides */
@media(max-width: 991.98px) {
    #sidebar {
        margin-left: -260px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content-wrapper {
        margin-left: 0;
        width: 100%;
    }
}
