/*==================================================
  AIgen v2 Design System
  Version : 2.0
  Description : Global Design Foundation
==================================================*/

/*=========================================
  Google Font
=========================================*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/*=========================================
  CSS Variables
=========================================*/
:root{

    /* Colors */
--color-black:#111827;
--color-white:#ffffff;

--color-background:#ffffff;
--color-surface:#ffffff;
--color-surface-hover:#f9fafb;
--color-surface-secondary:#f3f4f6;

--color-text:#111827;
--color-text-light:#6b7280;

--color-border:#e5e7eb;
--color-border-hover:#d1d5db;

--color-success:#16a34a;
--color-warning:#f59e0b;
--color-danger:#dc2626;
--color-primary:#111827;
--color-primary-hover:#000000;

--color-overlay:rgba(0,0,0,.4);

--color-card:#ffffff;
--color-card-hover:#fafafa;

    /* Typography */
    --font-family:'Inter',Arial,sans-serif;

    --text-xs:12px;
    --text-sm:14px;
    --text-base:15px;
    --text-lg:18px;
    --text-xl:22px;
    --text-2xl:28px;
    --text-3xl:36px;

    --fw-normal:400;
    --fw-medium:500;
    --fw-semibold:600;
    --fw-bold:700;

    /* Radius */
    --radius-sm:8px;
    --radius-md:10px;
    --radius-lg:12px;
    --radius-xl:16px;

    /* Shadow */
    --shadow-sm:0 1px 2px rgba(0,0,0,.04);
    --shadow-md:0 4px 10px rgba(0,0,0,.06);

    /* Transition */
    --transition:180ms ease;

    /* Spacing */
    --space-1:4px;
    --space-2:8px;
    --space-3:12px;
    --space-4:16px;
    --space-5:24px;
    --space-6:32px;
    --space-7:40px;
    --space-8:48px;
    --space-9:64px;

    /* Layout */
    --container:1200px;
    --sidebar-width:260px;

}

/*=========================================
  Reset
=========================================*/

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/*=========================================
  Base
=========================================*/

html{
    font-size:16px;
    scroll-behavior:smooth;
}

body{

    font-family:var(--font-family);

    font-size:var(--text-base);

    font-weight:var(--fw-normal);

    color:var(--color-text);

    background:var(--color-background);

    line-height:1.6;

    -webkit-font-smoothing:antialiased;

    text-rendering:optimizeLegibility;

}

/*=========================================
  Media
=========================================*/

img{

    max-width:100%;

    display:block;

}

svg{

    display:block;

}

button{

    font:inherit;

}

input,
textarea,
select{

    font:inherit;

}

a{

    color:inherit;

    text-decoration:none;

}

ul{

    list-style:none;

}

/*=========================================
  Layout
=========================================*/

.container{
    width:100%;
    max-width:var(--container);
    margin:0 auto;
    padding:0 var(--space-5);
}

.page{
    min-height:100vh;
    background:var(--color-background);
}

.page-content{
    padding:var(--space-7) 0;
}

.section{
    margin-bottom:var(--space-8);
}

.section-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:var(--space-4);
    margin-bottom:var(--space-5);
}

.section-title{
    font-size:var(--text-2xl);
    font-weight:var(--fw-bold);
    color:var(--color-text);
}

.section-description{
    margin-top:6px;
    font-size:var(--text-sm);
    color:var(--color-text-light);
}

/*=========================================
  Grid
=========================================*/

.grid{
    display:grid;
    gap:var(--space-5);
}

.grid-2{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:var(--space-5);
}

.grid-3{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:var(--space-5);
}

.grid-4{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:var(--space-5);
}

/*=========================================
  Flex
=========================================*/

.flex{
    display:flex;
}

.flex-column{
    display:flex;
    flex-direction:column;
}

.items-center{
    align-items:center;
}

.items-start{
    align-items:flex-start;
}

.items-end{
    align-items:flex-end;
}

.justify-between{
    justify-content:space-between;
}

