:root {
    --teal-color: #00FFBF;
    --yellow-color: #FBDD77;
    --red-color: #FF7A4D;
}

.teal-color {
    background-color: var(--teal-color);
}

.yellow-color {
    background-color: var(--yellow-color);
}

.red-color {
    background-color: var(--red-color);
}

body {
    font-family: 'Segoe UI', sans-serif;
    transition: background 0.3s, color 0.3s;
}

.kanban-col {
    min-height: 200px;
}

.task-card {
    cursor: grab;
    transition: border 0.3s;
    border: 2px solid transparent;
    isolation: isolate;
}

.task-card:hover {
    /* transform: translateY(-2px); */
    border: 2px solid #999;
}

.task-card:active {
    cursor: grabbing;
}

.task-card.readonly {
    cursor: pointer !important;
}

.task-card.readonly:active {
    cursor: pointer !important;
}

.column-header {
    cursor: default;
}

.column-header.draggable {
    cursor: grab;
}

.column-header.draggable:active {
    cursor: grabbing;
}

.ui-sortable-placeholder {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    visibility: visible !important;
    border: 2px dashed #ccc;
}

.kanban-col .ui-sortable-placeholder {
    height: 80px;
    margin-bottom: 0.75rem;
}

#board-columns>.ui-sortable-placeholder {
    width: 320px;
    height: auto;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.1);
    margin-right: 1.5rem;
}

/* Color Labels */
.color-opt {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-opt.selected {
    border-color: #333;
    transform: scale(1.1);
}

/* Utilities */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Shark Fin Footer */
.tealeaf-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    z-index: 40;
}

.shark-tank {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
    pointer-events: none;
}

.shark-fin {
    width: 120px;
    height: 70px;
    background-image: url('../sharki.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    position: absolute;
    bottom: -40px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
    animation: shark-swim 25s linear infinite;
}

@keyframes shark-swim {
    0% {
        left: -150px;
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(-8deg);
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(-10px) rotate(-1deg);
    }

    100% {
        left: 100%;
        transform: translateY(30px) rotate(15deg);
    }
}

.footer-content {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #666;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    z-index: 51;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.dark .footer-content {
    background: rgba(30, 41, 59, 0.9);
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.1);
}

.grabbing {
    cursor: grabbing !important;
    cursor: -webkit-grabbing !important;
    user-select: none;
}

/* Task Gradient Border */
.task-card.task-gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    /* Pull it out slightly to cover the 2px default border gap if any */
    border-radius: 0.25rem;
    /* Match card radius of rounded-lg/md roughly */
    padding: 5px;
    /* User requested 5px */

    /* Gradient Color - Fallback to red if var missing to debug, but use var */
    background: linear-gradient(to bottom, var(--task-border-color) 0%, var(--task-border-color) 50%, transparent 95%);

    /* Masking to carve out the center */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;

    /* Standard */
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;

    pointer-events: none;
    z-index: 50;
    /* Ensure it sits on top */
}

/* NSFW Utility Classes */
.nsfw-blur img {
    filter: blur(20px);
    transform: scale(1.1);
    /* Prevents blurred edges from pulling in transparency */
}

/* LOGIN AND REGISTRATION CUSTOMISATIONS */
#login-column {
    padding-right: 1.5rem;
}

/* Custom Toggle Switch */
.toggle-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: #e5e7eb;
    /* gray-200 */
    border-radius: 9999px;
    transition: all 0.2s ease-in-out;
    border: 1px solid #d1d5db;
    /* gray-300 */
}

.dark .toggle-track {
    background-color: #374151;
    /* gray-700 */
    border-color: #4b5563;
    /* gray-600 */
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-checkbox:checked+.toggle-track {
    background-color: #8b5cf6;
    /* Violet-500 */
    border-color: #8b5cf6;
}

.toggle-checkbox:checked+.toggle-track .toggle-thumb {
    transform: translateX(20px);
}

/* Hover state for track */
.toggle-track:hover {
    cursor: pointer;
}

/* Portfolio Layout Customizations */
.portfolio-layout-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.portfolio-header {
    padding-bottom: 1rem !important;
    margin-bottom: 1.5rem !important;
    border-bottom-width: 1px;
}

.portfolio-section-gap {
    margin-bottom: 1.5rem !important;
}

@media (min-width: 768px) {
    .portfolio-layout-container {
        flex-direction: row;
        gap: 3rem;
    }

    .portfolio-main-col {
        width: 70%;
        flex: 0 0 70%;
    }

    .portfolio-meta-col {
        width: 30%;
        flex: 0 0 30%;
    }
}

/* Masonry Grid Styles */
.grid-item {
    width: 100%;
    padding: 12px;
}

@media (min-width: 640px) {
    .grid-item {
        width: 50%;
    }
}

@media (min-width: 1024px) {
    .grid-item {
        width: 33.333%;
    }
}

@media (min-width: 1280px) {
    .grid-item {
        width: 25%;
    }
}

/* Payment Center */
.payment-center .status-paid {
    background-color: var(--teal-color);
    color: #000;
    padding: 4px 10px;
    border-radius: 100px;
}

.payment-center .status-pending {
    background-color: var(--yellow-color);
    color: #000;
    padding: 4px 10px;
    border-radius: 100px;
}

.payment-center .status-canceled {
    background-color: var(--red-color);
    color: #000;
    padding: 4px 10px;
    border-radius: 100px;
}

.payment-center .status-refunded {
    background-color: var(--red-color);
    color: #000;
}