:root{
    --white-bg: #FFFFFF;
    --brand-color: #A9B8FF;
    --coral-orange: #FF7043;
    --background-color: #FAFAFA;
    --text-color: #000000;
}

[class*=sidebar-dark] .brand-link {
    border-bottom: 0px solid #4b545c;
}

body{
    background-color: var(--background-color) !important;
    color: var(--text-color) !important;
    font-family: 'Inter', sans-serif !important;
}

.main-header{
    padding:14px 20px;
}

.bg-brand {
    background-color: var(--brand-color) !important;
}

.custom-bg-info{
    background-color: #FFF1E6 !important;
}

.custom-bg-late{
    background-color: #FFE5DE !important;
}

.custom-bg-success{
    background-color: #EEF0FF !important;
}

.custom-bg-danger{
    background-color: #28a7451f !important;
}

.custom-bg-success-for-user{
    background-color: var(--coral-orange) !important;
}

.custom-bg-success-for-user:hover{
    background-color: #ff7043c4 !important;
}

.payment-badge {
    display: inline-block;
    padding: .5rem 1rem;
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 500;
}

.payment-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.payment-badge.paid {
    background: #d1fae5;
    color: #065f46;
}

.payment-badge.refunded {
    background: #fee2e2;
    color: #991b1b;
}

.custom-status-pending{
    background-color: rgb(245, 158, 11) !important;
    color: #fff;
}

.custom-status-confirmed{
    background-color: rgb(16, 185, 129) !important;
    color: #fff;
}

.custom-status-cancelled{
    background-color: rgb(239, 68, 68) !important;
    color: #fff;
}
.custom-status-completed{
    background-color: rgb(59, 130, 246) !important;
    color: #fff;
}

.nav-link.active {
    background-color: #ffffff2e !important;
    color: var(--coral-orange) !important;
    box-shadow: unset !important;
}

.nav-link.active:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #fff;
    border-radius: 0 2px 2px 0;
}

.nav-item a:hover {
    color: #fff !important;
}

.sidebar a{
    color: var(--text-color) !important;
}

footer.main-footer {
    background-color: var(--brand-color) !important;
    color: var(--text-color) !important;
}

.btn-primary {
    background-color: var(--coral-orange) !important;
    border-color: var(--coral-orange) !important;
}

.card-header {
    background-color: var(--brand-color) !important;
    border-color: var(--brand-color) !important;
    color: var(--text-color) !important;
}

.content-wrapper{
    background-color: var(--white-bg) !important;
    padding: 20px;
}

.text-black {
    color: #000 !important;
}

.template-card{
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px #a9b8ff26;
    transition: all .3s ease;
    overflow: visible;
    position: relative;
}

.template-card:hover {
    border-color: #ff7043;
    box-shadow: 0 8px 24px #ff704340;
    transform: translateY(-4px);
}

.template-card-header{
    background-color: #FAFAFA !important;
    border-bottom: 2px solid #E0E0E0 !important;
}

.template-card-header h5{
    width: 150px;
    font-size: 14px;
}

.template-card .card-body{
    /* line-height: 1.7; */
}

.template-card .card-body p{
    font-size: 15px;
    color: #333;
    margin: 0;
    /* white-space: pre-line; */
}

.communication-template-header h1{
    font-size: 42px;
    font-weight: 700;
    color: #000;
    margin-bottom: 24px;
    letter-spacing: -.5px;
}
.communication-template-header .header-intro {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin: 0 0 20px;
    line-height: 1.4;
}

.communication-template-header .header-description {
    font-size: 18px;
    color: #333;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 20px;
}

.communication-template-header .header-tagline {
    font-size: 20px;
    font-weight: 600;
    color: #ff7043;
    margin: 0;
    font-style: italic;
}

.cta-section {
    padding: 120px 40px;
    background: linear-gradient(135deg,#667eea,#764ba2,#f093fb);
    position: relative;
    overflow: hidden;
}

.cta-section:before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cta-dots" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="2" fill="white" opacity="0.1"/><circle cx="5" cy="5" r="1" fill="white" opacity="0.05"/><circle cx="25" cy="25" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23cta-dots)"/></svg>');
    opacity: .6;
}

