/* ===== CLEAN RESPONSIVE CLIENT AREA STYLES ===== */
/* Simplified and conflict-free version */

/* Base responsive improvements */
* {
    box-sizing: border-box;
}

/* Container improvements */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Responsive typography */
html {
    font-size: 16px;
}

@media (max-width: 767px) {
    html {
        font-size: 14px;
    }
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    .table {
        font-size: 0.875rem;
    }
    
    .table td, .table th {
        padding: 0.5rem 0.25rem;
    }
}

/* Responsive forms */
.form-group {
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
        border-radius: 0.375rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: 0.375rem;
    }
}

/* Responsive cards */
.card {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@media (max-width: 767px) {
    .card {
        margin-bottom: 0.75rem;
        border-radius: 0.375rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
}

/* Responsive modals */
@media (max-width: 767px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
    }
}

/* Responsive navbar */
@media (max-width: 767px) {
    .navbar-brand {
        font-size: 1.125rem;
        padding: 0.5rem 0.75rem;
    }
    
    .navbar-nav > li > a {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Responsive content */
@media (max-width: 767px) {
    .content {
        padding: 0.75rem;
    }
    
    .page-header {
        margin-bottom: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Responsive button groups */
@media (max-width: 767px) {
    .btn-group {
        display: flex;
        flex-direction: column;
    }
    
    .btn-group > .btn {
        border-radius: 0.375rem !important;
        margin-bottom: 0.25rem;
    }
    
    .btn-group > .btn:first-child {
        border-top-left-radius: 0.375rem !important;
        border-top-right-radius: 0.375rem !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }
    
    .btn-group > .btn:last-child {
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
        border-bottom-left-radius: 0.375rem !important;
        border-bottom-right-radius: 0.375rem !important;
        margin-bottom: 0;
    }
}

/* Responsive alerts */
@media (max-width: 767px) {
    .alert {
        padding: 0.75rem 1rem;
        margin-bottom: 0.75rem;
        border-radius: 0.375rem;
    }
}

/* Responsive pagination */
@media (max-width: 767px) {
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination > li > a,
    .pagination > li > span {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Responsive breadcrumbs */
@media (max-width: 767px) {
    .breadcrumb {
        padding: 0.5rem 0;
        margin-bottom: 0.75rem;
        font-size: 0.875rem;
    }
}

/* Responsive tabs */
@media (max-width: 767px) {
    .nav-tabs {
        border-bottom: 1px solid #dee2e6;
    }
    
    .nav-tabs > li {
        margin-bottom: -1px;
    }
    
    .nav-tabs > li > a {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Responsive panels */
@media (max-width: 767px) {
    .panel {
        margin-bottom: 0.75rem;
        border-radius: 0.375rem;
    }
    
    .panel-heading {
        padding: 0.75rem 1rem;
    }
    
    .panel-body {
        padding: 1rem;
    }
}

/* Responsive list groups */
@media (max-width: 767px) {
    .list-group-item {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Responsive wells */
@media (max-width: 767px) {
    .well {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        border-radius: 0.375rem;
    }
}

/* Responsive progress bars */
@media (max-width: 767px) {
    .progress {
        height: 0.75rem;
        margin-bottom: 0.75rem;
        border-radius: 0.375rem;
    }
}

/* Responsive badges */
@media (max-width: 767px) {
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Responsive tooltips */
@media (max-width: 767px) {
    .tooltip {
        font-size: 0.75rem;
    }
}

/* Responsive popovers */
@media (max-width: 767px) {
    .popover {
        max-width: 90%;
        font-size: 0.875rem;
    }
}

/* Responsive grid */
@media (max-width: 767px) {
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1,
    .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2,
    .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3,
    .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4,
    .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5,
    .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6,
    .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7,
    .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8,
    .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9,
    .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10,
    .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11,
    .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Responsive utilities */
@media (max-width: 767px) {
    .hidden-xs {
        display: none !important;
    }
    
    .visible-xs {
        display: block !important;
    }
    
    .text-xs-left {
        text-align: left !important;
    }
    
    .text-xs-center {
        text-align: center !important;
    }
    
    .text-xs-right {
        text-align: right !important;
    }
}

/* Touch-friendly elements */
@media (max-width: 767px) {
    a, button, input, select, textarea {
        min-height: 44px;
    }
    
    .btn + .btn {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .form-group + .form-group {
        margin-top: 1rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .sidebar,
    .footer {
        display: none !important;
    }
    
    .content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn {
        border-width: 2px;
    }
    
    .form-control {
        border-width: 2px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .navbar-default {
        background-color: #2d3748;
        border-color: #4a5568;
    }
    
    .navbar-default .navbar-nav > li > a {
        color: #e2e8f0;
    }
    
    .navbar-default .navbar-nav > li > a:hover {
        color: #f7fafc;
    }
    
    .dropdown-menu {
        background-color: #2d3748;
        border-color: #4a5568;
    }
    
    .dropdown-menu > li > a {
        color: #e2e8f0;
    }
    
    .dropdown-menu > li > a:hover {
        background-color: #4a5568;
        color: #f7fafc;
    }
} 

 