/* Main Styles for Rotarian Digital Systems Demo */

:root {
    --primary: #005DAA;
    --primary-hover: #0046af;
    --primary-light: #E6F0FF;
    --secondary: #F7A81B;
    --success: #33CC66;
    --danger: #FF5C77;
    --warning: #FFBD59;
    --info: #56CCF2;
    --dark: #333333;
    --light: #F8F9FA;
    --gray: #6c757d;
    --border-color: #e5e9f2;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 70px;
    --topbar-height: 70px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: #333;
    font-size: 0.95rem;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

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

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

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--primary) 0%, #004993 100%);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: width var(--transition-speed) ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.sidebar-header h5 {
    font-size: 16px;
    color: white;
    font-weight: 600;
    margin-bottom: 0;
}

.sidebar-header h5 span {
    opacity: 0.8;
    font-weight: 400;
}

#sidebarToggle {
    position: absolute;
    right: 10px;
    top: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.sidebar-user {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.sidebar-user .user-info {
    margin-left: 10px;
}

.sidebar-user h6 {
    margin: 0;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-user span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding-top: 10px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 3px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
}

.sidebar-nav li a i {
    margin-right: 15px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar-nav li.active a,
.sidebar-nav li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-nav li.active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--secondary);
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-footer .btn-outline-light {
    width: 100%;
    margin-bottom: 10px;
    font-size: 14px;
    border-color: rgba(255, 255, 255, 0.3);
}

.sidebar-footer .dropdown button {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.sidebar-footer .dropdown-menu {
    font-size: 13px;
    min-width: 120px;
}

/* Main Content Styles */
.content {
    margin-left: var(--sidebar-width);
    transition: margin var(--transition-speed) ease;
    flex: 1;
    width: calc(100% - var(--sidebar-width));
}

.sidebar.collapsed + .content {
    margin-left: var(--sidebar-collapsed-width);
    width: calc(100% - var(--sidebar-collapsed-width));
}

/* Topbar Styles */
.topbar {
    background-color: #fff;
    height: var(--topbar-height);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    padding: 0 25px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 99;
}

.page-title {
    font-size: 20px;
    margin-bottom: 0;
    color: var(--dark);
}

.breadcrumb {
    margin-bottom: 0;
    font-size: 13px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-box input {
    border: none;
    background-color: var(--light);
    padding: 8px 15px 8px 40px;
    border-radius: 50px;
    width: 220px;
    font-size: 14px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.notification-bell,
.messages {
    position: relative;
    cursor: pointer;
}

.notification-bell i,
.messages i {
    font-size: 20px;
    color: var(--gray);
}

.notification-bell .badge,
.messages .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px solid white;
}

/* Dashboard Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
}

.card-header h5 {
    margin-bottom: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.card-header h5 i {
    margin-right: 10px;
    color: var(--primary);
}

.card-body {
    padding: 20px;
}

/* Stats Cards */
.stat-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 22px;
    color: white;
}

.stat-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
}

.stat-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: 10px;
}

.badge-success {
    background-color: rgba(51, 204, 102, 0.1);
    color: var(--success);
}

.badge-danger {
    background-color: rgba(255, 92, 119, 0.1);
    color: var(--danger);
}

/* Progress */
.custom-progress {
    height: 8px;
    border-radius: 5px;
    background-color: #eceef4;
}

.custom-progress .progress-bar {
    border-radius: 5px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar {
        width: var(--sidebar-collapsed-width);
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
        width: var(--sidebar-width);
    }
    
    .content {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .topbar {
        padding: 0 15px;
    }
    
    .search-box input {
        width: 150px;
    }
}

/* Animation for fading in elements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    animation: fadeIn 0.5s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

/* Login Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
