/* Base Styles */
:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #4cc9f0;
    --warning-color: #f8961e;
    --danger-color: #f72585;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-large {
    padding: 12px 28px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Header Styles */
.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo-icon {
    margin-right: 10px;
    color: var(--primary-color);
}

.logo-text span {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
    display: none;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin-left: 30px;
}

.nav-item {
    position: relative;
    margin: 0 10px;
}

.nav-link {
    padding: 10px 15px;
    color: var(--dark-color);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.nav-link i {
    margin-left: 5px;
    font-size: 0.8rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 20px;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-column {
    margin-bottom: 15px;
}

.dropdown-column h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.dropdown-column a {
    display: block;
    padding: 5px 0;
    color: var(--gray-color);
    font-size: 0.9rem;
}

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

.header-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.header-actions .btn {
    margin-left: 10px;
}

/* Mobile Navigation */
.mobile-nav-container {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.mobile-nav-container.active {
    left: 0;
}

.mobile-nav {
    padding: 20px;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 15px;
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
    color: var(--dark-color);
    font-weight: 500;
}

.mobile-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-submenu {
    padding-left: 15px;
    margin-top: 10px;
    display: none;
}

.mobile-submenu.active {
    display: block;
}

.mobile-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
}

.mobile-actions .btn {
    margin-bottom: 10px;
    text-align: center;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    margin-top: 2rem;
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero .lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--gray-color);
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* Logos Section */
.logos-section {
    padding: 40px 0;
    background-color: white;
    text-align: center;
}

.logos-section p {
    margin-bottom: 20px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.logos-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.logos-grid img {
    height: 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.logos-grid img:hover {
    opacity: 1;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--primary-color);
}

.feature-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.feature-link:hover i {
    transform: translateX(3px);
}

/* Demo Section */
.demo-section {
    padding: 80px 0;
    background-color: white;
}

.demo-section .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.demo-content {
    flex: 1;
    min-width: 300px;
}

.demo-image {
    flex: 1;
    min-width: 300px;
}

.demo-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.testimonial {
    min-width: 300px;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--gray-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.testimonial-author p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Footer */
.main-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-col ul li i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-links a:hover {
    color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
    }
    
    .header-actions {
        display: none;
    }
    
    .hero {
        padding: 120px 0 60px;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .demo-section .container {
        flex-direction: column;
    }
    
    .demo-content {
        order: 2;
    }
    
    .demo-image {
        order: 1;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* Auth Pages */
.auth-page {
    padding: 100px 0;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.auth-page .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.auth-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    margin: 0 auto;
}

.auth-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.auth-header {
    margin-bottom: 30px;
    text-align: center;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.auth-header p {
    color: var(--gray-color);
}

.auth-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.forgot-password {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    margin-top: 5px;
    color: var(--gray-color);
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me input {
    width: auto;
    margin-right: 10px;
}

.remember-me label {
    margin-bottom: 0;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.auth-social {
    margin-top: 30px;
    text-align: center;
}

.auth-social p {
    margin-bottom: 15px;
    color: var(--gray-color);
    position: relative;
}

.auth-social p::before,
.auth-social p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #ddd;
}

.auth-social p::before {
    left: 0;
}

.auth-social p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
    color: white;
}

.btn-google {
    background-color: #DB4437;
}

.btn-microsoft {
    background-color: #00A1F1;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dashboard Styles */
.dashboard {
    padding: 30px 0 60px;
}

.dashboard-header {
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.dashboard-header p {
    color: var(--gray-color);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    color: white;
}

.stat-primary .stat-icon {
    background-color: var(--primary-color);
}

.stat-success .stat-icon {
    background-color: var(--success-color);
}

.stat-warning .stat-icon {
    background-color: var(--warning-color);
}

.stat-danger .stat-icon {
    background-color: var(--danger-color);
}

.stat-content h3 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--gray-color);
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.stat-change {
    font-size: 0.8rem;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.05);
}

.stat-primary .stat-change {
    color: var(--primary-color);
}

.stat-success .stat-change {
    color: var(--success-color);
}

.stat-warning .stat-change {
    color: var(--warning-color);
}

.stat-danger .stat-change {
    color: var(--danger-color);
}

.quick-access {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.app-card {
    text-align: center;
    padding: 20px 15px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: white;
}

.app-card h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.app-card p {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.bg-primary { background-color: var(--primary-color); }
.bg-success { background-color: var(--success-color); }
.bg-info { background-color: #17a2b8; }
.bg-warning { background-color: var(--warning-color); }
.bg-danger { background-color: var(--danger-color); }
.bg-secondary { background-color: #6c757d; }

.recent-activity {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.activity-list {
    margin-top: 20px;
}

.activity-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
}

.activity-content h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.activity-content p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.activity-content small {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.view-all {
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    font-weight: 500;
    color: var(--primary-color);
}

.view-all i {
    margin-left: 5px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.view-all:hover i {
    transform: translateX(3px);
}

.performance-chart {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.chart-container {
    height: 300px;
    margin-top: 20px;
    position: relative;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.user-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.user-toggle img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
}

.user-toggle span {
    margin-right: 8px;
    font-weight: 500;
}

.user-toggle i {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.user-dropdown:hover .user-menu {
    opacity: 1;
    visibility: visible;
}

.user-menu a {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.user-menu a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.user-menu a i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
    color: var(--gray-color);
}

.user-menu a:hover i {
    color: var(--primary-color);
}
