﻿:root {
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.4);
    --primary-blue: #1e40af;
    --text-main: #1e293b;
}

body {
    margin: 0;
    /* This creates the marble/fractal background effect */
    background: radial-gradient(at 0% 0%, rgba(224, 242, 254, 1) 0, transparent 50%), radial-gradient(at 100% 0%, rgba(254, 243, 199, 1) 0, transparent 50%), radial-gradient(at 100% 100%, rgba(219, 234, 254, 1) 0, transparent 50%), radial-gradient(at 0% 100%, rgba(254, 226, 226, 1) 0, transparent 50%), #f8fafc;
    background-attachment: fixed;
    font-family: 'Inter', system-ui, sans-serif;
}

/* Glassmorphism Card Effect */
.glass-card {
    /*background: var(--glass-bg);*/
    /*backdrop-filter: blur(12px);*/
    /*-webkit-backdrop-filter: blur(12px);*/
    /*border: 1px solid var(--glass-border);*/
    /*border-radius: 20px;*/
    /*box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);*/
}

.dashboard-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    /*width:100vw;*/
    margin-left: 0px;
    /*padding-right:5px*/
    padding: 0px;
    padding-top: 0px;
    padding-left: 0px;
    background-image: linear-gradient(to bottom, white, #E0F2FF);
}


/* Center: Links */
.nav-center {
    display: flex;
    gap: 1rem;
    align-items: center;
}

    .nav-center a {
        color: #94a3b8; /* Faded blue-gray */
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 500;
        /*padding: 0.5rem 0;*/
        position: relative;
        transition: color 0.2s ease;
    }

        .nav-center a:hover {
            color: white;
        }

        /* The active indicator (blue line under 'Projects') */
        .nav-center a.active {
            color: white;
        }

            .nav-center a.active::after {
                content: '';
                position: absolute;
                bottom: -4px;
                left: 0;
                width: 100%;
                height: 2px;
                background: #3b82f6;
                border-radius: 2px;
            }

/* Right side: Search and Avatar */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}


.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    background: #0f172a; /* Dark nav like image */
    color: white;
}

.main-content {
    padding: 0;
    padding-left: 0px;
    position: relative;
    /*background-image: linear-gradient(to right, #1C384D, #336A93);*/
    height: 100vh
}

.notification-stack {
    position: absolute;
    top: 20px;
    right: 40px;
    z-index: 10;
}

.glass-notif {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    border: 1px solid white;
}

.project-grid {
    /*cursor: pointer;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 300px));
    gap: 10px;*/
    /*margin-left: 10px;*/
    /*justify-content: center;  Horizontal centering 
    align-content: center;  Vertical centering 
    place-content: center;
    height: 100vh;*/

    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 0px;
    justify-content: center;
    place-content: center;
    align-content: start;
    overflow-y: scroll;
    height: calc(100vh - 165px);
    border: 0px solid rgba(27, 57, 75, 0.125);
    border-radius: 0px;
    background-color: rgba(27, 57, 75, 0.05);
    margin: 0px;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 20px;
    padding-bottom: 20px;
    width: 100%
}

.page-header-project-data {
    margin-left: 0px;
    margin-bottom: 5px;
    padding: 5px 0;
}
    .page-header-project-data h1 {
        font-size: 2.25rem;
        font-weight: 700;
        color: #306389; /* Deep navy/black */
        margin: 0;
        letter-spacing: -0.025em;
    }

    .page-header-project-data p {
        font-size: 1.1rem;
        color: #306389; /* Muted slate gray */
        margin-top: 0.25rem;
        margin-bottom: 1.5rem;
    }

.page-header {
    margin-left: 25px;
    margin-bottom: 5px;
    padding: 5px 0;
}

    .page-header h1 {
        font-size: 2.25rem;
        font-weight: 700;
        color: #306389; /* Deep navy/black */
    margin: 0;
    letter-spacing: -0.025em;
}

    .page-header p {
        font-size: 1.1rem;
        color: #306389; /* Muted slate gray */
        margin-top: 0.25rem;
        margin-bottom: 1.5rem;
    }