.justify-center{
    justify-content:center;
}

.justify-end{
    justify-content:flex-end;
}

.flex-wrap{
    flex-wrap:wrap;
}

.gap-1{
    gap:var(--space-1);
}

.gap-2{
    gap:var(--space-2);
}

.gap-3{
    gap:var(--space-3);
}

.gap-4{
    gap:var(--space-4);
}

.gap-5{
    gap:var(--space-5);
}

.gap-6{
    gap:var(--space-6);
}

/*=========================================
  Width
=========================================*/

.w-full{
    width:100%;
}

.h-full{
    height:100%;
}

/*=========================================
  Display
=========================================*/

.hidden{
    display:none !important;
}

.block{
    display:block;
}

.inline-flex{
    display:inline-flex;
}

/*=========================================
  Position
=========================================*/

.relative{
    position:relative;
}

.absolute{
    position:absolute;
}

/*=========================================
  Margin
=========================================*/

.mt-1{margin-top:var(--space-1);}
.mt-2{margin-top:var(--space-2);}
.mt-3{margin-top:var(--space-3);}
.mt-4{margin-top:var(--space-4);}
.mt-5{margin-top:var(--space-5);}
.mt-6{margin-top:var(--space-6);}

.mb-1{margin-bottom:var(--space-1);}
.mb-2{margin-bottom:var(--space-2);}
.mb-3{margin-bottom:var(--space-3);}
.mb-4{margin-bottom:var(--space-4);}
.mb-5{margin-bottom:var(--space-5);}
.mb-6{margin-bottom:var(--space-6);}

.mx-auto{
    margin-left:auto;
    margin-right:auto;
}

/*=========================================
  Text
=========================================*/

.text-center{
    text-align:center;
}

.text-right{
    text-align:right;
}

.text-left{
    text-align:left;
}

.text-muted{
    color:var(--color-text-light);
}

.text-bold{
    font-weight:var(--fw-bold);
}

.text-semibold{
    font-weight:var(--fw-semibold);
}

/*=========================================
  Buttons
=========================================*/

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    height:44px;
    padding:0 18px;

    border:1px solid transparent;
    border-radius:var(--radius-md);

    font-family:var(--font-family);
    font-size:var(--text-sm);
    font-weight:var(--fw-medium);

    cursor:pointer;

    transition:var(--transition);

    white-space:nowrap;
}

.btn:disabled{
    opacity:.6;
    cursor:not-allowed;
}

.btn-primary{
    background:var(--color-black);
    color:var(--color-white);
}

.btn-primary:hover{
    opacity:.92;
}

.btn-secondary{
    background:var(--color-white);
    color:var(--color-text);
    border:1px solid var(--color-border);
}

.btn-secondary:hover{
    background:var(--color-surface-hover);
}

.btn-danger{
    background:var(--color-danger);
    color:#fff;
}

.btn-danger:hover{
    opacity:.9;
}

.btn-outline{
    background:transparent;
    color:var(--color-text);
    border:1px solid var(--color-border);
}

.btn-outline:hover{
    background:var(--color-surface-hover);
}

.btn-block{
    width:100%;
}

.btn-sm{
    height:36px;
    padding:0 14px;
    font-size:13px;
}

.btn-lg{
    height:50px;
    padding:0 24px;
}

/*=========================================
  Forms
=========================================*/

.field{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin-bottom:var(--space-5);
}

.label{
    font-size:var(--text-sm);
    font-weight:var(--fw-medium);
    color:var(--color-text);
}

input,
textarea,
select{

    width:100%;

    border:1px solid var(--color-border);

    border-radius:var(--radius-md);

    background:#fff;

    color:var(--color-text);

    font-size:var(--text-base);

    padding:12px 14px;

    transition:var(--transition);

    outline:none;

}

input{
    height:48px;
}

textarea{

    resize:vertical;

    min-height:140px;

}

input:focus,
textarea:focus,
select:focus{

    border-color:var(--color-black);

}

