/* Custom styles for Kashtaap Dashboard */

/* Navbar logo styling */
.navbar-logo {
    height: 60px !important;
    width: auto !important;
    filter: brightness(0) invert(1); /* Makes the logo white for dark navbar */
    transition: transform 0.3s ease;
    max-height: none !important;
    min-height: 60px !important;
}

.navbar-brand img.navbar-logo {
    height: 60px !important;
    width: auto !important;
}

.navbar-brand .navbar-logo {
    height: 60px !important;
    width: auto !important;
}

/* Override any inline styles or conflicting CSS */
.navbar-brand img[src*="logo.png"] {
    height: 60px !important;
    width: auto !important;
}

.navbar-brand img {
    height: 60px !important;
    width: auto !important;
}

/* Force logo size with highest specificity */
.navbar-brand img.navbar-logo,
.navbar-brand .navbar-logo,
.navbar-brand img[src*="logo.png"],
.navbar-brand img {
    height: 60px !important;
    width: auto !important;
    max-height: 60px !important;
    min-height: 60px !important;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Card shadows and hover effects */
.card {
    transition: all 0.3s ease;
}

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

/* Custom button styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Form styling */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Table styling */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

/* Progress bar styling */
.progress {
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
}

/* Alert styling */
.alert {
    border-radius: 8px;
    border: none;
}

/* Modal styling */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
}

/* Dropdown styling */
.dropdown-menu {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dropdown-item {
    border-radius: 6px;
    margin: 2px 8px;
    padding: 8px 12px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* List group styling */
.list-group-item {
    border-radius: 6px;
    margin-bottom: 4px;
    border: 1px solid #e9ecef;
}

/* Pagination styling */
.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
    border: 1px solid #e9ecef;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Custom colors */
.text-primary {
    color: #0d6efd !important;
}

.bg-primary {
    background-color: #0d6efd !important;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0a58ca;
    border-color: #0a58ca;
}

/* Status badges */
.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-warning {
    background-color: #fd7e14 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
}

/* Subscription status colors */
.subscription-active {
    color: #198754;
}

.subscription-paused {
    color: #fd7e14;
}

.subscription-cancelled {
    color: #dc3545;
}

.subscription-expired {
    color: #6c757d;
}

/* Dashboard stats cards */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stats-card p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-card h3 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .navbar-logo {
        height: 50px !important;
    }
    
    .navbar-brand img.navbar-logo {
        height: 50px !important;
    }
    
    .navbar-brand .navbar-logo {
        height: 50px !important;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* ===== LANDING PAGE STYLES ===== */

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --bs-primary: #0d6efd;
    --bs-primary-rgb: 13, 110, 253;
}

.min-vh-80 {
    min-height: 80vh;
}

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.mb-6 {
    margin-bottom: 5rem;
}

.max-w-600 {
    max-width: 600px;
}

.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.05);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.03);
}

.hero-image-container {
    position: relative;
    z-index: 2;
}

.hero-image {
    max-height: 350px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.service-card {
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
}

.shadow-sm-hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
}

.shadow-sm-hover:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.08);
    border-radius: 20px;
}

.service-icon i {
    font-size: 2.5rem !important;
}

.feature-item {
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.08);
    border-radius: 20px;
}

.feature-icon i {
    font-size: 2.5rem !important;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.bg-light-subtle {
    background-color: #f8f9fa !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

/* Landing page responsive styles */
@media (max-width: 992px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-image {
        max-height: 280px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .hero-section::before,
    .hero-section::after {
        display: none;
    }
    
    .service-icon, .feature-icon {
        width: 80px;
        height: 80px;
    }
    
    .service-icon i, .feature-icon i {
        font-size: 2rem !important;
    }
} 

/* ===== DASHBOARD MOBILE RESPONSIVENESS ===== */

/* Mobile-first responsive design */
@media (max-width: 768px) {
    /* Navbar mobile optimizations */
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-logo {
        height: 35px !important;
    }
    
    .navbar-brand img.navbar-logo {
        height: 35px !important;
    }
    
    .navbar-brand .navbar-logo {
        height: 35px !important;
    }
    
    .navbar-brand img[src*="logo.png"] {
        height: 35px !important;
    }
    
    .navbar-brand img {
        height: 35px !important;
    }
    
    /* Force logo size with highest specificity */
    .navbar-brand img.navbar-logo,
    .navbar-brand .navbar-logo,
    .navbar-brand img[src*="logo.png"],
    .navbar-brand img {
        height: 35px !important;
        width: auto !important;
        max-height: 35px !important;
        min-height: 35px !important;
    }
    
    /* Navbar collapse improvements */
    .navbar-collapse {
        background-color: rgba(13, 110, 253, 0.95);
        border-radius: 8px;
        margin-top: 10px;
        padding: 15px;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 15px;
        border-radius: 6px;
        margin: 2px 0;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Main content mobile adjustments */
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    main.container-fluid {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    /* Dashboard cards mobile optimization */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Stats cards mobile layout */
    .col-xl-3.col-md-6 {
        margin-bottom: 1rem;
    }
    
    .stats-card h3 {
        font-size: 1.8rem;
    }
    
    /* Button groups mobile optimization */
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        border-radius: 6px !important;
        margin-bottom: 0.5rem;
        width: 100%;
        justify-content: center;
    }
    
    .btn-group .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Table responsive improvements */
    .table-responsive {
        border-radius: 8px;
        overflow: hidden;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Form mobile optimization */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    /* Modal mobile optimization */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Dropdown mobile optimization */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: 0;
        border: none;
        background-color: transparent;
        box-shadow: none;
    }
    
    .dropdown-item {
        color: white;
        padding: 12px 15px;
        border-radius: 6px;
        margin: 2px 0;
    }
    
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    /* Page header mobile optimization */
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .d-flex.justify-content-between.align-items-center h1 {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    /* Dashboard overview cards mobile layout */
    .col-lg-8,
    .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Subscription breakdown mobile */
    .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Upcoming payments table mobile */
    .table th:nth-child(3),
    .table th:nth-child(4) {
        display: none;
    }
    
    .table td:nth-child(3),
    .table td:nth-child(4) {
        display: none;
    }
    
    /* Mobile-specific utility classes */
    .d-mobile-none {
        display: none !important;
    }
    
    .d-mobile-block {
        display: block !important;
    }
    
    .text-mobile-center {
        text-align: center !important;
    }
    
    .mb-mobile-3 {
        margin-bottom: 1rem !important;
    }
}

/* Extra small devices (phones, 576px and down) */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .navbar-logo {
        height: 30px !important;
    }
    
    .navbar-brand img.navbar-logo,
    .navbar-brand .navbar-logo,
    .navbar-brand img[src*="logo.png"],
    .navbar-brand img {
        height: 30px !important;
        width: auto !important;
        max-height: 30px !important;
        min-height: 30px !important;
    }
    
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    .h3 {
        font-size: 1.25rem;
    }
    
    .fs-1 {
        font-size: 2rem !important;
    }
    
    .fs-3 {
        font-size: 1.5rem !important;
    }
    
    .fs-4 {
        font-size: 1.25rem !important;
    }
}

/* Landscape orientation mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .navbar-collapse {
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* High DPI mobile devices */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .dropdown-item {
        min-height: 44px; /* Apple's recommended touch target size */
    }
    
    .table th,
    .table td {
        min-height: 44px;
    }
    
    .form-control,
    .form-select {
        min-height: 44px;
    }
} 