/* Influencer Styles for Fanlink
 * Used for all influencer-facing pages
 */

:root {
    /* Base color palette */
    --primary-color: #E74C3C;
    --secondary-color: #3498DB;
    --accent-color: #2cc76a;
    --dark-color: #34495E;
    --light-color: #ECF0F1;
    --white-color: #fff;
    
    /* Semantic colors */
    --success-color: #2ECC71;
    --warning-color: #F39C12;
    --danger-color: #E74C3C;
    
    /* Layout variables */
    --sidebar-width: 250px;
    --header-height: 70px;
    --border-radius: 4px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Sidebar specific colors */
    --sidebar-bg: #2C3E50;
    --sidebar-text: #ECF0F1;
}

/* Import bootstrap base styles */
@import url('bootstrap.min.css');

/* Import font-awesome */
@import url('font-awesome.css');

/* Base Styles */
body {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    background: #FFF;
    position: relative;
}

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

a:hover, a:focus {
    color: #e84e49;
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-weight: bold;
}

p {
    color: #70747A;
}

/* Header & Navigation */
.navbar-header {
    min-height: 80px;
}

.navbar {
    background: var(--dark-color);
    border-bottom: 0;
}

.navbar-collapse {
    background: none;
    border: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    padding-top: 5px;
}

.navbar .nav > li > a {
    color: #FFF;
    text-transform: uppercase;
    text-shadow: 0 1px 0 #666;
}

.navbar .nav > li > a:focus, .navbar .nav > li > a:hover {
    color: #CCC;
}

.navbar .nav > .active > a, .navbar .nav > .active > a:hover, .navbar .nav > .active > a:focus {
    background: none;
    color: var(--primary-color);
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.navbar .nav {
    padding: 12px;
}

/* Buttons */
.btn-lg {
    font-size: 18px;
    padding: 15px 40px;
    margin: 5px 10px;
}

.btn-success {
    background-color: var(--accent-color);
    background-image: none;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
}

.btn-success:hover, .btn-success:focus, .btn-success:active {
    background-color: #22bb5f!important;
    color: #FFF!important;
}

.btn-primary {
    background-color: var(--secondary-color);
    background-image: none;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #209ab8!important;
    color: #FFF!important;
}

.btn-danger {
    background-color: var(--primary-color);
    background-image: none;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
}

.btn-danger:hover, .btn-danger:focus, .btn-danger:active {
    background-color: #eb534e!important;
    color: #FFF!important;
}

/* Dashboard Panels */
.dashboard-panel {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    overflow: hidden;
}

.dashboard-panel-header {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 15px 20px;
    font-weight: bold;
    position: relative;
}

.dashboard-panel-body {
    padding: 20px;
}

.dashboard-panel-footer {
    background: #f9f9f9;
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

/* Stats Counters */
.stat-counter {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.stat-counter .number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-counter .label {
    font-size: 14px;
    color: #666;
    display: block;
    text-transform: uppercase;
}

/* Availability Toggle */
.availability-toggle {
    display: inline-block;
    position: relative;
    margin: 15px 0;
}

.availability-toggle input[type="checkbox"] {
    display: none;
}

.availability-toggle label {
    display: block;
    width: 80px;
    height: 40px;
    background: #ccc;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
}

.availability-toggle label:after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s;
}

.availability-toggle input:checked + label {
    background: var(--success-color);
}

.availability-toggle input:checked + label:after {
    left: 45px;
}

.availability-toggle .status-text {
    margin-left: 10px;
    font-weight: bold;
}

.availability-toggle input:checked ~ .status-text {
    color: var(--success-color);
}

.availability-toggle input:not(:checked) ~ .status-text {
    color: #999;
}

/* Calendar Styles */
.calendar {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    padding: 15px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.calendar-header h3 {
    margin: 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    padding: 10px;
    text-align: center;
    border: 1px solid #eee;
    min-height: 80px;
}

.calendar-day.today {
    background: #f9f9f9;
    font-weight: bold;
}

.calendar-day.available {
    border-color: var(--success-color);
}

/* Modal Styles */
.modal-header {
    padding: 10px 30px;
    padding-right: 15px;
}

.modal-body {
    padding: 30px;
    padding-bottom: 15px;
}

.login-form input[type="text"], .login-form input[type="password"], .login-form input[type="email"] {
    font-size: 14px;
    border-radius: 3px;
    font-weight: normal;
    height: 40px;
}

.login-form .btn {
    width: 100%;
    margin: 0;
}

/* Footer */
.footer {
    position: relative;
    color: #fff;
    background: #0e7385;
    overflow: hidden;
    margin-top: 80px;
    padding: 40px 0;
}

.footer h1, .footer h3 {
    color: #FFF;
}

.footerlinks {
    margin: 20px 0;
}

.footerlinks p {
    color: #68737b;
    text-transform: uppercase;
    padding-top: 15px;
}

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

.footerlinks ul li {
    color: #FFF;
    padding: 2px 0;
}

.footerlinks ul li a {
    color: #FFF;
}

.copyright {
    margin: 30px 0;
    text-align: center;
}

/* Dashboard Layout Structure */
body {
    padding-top: var(--header-height);
    background-color: #f5f5f5;
}

/* Page layout structure */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

/* Sidebar styling */
.dashboard-sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    flex-shrink: 0;
    border-right: 1px solid rgba(0,0,0,0.1);
}

.influencer-sidebar {
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 20px 0;
}

.profile-summary {
    padding: 0 15px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.profile-summary .profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.2);
}

.profile-summary .profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-summary h4 {
    margin: 0 0 5px;
    color: white;
    font-size: 18px;
}

.profile-summary p {
    margin: 0;
    opacity: 0.7;
    font-size: 14px;
}

/* Sidebar Navigation */
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.sidebar-nav li a {
    display: block;
    padding: 12px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 15px;
}

.sidebar-nav li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    opacity: 0.8;
}