input::placeholder,
textarea::placeholder{

    color:var(--color-text-light);

}

input[type="checkbox"]{

    width:18px;

    height:18px;

    cursor:pointer;

}

select{

    height:48px;

    cursor:pointer;

}

.form-help{

    margin-top:6px;

    font-size:13px;

    color:var(--color-text-light);

}

/*=========================================
  Divider
=========================================*/

.divider{

    width:100%;

    height:1px;

    background:var(--color-border);

    margin:var(--space-6) 0;

}

/*=========================================
  Spinner
=========================================*/

.spinner{

    width:18px;

    height:18px;

    border:2px solid rgba(255,255,255,.3);

    border-top-color:#fff;

    border-radius:50%;

    animation:spin .8s linear infinite;

}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

/*=========================================
  Status
=========================================*/

.success{

    color:var(--color-success);

}

.warning{

    color:var(--color-warning);

}

.danger{

    color:var(--color-danger);

}

/*=========================================
  Cards
=========================================*/

.card{

    background:var(--color-surface);

    border:1px solid var(--color-border);

    border-radius:var(--radius-lg);

    box-shadow:var(--shadow-sm);

    overflow:hidden;

}

.card-header{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:var(--space-4);

    padding:var(--space-5);

    border-bottom:1px solid var(--color-border);

}

.card-title{

    font-size:var(--text-lg);

    font-weight:var(--fw-semibold);

    color:var(--color-text);

}

.card-description{

    margin-top:4px;

    font-size:var(--text-sm);

    color:var(--color-text-light);

}

.card-body{

    padding:var(--space-5);

}

.card-footer{

    padding:var(--space-5);

    border-top:1px solid var(--color-border);

    background:var(--color-surface-hover);

}

.card-hover{

    transition:var(--transition);

}

.card-hover:hover{

    transform:translateY(-2px);

    box-shadow:var(--shadow-md);

}

/*=========================================
  Stat Card
=========================================*/

.stat-card{

    padding:24px;

}

.stat-label{

    font-size:13px;

    color:var(--color-text-light);

}

.stat-value{

    margin-top:10px;

    font-size:30px;

    font-weight:var(--fw-bold);

}

.stat-footer{

    margin-top:16px;

    font-size:13px;

    color:var(--color-text-light);

}

/*=========================================
  Project Card
=========================================*/

.project-card{

    display:flex;

    flex-direction:column;

    gap:16px;

}

.project-title{

    font-size:16px;

    font-weight:600;

}

.project-meta{

    display:flex;

    gap:12px;

    flex-wrap:wrap;

    font-size:13px;

    color:var(--color-text-light);

}

/*=========================================
  Badge
=========================================*/

.badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:4px 10px;

    border-radius:999px;

    font-size:12px;

    font-weight:600;

}

.badge-success{

    background:#DCFCE7;

    color:#166534;

}

.badge-warning{

    background:#FEF3C7;

    color:#92400E;

}

.badge-danger{

    background:#FEE2E2;

    color:#991B1B;

}

.badge-neutral{

    background:#F3F4F6;

    color:#374151;

}

/*=========================================
  Empty State
=========================================*/

.empty-state{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    text-align:center;

    padding:64px 32px;

}

.empty-icon{

    width:64px;

    height:64px;

    margin-bottom:24px;

}

.empty-title{

    font-size:20px;

    font-weight:600;

}

.empty-description{

    margin-top:8px;

    max-width:420px;

    color:var(--color-text-light);

}

/*=========================================
  Card Grid
=========================================*/

.card-grid{

    display:grid;

    gap:24px;

}

.stat-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:24px;

}

.project-grid{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));

    gap:24px;

}

@media (max-width:1024px){

.stat-grid{

grid-template-columns:repeat(2,1fr);

}

}

@media (max-width:640px){

.stat-grid{

grid-template-columns:1fr;

}

.project-grid{

grid-template-columns:1fr;

}

}/*=========================================
  Topbar
=========================================*/

.topbar{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:var(--space-5);

    padding:20px 0;

    margin-bottom:32px;

}