/* The search bar inside the header */
.header-search {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 450px;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(27, 57, 75, 0.125);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

    .header-search i {
        color: red;
        font-size: 1.1rem;
    }

    .header-search input {
        border: none;
        background: transparent;
        width: 100%;
        font-size: 1rem;
        color: #1e293b;
        outline: none;
    }

        .header-search input::placeholder {
            color: #1e293b;
        }

/* The search bar inside the header */
.project-info {
    display: flex;
    align-items: center;
    gap: 12px;
    /*padding: 0.05rem 0.05rem;*/
    /*background-color: transparent;*/
    /*backdrop-filter: blur(8px);*/
    /*border: 1px solid rgba(27, 57, 75, 0.125);*/
    border: none;
    /*border-radius: 14px;*/
    border-radius: 0;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);*/
    margin-left: 50px;
}

    .project-info i {
        color: red;
        font-size: 1.1rem;
    }

    .project-info input {
        border: none;
        background: top;
        font-size: 35px;
        color: #1e293b;
        outline: none;
        font-weight: 700;
        font-family: Inter;
        /*padding: 10px;*/
        /*border: 2px solid #0078d4;*/
        /*border-radius: 4px;*/
        transition: font-size 0.1s ease; /* Keeps the transition smooth */
        white-space: nowrap;
        overflow: hidden;
        height: 40px;
        padding: 0;
        width: calc(100vw - 130px);
    }

        .project-info input::placeholder {
            color: dimgray;
        }

.dynamic-input {
}

@media (max-width: 640.98px) {
    .project-info {
        margin-left: 5px;
        /*width: calc(100vw - 20px);*/
        margin-top: -5px;
    }
        .project-info input {
            width: calc(100vw - 10px);
        }
}

@media (min-width: 641px) {
    .project-info {
        margin-left: 0px;
        /*padding-top: 60px;*/
        /*width: calc(100vw - 270px);*/
    }
        .project-info input {
            width: calc(100vw - 130px);
        }
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.75rem;
    }

    .header-search {
        max-width: 100%;
    }
}


.project-card {
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(27, 57, 75, 0.08);
    max-width: 360px;
    min-width: 360px;
    background-color: white;
    border-radius: 20px;
    margin: 10px;
}

    .project-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
    }

/* The container for Name and Percentage */
.header-content {
    flex-grow: 1; /* Takes up all middle space */
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

    .header-content h3 {
        margin: 0;
        margin-bottom:8px;
        font-size: 25px;
        font-weight: 600;
        color: #285271;
        letter-spacing: -0.01em;
    }

.progress-track {
    height: 6px;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 10px;
}

.card-meta {
    display: block;
    gap: 1rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 9px;
}

.btn-view {
    /* Layout & Shape */
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    /* Colors - Matching the ProFlow Blue */
    background: rgba(51, 106, 146, 0.15); /* Very subtle blue tint */
    color: #336A92;
    border: 1px solid rgba(28, 57, 78, 0.08);
    /* Interaction */
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .btn-view:hover {
        background: #1C394E;
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
        transform: translateY(-1px);
        border-color: #2563eb;
    }

    .btn-view:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
    }

    /* Optional: Add a small arrow icon via CSS if you don't want to use an image/font-icon */
    .btn-view::after {
        content: '→';
        font-size: 1.1rem;
        transition: transform 0.2s;
    }

    .btn-view:hover::after {
        transform: translateX(3px);
    }

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 7px;
    border-top: 1px solid rgba(0, 0, 0, 0.05); /* Subtle separator line */
    margin-top: auto; /* Pushes actions to the bottom if description is short */
}

/* Avatar Group Styling */
.avatars {
    display: flex;
    align-items: center;
}

    .avatars img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 2px solid #ffffff; /* White ring for the 'overlap' effect */
        margin-left: -10px; /* Creates the overlapping stack look */
        object-fit: cover;
        transition: transform 0.2s ease, z-index 0s;
        background: #e2e8f0;
    }

        /* Fix for the first avatar's margin */
        .avatars img:first-child {
            margin-left: 0;
        }

        /* Fun interaction: Pop the avatar on hover */
        .avatars img:hover {
            transform: translateY(-4px);
            z-index: 10;
            cursor: pointer;
        }

/* Avatar Group Styling */
.previews {
    display: flex;
    align-items: center;
}

    .previews img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: 2px solid #ffffff; /* White ring for the 'overlap' effect */
        margin-left: -10px; /* Creates the overlapping stack look */
        object-fit: cover;
        transition: transform 0.2s ease, z-index 0s;
        background: #e2e8f0;
    }

        /* Fix for the first avatar's margin */
        .previews img:first-child {
            margin-left: 0;
        }

        /* Fun interaction: Pop the avatar on hover */
        .previews img:hover {
            transform: translateY(-4px);
            z-index: 10;
            cursor: pointer;
        }

/* Styling for the project description text */
.card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: black; /* Professional slate gray */
    margin: 0.5rem 0 1.5rem 0;
    /* Force 2-line truncation to keep cards even */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Ensure it doesn't collapse if there's no text */
    min-height: 3rem;
}

.my-custom-container {
    width: 100%;
    padding-right: 15px;
    padding-left: 0px;
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box; /* Prevents horizontal scrollbars */
}

