﻿/* General styling for demonstration */

.typewriter-container {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.greeting {
    color: #454545;
    font-family: monospace;
    font-size: 1.0rem;
    text-decoration: underline;
    font-weight: bolder;
    overflow: hidden;
    border-right: .15em solid orange;
    white-space: nowrap;
    margin: 0;
    letter-spacing: .1em;
    width: 0;
    display: inline-block;
    animation: typing 3s steps(40, end) forwards, blink-caret .75s step-end infinite;
}

.body-blue-bg .greeting {
    color: #0D6EFD;
    font-family: monospace;
    font-size: 1.0rem;
    text-decoration: underline;
    font-weight: bolder;
    overflow: hidden;
    border-right: .15em solid orange;
    white-space: nowrap;
    margin: 0;
    letter-spacing: .1em;
    width: 0;
    display: inline-block;
    animation: typing 3s steps(40, end) forwards, blink-caret .75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent
    }

    50% {
        border-color: transparent;
    }
}

.circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #595959;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    color: white;
}

.body-blue-bg .circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #0D6EFD;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    color: white;
}

#typewriter {
    margin-top: 5px;
    min-height: 15px;
    animation: slideIn 1.2s ease forwards;
    font-size:12px;
    color:white;
}

/*-----------------------------------------------------------*/
/* Custom background classes */
.body-blue-bg {
    background-color: #B8D4FE !important;
    transition: background-color 0.3s ease;
}

.body-light-bg {
    background-color: #B3B3B3 !important;
    transition: background-color 0.3s ease;
}

/* Header and layout styles */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;   
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-info {
    font-size: 0.95rem;
    color: #495057;
}

.logout-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Theme Toggle Styles */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
    margin: 0;
}

    .theme-toggle input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f8f9fa;
    border: 2px solid #B8D4FE;
    border-radius: 34px;
    transition: .4s;
}

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 2px;
        bottom: 2px;
        background-color: #B8D4FE;
        border-radius: 50%;
        transition: .4s;
    }

.theme-toggle input:checked + .toggle-slider {
    background-color: #B8D4FE;
    border-color: #f8f9fa;
}

    .theme-toggle input:checked + .toggle-slider:before {
        transform: translateX(30px);
        background-color: #f8f9fa;
    }

/* Icons inside toggle - smaller for header */
.toggle-slider:after {
    content: "☀️";
    position: absolute;
    right: 8px;
    top: 1px;
    font-size: 12px;
    line-height: 24px;
}

.theme-toggle input:checked + .toggle-slider:after {
    content: "🌙";
    left: 8px;
    right: auto;
}

/* Dark mode styles for header when body is blue */
.body-blue-bg .top-header {
    background-color: #e8f0ff;
    border-bottom: 1px solid #a0c3ff;
}

.body-blue-bg .footer {
    background-color: #e8f0ff;
    border-top: 1px solid #a0c3ff;
}

.body-blue-bg .user-info {
    color: #1a56db;
}


:root {
    --sidebar-width: 250px;
    --sidebar-bgs: #0D6EFD;
    --header-height: 60px;
    --sidebar-collapsed-width: 70px;
}

/* Sidebar */
.body-blue-bg .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background-color: var(--sidebar-bgs);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Collapsed Sidebar */
    .body-blue-bg .sidebar.collapsed {
        width: var(--sidebar-collapsed-width);
        overflow: hidden;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px;
    }

    .logout-section {
        align-self: flex-end;
        margin-top: 5px;
    }

    .theme-toggle {
        width: 50px;
        height: 24px;
    }

    .toggle-slider:before {
        height: 16px;
        width: 16px;
    }

    .theme-toggle input:checked + .toggle-slider:before {
        transform: translateX(24px);
    }
}


.alert {
    /* Your existing alert styles */
}

.alert-one {   
    background-color: #e9ecef; 
}

/* When body has .body-blue-bg class, change alert colors */
.body-blue-bg .alert-one {   
    background-color: #e8f0ff;
}


.tr-one {
    background-color: #e9ecef;
    color: blue;
}

.body-blue-bg .tr-one {
    background-color: #e8f0ff;
}

.bg-one {
    background-color: #0D6EFD;
}

.body-blue-bg .bg-one {
    background-color: #0242A2;
}

.text-D {
    color: #454545;
}

.body-blue-bg .text-D {
    color: #0D6EFD;
}


.table-header-custom th {
    background-color: #595959 !important;
    color: white !important;
}

.body-blue-bg .table-header-custom th {
    background-color: #0D6EFD !important;
    color: white !important;
}


.bg-pro {
    background-color: #595959 !important;
    
}

.body-blue-bg .bg-pro {
    background-color: #0D6EFD !important;
   
}

.border-pro {
    border-color: #595959 !important;
}

.body-blue-bg .border-pro {   
    border-color: #0D6EFD !important;
}

.border-Dash {
    border-color: #969696 !important;
}

.body-blue-bg .border-Dash {
    border-color: #3082FD !important;
}



.btn-pro {
    background-color: #595959 !important;
    color: white !important;
}

.body-blue-bg .btn-pro {
    background-color: #0D6EFD !important;
    color: white !important;
}

/*dashboard color*/
.bg-20 {
    background-color: #DBDBDB !important;
}

.bg-30 {
    background-color: #C4C4C4 !important;
}

.bg-40 {
    background-color: #ADADAD !important;
}

.bg-50 {
    background-color: #969696 !important;
}

.bg-Dash {
    background-color: #3B3B3B !important;
    color:white;
}

.bg-back {
    background-color: #F2F2F2 !important;
    color: #595959;
}


.body-blue-bg .bg-back {
    background-color: #F2F2F2 !important;
    color: #0D6EFD;
}


/* bg*/
.body-blue-bg .bg-20 {
    background-color: #B8D4FE !important;
}

.body-blue-bg .bg-30 {
    background-color: #8BB9FE !important;
}

.body-blue-bg .bg-40 {
    background-color: #5D9DFD !important;
}

.body-blue-bg .bg-50 {
    background-color: #3082FD !important;
}

.body-blue-bg .bg-Dash {
    background-color: #0242A2 !important;
    color: white;
}