.topbar-left{

    display:flex;

    flex-direction:column;

}

.topbar-title{

    font-size:30px;

    font-weight:700;

}

.topbar-subtitle{

    margin-top:4px;

    color:var(--color-text-light);

    font-size:14px;

}

.topbar-right{

    display:flex;

    align-items:center;

    gap:12px;

}

/*=========================================
  Avatar
=========================================*/

.avatar{

    width:40px;

    height:40px;

    border-radius:50%;

    background:var(--color-black);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-weight:600;

    user-select:none;

}

/*=========================================
  Dropdown
=========================================*/

.dropdown{

    position:relative;

}

.dropdown-menu{

    position:absolute;

    top:calc(100% + 10px);

    right:0;

    min-width:220px;

    background:#fff;

    border:1px solid var(--color-border);

    border-radius:var(--radius-lg);

    box-shadow:var(--shadow-md);

    overflow:hidden;

    z-index:100;

}

.dropdown-item{

    display:flex;

    align-items:center;

    gap:12px;

    padding:12px 16px;

    cursor:pointer;

    transition:var(--transition);

}

.dropdown-item:hover{

    background:var(--color-surface-hover);

}

/*=========================================
  Toast
=========================================*/

.toast{

    position:fixed;

    bottom:24px;

    right:24px;

    min-width:300px;

    padding:16px 18px;

    background:#fff;

    border:1px solid var(--color-border);

    border-radius:var(--radius-lg);

    box-shadow:var(--shadow-md);

    z-index:999;

}

/*=========================================
  Modal
=========================================*/

.modal{

    position:fixed;

    inset:0;

    display:flex;

    align-items:center;

    justify-content:center;

    background:rgba(0,0,0,.35);

    z-index:999;

}

.modal-content{

    width:100%;

    max-width:520px;

    background:#fff;

    border-radius:var(--radius-xl);

    box-shadow:var(--shadow-md);

    overflow:hidden;

}

.modal-header{

    padding:24px;

    border-bottom:1px solid var(--color-border);

}

.modal-body{

    padding:24px;

}

.modal-footer{

    display:flex;

    justify-content:flex-end;

    gap:12px;

    padding:24px;

    border-top:1px solid var(--color-border);

}

/*=========================================
  Loading
=========================================*/

.loading{

    position:fixed;

    inset:0;

    display:flex;

    align-items:center;

    justify-content:center;

    background:rgba(255,255,255,.75);

    backdrop-filter:blur(3px);

    z-index:9999;

}

/*=========================================
  Upload Zone
=========================================*/

.upload-zone{

    border:2px dashed var(--color-border);

    border-radius:var(--radius-xl);

    background:var(--color-surface);

    padding:56px 32px;

    text-align:center;

    cursor:pointer;

    transition:var(--transition);

}

.upload-zone:hover{

    border-color:var(--color-black);

    background:var(--color-surface-hover);

}

.upload-zone.dragover{

    border-color:var(--color-black);

    background:#F9FAFB;

}

.upload-icon{

    width:56px;

    height:56px;

    margin:0 auto 20px;

}

.upload-title{

    font-size:20px;

    font-weight:600;

}

.upload-description{

    margin-top:8px;

    color:var(--color-text-light);

}

/*=========================================
  Progress
=========================================*/

.progress{

    width:100%;

    height:8px;

    background:#F3F4F6;

    border-radius:999px;

    overflow:hidden;

}

.progress-bar{

    height:100%;

    width:0;

    background:var(--color-black);

    transition:.3s;

}

/*=========================================
  Workspace Panel
=========================================*/

.workspace{

    display:grid;

    grid-template-columns:380px 1fr;

    gap:32px;

    align-items:start;

}

.workspace-sidebar{

    position:sticky;

    top:24px;

}

.workspace-content{

    min-width:0;

}

@media(max-width:992px){

.workspace{

grid-template-columns:1fr;

}

.workspace-sidebar{

position:static;

}

}






