/* Fonts */
@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Global Variables */
:root {
    --primary-color: #2A3647;
    --secondary-color: #29ABE2;
    --bg-color: #F6F7F8;
    --white: #FFFFFF;
}

/* Reset & Basic Setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

html {
    height: 100%;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--primary-color);
    height: 100%;
    width: 100%;
}

input,
button {
    border: unset;
    outline: none;
}

button,
a {
    cursor: pointer;
    text-decoration: none;
}

/* Global Button Classes */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: all 100ms ease-in-out;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-primary:disabled {
    background-color: #959595;
    cursor: not-allowed;
}

/* Utilities */
.d-none {
    display: none !important;
}

/* Global Header */
.header {
    height: 90px;
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 max(40px, calc(100% - 1440px + 40px)) 0 40px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
    min-width: 0;
}

@media (min-width: 1001px) and (max-width: 1640px) {
    .header {
        padding: 0 24px;
    }
}

.header-title {
    font-size: 20px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    flex-shrink: 0;
}

.help-icon {
    width: 25px;
    height: 25px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 16px;
    text-decoration: none;
    transition: all 100ms ease-in-out;
}

.help-icon:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Header Profile */
.profile-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    transition: all 100ms ease-in-out;
}

.profile-icon:hover {
    color: var(--secondary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.profile-initials {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    border: 3px solid var(--primary-color);
    cursor: pointer;
}

.profile-initials:hover {
    background-color: var(--primary-color);
    border-color: var(--secondary-color);
}

#profileDropdown {
    z-index: 1000;
}

/* Mobile Logo */
.mobile-logo {
    position: absolute;
    top: 20px;
    left: 24px;
    height: 48px;
    width: auto;
    z-index: 5;
    display: none; 
}

@media (max-width: 1000px) {
    .mobile-logo {
        display: block; 
    }
}

/* Scroll Lock */
.no-scroll {
    overflow: hidden;
}

/* Global Content Limit */
.content {
    max-width: 1440px;
    width: 100%;
}

/* Drag & Drop Highlighting */
.drag-area-highlight {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 24px;
}

.dragging-active .task-card {
    pointer-events: none; 
}

/* Hide Mobile Move Menu on Desktop */
@media (hover: hover) {
    .move-menu-wrapper {
        display: none !important;
    }
}

/* Hide Global Scrollbar */
.wrapper::-webkit-scrollbar,
.legal-wrapper::-webkit-scrollbar {
    display: none;
}

.wrapper,
.legal-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Global Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid var(--primary-color);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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