.sidebar-nav li.active a {
    background: rgba(255,255,255,0.1);
    border-left: 4px solid var(--primary-color);
    font-weight: bold;
}

.sidebar-nav li:hover a {
    background: rgba(255,255,255,0.05);
    padding-left: 25px;
}

.sidebar-nav .badge {
    float: right;
    margin-top: 2px;
    background-color: var(--primary-color);
}

/* Main content area */
.dashboard-content {
    flex-grow: 1;
    padding: 30px;
    width: 100%;
}

.dashboard-welcome {
    margin-bottom: 30px;
}

.dashboard-welcome h1 {
    margin-top: 0;
    font-size: 28px;
    color: var(--dark-color);
}

/* Mobile Sidebar Overlay */
#sidebarOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

#sidebarOverlay.active {
    display: block;
}

/* Right sidebar helper */
.dashboard-helper {
    display: none;
}

@media (max-width: 1200px) {
    .dashboard-helper {
        display: none;
    }
}

/* Dashboard Card Styling */
.dashboard-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.dashboard-card-header {
    background: var(--secondary-color);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    border-bottom: none;
}

.dashboard-card-header h3 {
    margin: 0;
    font-size: 18px;
}

.dashboard-card-body {
    padding: 20px;
}

/* Media Queries */
@media (max-width: 991px) {
    .stat-counter .number {
        font-size: 30px;
    }
    
    .dashboard-panel-body,
    .dashboard-card-body {
        padding: 15px;
    }
    
    /* Mobile Sidebar */
    .dashboard-sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100%;
        width: 250px;
        z-index: 999;
        background-color: var(--sidebar-bg);
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .dashboard-sidebar.active {
        left: 0;
    }
    
    .dashboard-content {
        width: 100%;
        max-width: 100%;
        padding-left: 15px !important;
        margin-left: 0;
    }
    
    .profile-summary .profile-image {
        width: 80px;
        height: 80px;
    }
    
    .sidebar-nav li a {
        padding: 12px 20px;
        text-align: left;
    }
    
    .sidebar-nav li a i {
        margin-right: 10px;
        font-size: 16px;
    }
    
    /* Hamburger button in navbar */
    #sidebarToggle {
        float: right;
        margin-top: 20px;
        margin-right: 15px;
        background: transparent;
        border: none;
        color: white;
        font-size: 20px;
        z-index: 100;
    }
    
    #sidebarToggle:focus {
        outline: none;
    }
}

/* Legacy narrow sidebar - keeping in case design team wants to revert */
@media (min-width: 992px) and (max-width: 1199px) {
    .dashboard-sidebar {
        width: 60px;
    }
    
    .profile-summary {
        padding: 10px 5px;
    }
    
    .profile-summary h4, 
    .profile-summary p {
        display: none;
    }
    
    .profile-summary .profile-image {
        width: 40px;
        height: 40px;
    }
    
    .sidebar-nav li a {
        padding: 12px 0;
        text-align: center;
    }
    
    .sidebar-nav li a i {
        margin-right: 0;
        font-size: 18px;
    }
    
    .sidebar-nav li a span {
        display: none;
    }
    
    .dashboard-content {
        max-width: calc(100% - 60px);
    }
}

@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .calendar-day {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dashboard-content {
        padding: 15px;
    }
    
    /* Stats boxes on mobile */
    .stats-box {
        min-width: calc(50% - 20px);
    }
    
    /* Adjust navbar elements for smaller screens */
    .navbar-brand {
        max-width: 70%;
    }
    
    #sidebarToggle {
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .dashboard-content {
        padding: 15px;
    }
    
    .stats-box {
        min-width: 100%;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 16px;
    }
}