html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Custom styles for Mobishare */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #fd7e14;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --purple-color: #6f42c1;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100%;
}

/* Main container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

/* Navbar container styling */
.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
}

.navbar-expand-lg .navbar-container {
    flex-wrap: nowrap;
}

/* Navbar styles */
.navbar-brand {
    font-size: 1.5rem;
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545 !important;
}

.dropdown {
    position: relative;
}

.custom-dropdown-menu {
    min-width: 200px;
    max-width: 250px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 0.25rem;
    z-index: 1050;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-nav .nav-link {
    border-radius: 0.375rem;
    margin: 0 0.125rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

/* Card styles */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 1rem;
}

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

.card-header {
    font-weight: 600;
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

.btn-primary:disabled {
    background: #6c757d;
    opacity: 0.6;
}

/* Form styles */
.form-control-lg {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

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

.input-group .btn-outline-secondary {
    border: 2px solid #e9ecef;
    border-left: none;
    border-radius: 0 0.5rem 0.5rem 0;
}

.input-group .form-control-lg:focus + .btn-outline-secondary {
    border-color: #0d6efd;
}

/* Alert styles */
.alert {
    border-radius: 0.5rem;
    border: none;
}

/* Badge styles */
.badge {
    font-size: 0.75rem;
}

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

.text-success {
    color: #198754 !important;
}

.text-warning {
    color: #fd7e14 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

.text-purple {
    color: #6f42c1 !important;
}

/* Spinner styles */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Table styles */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
    border-top: none;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        margin: 0.125rem 0;
    }
}

@media (max-width: 768px) {
    .card-body {
        padding: 2rem !important;
    }
    
    .custom-dropdown-menu {
        right: 0 !important;
        left: auto !important;
        min-width: 180px;
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .main-container {
        padding: 0 0.5rem;
    }
    
    .custom-dropdown-menu {
        right: 0.5rem !important;
        left: auto !important;
        min-width: 160px;
        max-width: 180px;
        margin-right: -0.5rem;
    }
}

/* Login/Register page specific styles */
.min-vh-100 {
    min-height: 100vh;
}

.has-navbar {
    min-height: calc(100vh - 56px); /* Adjust for navbar height */
    padding-top: 0;
}

/* Remove padding from auth pages */
main:not(.has-navbar) .main-container {
    max-width: none;
    padding: 0;
}