/* Background and Base Styles */
body {
    background-image: url('/static/images/default-bg.png');
    background-size: cover; /* Covers entire viewport */
    background-repeat: no-repeat; /* Prevents repeating */
    background-position: center; /* Centers the image */
    background-attachment: scroll; /* the image will scroll while scrolling */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;}

@keyframes subtleFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 1;
    }
    50% { 
        transform: translateY(-5px) rotate(0.5deg); 
        opacity: 0.9;
    }
}

.main-content {
    position: relative;
    z-index: 1;
    padding-top: 40px;
}

/* Greeting Section */
.greeting-section {
    margin-bottom: 100px;
    margin-left: 200px;
}

.greeting-text {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #0f91cd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
}

.telegram-connection-wrapper {
    display: flex;
    justify-content: flex-end;
}

.telegram-connection {
    background: white;
    border-radius: 25px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.telegram-icon {
    color: #0088cc;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.username {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.connection-label {
    color: #6c757d;
    font-size: 13px;
}

.toggle-switch {
    width: 40px;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch.active {
    background: #6699cc;
}

.toggle-slider {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider {
    left: 22px;
}

/* Dashboard Cards */
.dashboard-section {
    margin-bottom: 32px;
}

.dashboard-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #0f91cd;
    overflow: hidden;
    margin-bottom: 30px;
}

.card-header {
    background: linear-gradient(135deg, #0C91CD 0%, #86599E 100%);
    padding: 16px 24px;
    border: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    color: white;
    font-size: 20px;
    font-weight: 400;
    margin: 0;
}

.header-icons {
    display: flex;
    gap: 12px;
}

.header-icons i {
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.header-icons i:hover {
    opacity: 1;
}

.card-body {
    padding: 24px;
    
}

.row{
    display: flex;
    align-items: stretch;
    min-height: 100%; /* or whatever height you want */
}

.col-lg-6 {
    display: flex;
    flex-direction: column;
}

/* Notifications Table */
.notifications-table {
    width: 100%;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 80px;
    gap: 16px;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.col-header {
    font-size: 13px;
    color: #B2B2B2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

/* Column separator lines for headers */
.col-header:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -8px;
    top: -2px;
    bottom: -12px;
    width: 1px;
    background: #d1d5db;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 80px;
    gap: 16px;
    padding: 5px 0;
    border-bottom: 1px solid #f1f3f4;
    align-items: center;
}

.table-row:last-child {
    border-bottom: none;
}

.col-data {
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    position: relative;
}

/* Column separator lines for data rows */
.col-data:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -8px;
    top: -12px;
    bottom: -12px;
    width: 1px;
    background: #B2B2B2;
}

.notification-text {
    color: #2c3e50;
    font-size: 15px;
}

.checkbox-col {
    display: flex;
    justify-content: center;
}

.custom-checkbox {
    width: 25px;
    height: 25px;
    border: 2px solid #7C7C7C;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.custom-checkbox.checked {
    background: white;
    border-color: #6699cc;
}

.custom-checkbox i {
    background: linear-gradient(135deg, #6699cc 0%, #9966cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 1000;
}

.custom-checkbox.checked i {
    opacity: 1;
}

/* Students Stats */
.students-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-item {
    text-align: center;
    position: relative;
}

/* Vertical separator between stats */
.stat-item:first-child::after {
    content: '';
    position: absolute;
    right: -12px;
    top: -25px;
    bottom: -25px;
    width: 2px;
    background: #0f91cd;
}

.stat-label {
    font-size: 20px;
    color: #0f91cd;
    margin-bottom: 55px;
    line-height: 1.4;
    text-align: left;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.stat-number {
    color: #0f91cd;
}

/* Bot Training */
.bot-training-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.training-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.training-item:last-child {
    border-bottom: none;
}

.telegram-handle {
    color: #0f91cd;
    font-weight: 500;
    font-size: 16px;
}

.training-date {
    color: #0f91cd;
    font-size: 13px;
}

.btn-go {
    background: transparent;
    color: #6699cc;
    padding: 1px 10px;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 2px solid #0f91cd; /* This will now work */
    outline: none !important;
    box-shadow: none;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom-style: solid; /* solid, dashed, dotted, double */
}

/* Sort and Search Section */
.sort-search-section {
    margin-bottom: 32px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sort-label {
    font-size: 16px;
    color: #7C7C7C;
    font-weight: 400;
}

.radio-group {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    margin-left: 40px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #7C7C7C;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #0f91cd;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 13px;
    height: 13px;
    background: #0f91cd;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.search-wrapper {
    display: flex;
    justify-content: flex-end;
}

.search-box {
    position: relative;
    width: 280px;
    border-radius: 25 px;
    padding-right: 400px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
}

.search-input {
    width: 400px;
    padding: 12px 16px 12px 40px;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    background: white;
    outline: none;
    transition: all 0.2s ease;
    border: solid 2px #0f91cd;

}

.search-input:focus {
    border-color: #0f91cd;
    box-shadow: 0 0 0 3px rgba(102, 153, 204, 0.1);
}

/* Courses Table */
.courses-section {
    margin-bottom: 32px;
}

.my-courses-card-header{
    background-color: #0f91cd;
    padding: 16px 24px;
    border: none;
}

.courses-table .table-header {
    grid-template-columns: 2fr 1.2fr 1.2fr 1fr 2fr 1fr;
    border-bottom: 2px solid #e9ecef;
}

.courses-table .table-row {
    grid-template-columns: 2fr 1.2fr 1.2fr 1fr 2fr 1fr;
    border-bottom: 1px solid #f1f3f4;
}

.course-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-icons {
    display: flex;
    gap: 6px;
}

.course-icons i {
    color: #6c757d;
    font-size: 12px;
}

.edit-icon {
    color: #6c757d;
    font-size: 12px;
    margin-left: 8px;
}

.toggle-col {
    display: flex;
    justify-content: center;
}

.visibility-toggle {
    width: 40px;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.visibility-toggle.active {
    background: #6699cc;
}

.visibility-toggle .toggle-slider {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.visibility-toggle.active .toggle-slider {
    left: 22px;
}

.description-text {
    color: #6c757d;
    font-size: 13px;
}

.add-course-btn {
    background: transparent;
    border: none;
    color: #6699cc;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.add-course-btn:hover {
    font-size: medium;
}

.add-course-btn i {
    font-size: 20px;
}

/* Users Table */
.users-section {
    margin-bottom: 100px;
    margin-top: 80px;
}

.user-status-card-header{
    background-color: #86599e;
    padding: 16px 24px;
    border: none;
}

.users-table .table-header {
    grid-template-columns: 1fr 1.5fr 1.5fr 2fr;
    border-bottom: none;
}

.users-table .table-row {
    grid-template-columns: 1fr 1.5fr 1.5fr 2fr;
    border-bottom: 1px solid #f1f3f4;
    border:none;
    margin-bottom: 30px;
}

.go-link {
    color: #000000;
    text-decoration: underline;
    font-size: 15px;
    font-weight: 10000;
    margin-right: 200px;
}

.link-icon {
    color: #B2B2B2;
    font-size: 16px;
    margin-left: 6px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .greeting-text {
        font-size: 36px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .telegram-connection-wrapper {
        justify-content: center;
    }
    
    .students-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-item:first-child::after {
        display: none;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .search-wrapper {
        justify-content: flex-start;
        margin-top: 16px;
    }
    
    .search-box {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 20px;
    }
    
    .greeting-text {
        font-size: 28px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .notifications-table .table-header,
    .notifications-table .table-row {
        grid-template-columns: 1fr;
    }
    
    .courses-table .table-header,
    .courses-table .table-row {
        grid-template-columns: 1fr;
    }
    
    .users-table .table-header,
    .users-table .table-row {
        grid-template-columns: 1fr;
    }
    
    .col-header {
        display: none;
    }
    
    /* Remove column separators on mobile */
    .col-header::after,
    .col-data::after {
        display: none;
    }
    
    .col-data::before {
        content: attr(data-label) ': ';
        font-weight: 600;
        color: #6c757d;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .training-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .btn-go {
        align-self: flex-end;
    }
    
    .sort-options {
        margin-bottom: 16px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .greeting-text {
        font-size: 24px;
    }
    
    .telegram-connection {
        padding: 10px 16px;
        gap: 8px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .dashboard-card {
        border-radius: 16px;
    }
    
    .card-header {
        padding: 12px 16px;
    }
    
    .card-body {
        padding: 12px;
    }
}


.main-content{
    padding-left: 50px;
    padding-right: 50px;
}