.cta-heading {
    margin: 0 0 20px;
    font-size: 36px;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.2;
    background: linear-gradient(135deg,#667eea,#764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.cta-content:before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 24px 24px 0 0;
}

.card--primary {
    border-top: 4px solid #6b61bc !important;
}



.task-card {
    background: #f7f8ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px #0000001a;
    border-left: 4px solid #A9B8FF;
    transition: all .2s ease;
    position: relative;
    overflow: hidden;
}

.task-card .card-header{
    background-color: transparent !important;
    border-bottom: none !important;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.logo-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 2px;
    color: #000;
}

.logo-subtitle {
    font-size: 11px;
    opacity: .8;
    font-weight: 400;
    color: #000;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #53e0d6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: #ffffff26;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo-icon img{
    width: 20px;
    height: 20px;
}
.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.sidebar-toggle {
    margin-left: auto;
    background: #ffffff26;
    border: none;
    color: var(--black);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,.15);
    margin-top: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #000;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.user-email {
    font-size: 12px;
    color: var(--black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar {
    scrollbar-width: thin;
    scrollbar-color: var(--coral-orange) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}
.sidebar::-webkit-scrollbar-thumb {
    background-color: var(--coral-orange);
    border-radius: 4px;
}

.sidebar nav{
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
}

.tasks-section {
    background: #f7f8ff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #A9B8FF;
}

.tasks-header h3{
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.tasks-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.archive-mode-btn, .archive-selected-btn, .select-all-btn, .cancel-archive-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.archive-mode-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    font-size: 16px;
    color: var(--text-secondary);
    z-index: 1;
}

.search-input {
    padding: 10px 12px 10px 40px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    width: 250px;
    transition: border-color .2s ease;
    background: #fff;
    color: #000;
}

.search-input:focus {
    outline: none;
    border-color: #a9b8ff;
}

.filter-select {
    padding: 10px 12px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease;
    color: #000;
}

.filter-select {
    padding: 12px 40px 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    background: #ffffffe6;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 2px 8px #0000000d;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    width: 100%;
    text-align: left;
}

.filter-select {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.filter-select {
    padding: .5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: .9rem;
}

.filter-select {
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    flex: 1;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.filter-select:focus {
    outline: none;
    border-color: #a9b8ff;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fffffff2;
    box-shadow: 0 4px 12px #3b82f626;
    transform: translateY(-1px);
}

.filter-select:hover {
    border-color: #d1d5db;
    background: #fffffff2;
}

.filter-select:focus {
    outline: none;
    border-color: #a9b8ff;
    box-shadow: 0 0 0 2px #a9b8ff33;
}

.primary-btn {
    padding: 16px 28px;
    background: var(--coral-orange);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.primary-btn, .secondary-btn {
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all .3s ease;
    box-shadow: 0 2px 8px #0000001a;
}

.primary-btn {
    background: linear-gradient(135deg,#3b82f6,#1d4ed8);
    color: #fff;
}

.primary-btn {
    background: #ff7043;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.primary-btn {
    background: var(--coral-orange);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.primary-btn {
    padding: 10px 14px;
    background: var(--coral-orange);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(350px,1fr));
    gap: 20px;
}

.task-card {
    background: #f7f8ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px #0000001a;
    border-left: 4px solid #A9B8FF;
    transition: all .2s ease;
    position: relative;
    overflow: hidden;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.top-nav {
    width: 100%;
    /* max-width: 1000px; */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* margin-bottom: 50px; */
    background: linear-gradient(135deg, #667eea, #cbb5e1, #eac4ef);
}

.logo-area { text-align: center; flex-grow: 1; margin-left: 0%; }

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0px;
    margin-top: 20px;
}

.logo-icon {
    background: linear-gradient(135deg, #7d69f0, #ea70cf);
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: bold;
    position: relative;
    left: 40%;
}

.logo-icon img{
    width: 50px;
    height: 50px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #4a3f81;
    letter-spacing: 1px;
}

.tagline {
    color: #4a3f81;
    font-size: 14px;
    opacity: 0.8;
}

.top-links {
    color: #4a3f81;
    font-size: 13px;
    opacity: 0.7;
    margin-top: 40px;
    position: relative;
    right: 150px;
}
.top-links a { text-decoration: none; color: inherit; }

.login-page{
    height: 86vh;
}

.login-box .card{
    border-radius: 10px;
}

.logo-icondashboard{
    left: 0%;
}


@media only screen and (max-width: 768px) {
    .cta-section {
        padding: 120px 15px;
    }
    .logo-icon {
        left: 17%;
    }

    .logo-icondashboard{
        left: 0%;
    }

    .tasks-controls{
        display: block;
    }

    .search-box{
        margin-bottom: 10px;
    }

    .filter-select{
        margin-bottom: 10px;
    }

    .archive-mode-btn {
        background: #f3f4f6;
        color: #374151;
        border: 1px solid #d1d5db;
        width: 100%;
        display: none;
    }

    .search-input {
        display: block;
        width: 100%;
    }

    .primary-btn-home {
        display: block;
        margin: 0px auto;
    }

    .tasks-header h3 {
        font-size: 16px;
    }
}
