/* Waste Pickers - Modern CSS Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Container Styles */
.login-container, .register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box, .register-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.6s ease-out;
}

.register-box {
    max-width: 600px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styles */
.login-header, .register-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1, .register-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-header p, .register-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Form Styles */
.login-form, .register-form {
    margin-bottom: 20px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-help {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
    padding: 15px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

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

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Footer Styles */
.login-footer, .register-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.login-footer a, .register-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover, .register-footer a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard-container {
    min-height: 100vh;
    background: #f8f9fa;
}

.dashboard-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-suspended {
    background: #f5c6cb;
    color: #721c24;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-super {
    background: #d1ecf1;
    color: #0c5460;
}

.status-admin {
    background: #e2e3e5;
    color: #383d41;
}

/* Admin Logo Styles */
.admin-logo {
    height: 120px;
    width: auto;
    margin-right: 15px;
    vertical-align: middle;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.logo-container .logo {
    max-width: 120px;
    height: auto;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-out;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5em;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.dashboard-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-section h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.welcome-section p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

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

.dashboard-card {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.card-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
}

.card-content h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.card-content p {
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Admin Dashboard Styles */
.admin-dashboard-container {
    min-height: 100vh;
    background: #f8f9fa;
}

.admin-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.admin-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.admin-role {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
}

.admin-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

.admin-sidebar {
    width: 250px;
    background: #2c3e50;
    padding: 20px 0;
}

.admin-nav {
    list-style: none;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item a:hover,
.nav-item.active a {
    background: #34495e;
    color: white;
}

.nav-item.active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #667eea;
}

.badge {
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}

.admin-main {
    flex: 1;
    padding: 30px;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 5px;
}

.page-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

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

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #667eea;
}

.stat-card.pending {
    border-left-color: #ffc107;
}

.stat-card.approved {
    border-left-color: #28a745;
}

.stat-card.rejected {
    border-left-color: #dc3545;
}

.stat-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
}

.stat-card.pending .stat-icon {
    color: #ffc107;
}

.stat-card.approved .stat-icon {
    color: #28a745;
}

.stat-card.rejected .stat-icon {
    color: #dc3545;
}

.stat-content h3 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-content p {
    color: #7f8c8d;
    font-weight: 600;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e1e8ed;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #e1e8ed;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.no-data {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 40px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* Filters */
.filters-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filters-form {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filter-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.filter-group input,
.filter-group select {
    padding: 10px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.pagination-info {
    color: #7f8c8d;
    font-weight: 500;
}

/* Mobile-First Responsive Design */
@media (max-width: 1200px) {
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        order: 2;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 10px 0;
        background: #2c3e50;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .admin-nav {
        display: flex;
        overflow-x: auto;
        padding: 0 10px;
    }
    
    .nav-item {
        margin: 0 5px;
        flex-shrink: 0;
    }
    
    .nav-item a {
        padding: 10px 15px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .admin-main {
        order: 1;
        padding: 20px 10px;
        margin-bottom: 80px;
    }
}

@media (max-width: 768px) {
    .login-box, .register-box {
        padding: 25px 15px;
        margin: 10px;
        border-radius: 10px;
    }
    
    .login-header h1, .register-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dashboard-card {
        padding: 20px 15px;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .filters-form {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .data-table {
        font-size: 13px;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
        min-width: 100px;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-content h3 {
        font-size: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .user-info {
        align-items: center;
    }
    
    .admin-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .admin-info {
        align-items: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .login-container, .register-container {
        padding: 10px;
    }
    
    .login-box, .register-box {
        padding: 20px 15px;
        margin: 5px;
    }
    
    .login-header h1, .register-header h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .dashboard-card {
        padding: 15px;
    }
    
    .card-content h3 {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-content h3 {
        font-size: 1.8rem;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 6px 4px;
        min-width: 80px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination-info {
        order: -1;
    }
    
    .admin-sidebar {
        padding: 5px 0;
    }
    
    .nav-item a {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .admin-main {
        padding: 15px 5px;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
}

/* Sales Page Specific Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-bottom: 30px;
    border-radius: 0 0 15px 15px;
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.header .logo h1 {
    color: #2c3e50;
    font-size: 2rem;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.user-info span {
    color: #495057;
    font-weight: 600;
}

.main-content {
    padding: 0 0 40px 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-title-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    text-decoration: none;
    color: white;
}

.page-header h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    border-bottom: none;
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 25px;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.filter-tab:hover {
    background: #e9ecef;
    text-decoration: none;
    color: #495057;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 700;
}

.filter-tab.active .count {
    background: rgba(255, 255, 255, 0.3);
}

/* Table Styles for Sales */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    margin-top: 10px;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    font-size: 14px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    white-space: nowrap;
    border-bottom: 2px solid #5a6fd8;
}

.table td {
    padding: 18px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    border-left: 1px solid #f1f3f4;
}

.table td:first-child {
    border-left: none;
}

.table tbody tr {
    transition: all 0.3s ease;
    background: white;
}

.table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.table tbody tr:hover {
    background: #e9ecef !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1;
    position: relative;
}

/* Data Display Improvements */
.date-info, .waste-info, .vendor-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.date-info strong, .waste-info strong, .vendor-info strong {
    color: #2c3e50;
    font-weight: 700;
    font-size: 0.95rem;
}

.date-info small, .waste-info small, .vendor-info small {
    color: #6c757d;
    font-size: 0.8rem;
}

.weight-info, .amount-info {
    font-weight: 700;
    color: #28a745;
    font-size: 1rem;
}

.amount-info {
    font-size: 1.1rem;
}

/* Badge Styles */
.badge {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: #212529;
}

.badge-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.badge-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Button text responsive behavior */
.btn-text {
    display: inline;
}

@media (max-width: 480px) {
    .btn-text {
        display: none;
    }
    
    .btn i {
        margin-right: 0 !important;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    margin: 20px 0;
}

.empty-state i {
    font-size: 5rem;
    color: #6c757d;
    margin-bottom: 25px;
    opacity: 0.7;
}

.empty-state h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.empty-state p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Modal Improvements */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.close {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Sale Details Modal Styles */
.sale-details {
    max-width: 100%;
    min-height: 100%;
}

.file-status-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.file-status-info p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.missing-file-notice {
    background: #fff3cd !important;
    border: 1px solid #ffeaa7 !important;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.details-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.detail-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #667eea;
}

.detail-section h5 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.detail-item label {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.detail-item span {
    color: #2c3e50;
    font-weight: 500;
}

.amount-highlight {
    color: #28a745 !important;
    font-weight: 700 !important;
    font-size: 1.1rem;
}

.notes-content {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    color: #495057;
    line-height: 1.6;
}

.rejection-reason {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    font-weight: 500;
}

/* Proof of Sale Styles */
.proof-container {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px dashed #e9ecef;
}

.proof-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.proof-image:hover {
    transform: scale(1.02);
}

.proof-note {
    margin-top: 10px;
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
}

.no-proof {
    text-align: center;
    color: #6c757d;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Image Modal Styles */
.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
}

.full-size-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 8px;
}

/* Loading and Error States */
.loading-state, .error-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.loading-state i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-state {
    color: #dc3545;
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    .header .logo h1 {
        font-size: 1.6rem;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .page-title-section {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }
    
    .back-btn {
        align-self: flex-start;
        font-size: 0.9rem;
        padding: 8px 14px;
    }
    
    .page-header h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .card-body {
        padding: 20px 15px;
    }
    
    .filter-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-tab {
        justify-content: center;
        text-align: center;
        padding: 15px 20px;
        font-size: 0.95rem;
    }
    
    .table {
        font-size: 13px;
    }
    
    .table th,
    .table td {
        padding: 12px 8px;
        white-space: nowrap;
    }
    
    .date-info, .waste-info, .vendor-info {
        gap: 2px;
    }
    
    .date-info strong, .waste-info strong, .vendor-info strong {
        font-size: 0.9rem;
    }
    
    .date-info small, .waste-info small, .vendor-info small {
        font-size: 0.75rem;
    }
    
    .weight-info, .amount-info {
        font-size: 0.95rem;
    }
    
    .badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 6px;
    }
    
    .btn-info {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }
    
    .empty-state {
        padding: 40px 15px;
    }
    
    .empty-state i {
        font-size: 4rem;
        margin-bottom: 20px;
    }
    
    .empty-state h3 {
        font-size: 1.5rem;
    }
    
    .empty-state p {
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 20px;
        flex-shrink: 0;
    }
    
    .modal-header h3 {
        font-size: 1.4rem;
    }
    
    .modal-body {
        padding: 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Sale details mobile styles */
    .details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .detail-section {
        padding: 15px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-item label {
        font-size: 0.9rem;
    }
    
    .proof-image {
        max-height: 250px;
    }
    
    .details-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .details-header h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header .logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .header .logo h1 {
        font-size: 1.4rem;
    }
    
    .page-title-section {
        gap: 10px;
    }
    
    .back-btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 15px 10px;
    }
    
    .filter-tab {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 10px 6px;
    }
    
    .date-info strong, .waste-info strong, .vendor-info strong {
        font-size: 0.85rem;
    }
    
    .date-info small, .waste-info small, .vendor-info small {
        font-size: 0.7rem;
    }
    
    .weight-info, .amount-info {
        font-size: 0.9rem;
    }
    
    .badge {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    
    .empty-state {
        padding: 30px 10px;
    }
    
    .empty-state i {
        font-size: 3.5rem;
    }
    
    .empty-state h3 {
        font-size: 1.3rem;
    }
    
    .modal-content {
        width: 98%;
        margin: 2% auto;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 15px;
        flex-shrink: 0;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 15px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Sale details small mobile styles */
    .details-grid {
        gap: 15px;
    }
    
    .detail-section {
        padding: 12px;
    }
    
    .detail-section h5 {
        font-size: 1rem;
    }
    
    .proof-image {
        max-height: 200px;
    }
    
    .details-header h4 {
        font-size: 1.1rem;
    }
    
    .full-size-image {
        max-height: 50vh;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-item a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .action-buttons .btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        min-height: 44px;
    }
    
    .filter-tab {
        min-height: 44px;
    }
    
    .table tbody tr {
        min-height: 44px;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
    /* Improve table scrolling on mobile */
    .table-responsive {
        border: 1px solid #e9ecef;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Better spacing for mobile cards */
    .card {
        margin-bottom: 20px;
        border-radius: 12px;
    }
    
    /* Improve header layout on mobile */
    .header .logo img {
        height: 40px;
    }
    
    /* Better filter tab spacing */
    .filter-tab {
        min-height: 48px;
        font-size: 0.9rem;
    }
    
    /* Improve table readability */
    .table {
        border-radius: 8px;
        font-size: 13px;
    }
    
    .table th {
        font-size: 0.8rem;
        padding: 12px 8px;
    }
    
    .table td {
        padding: 12px 8px;
    }
    
    .table tbody tr:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Better action button sizing */
    .btn-info {
        min-height: 40px;
        font-size: 0.8rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    .header {
        padding: 12px 0;
    }
    
    .page-header h2 {
        font-size: 1.3rem;
    }
    
    .card-body {
        padding: 12px 8px;
    }
    
    .filter-tab {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .table {
        font-size: 11px;
        border-radius: 6px;
    }
    
    .table th,
    .table td {
        padding: 8px 4px;
    }
    
    .table tbody tr:hover {
        transform: none;
        box-shadow: none;
        background: #e9ecef !important;
    }
    
    .badge {
        padding: 4px 8px;
        font-size: 0.65rem;
    }
    
    .empty-state {
        padding: 25px 8px;
    }
    
    .empty-state i {
        font-size: 3rem;
    }
    
    .empty-state h3 {
        font-size: 1.1rem;
    }
    
    .empty-state p {
        font-size: 0.9rem;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .login-container, .register-container {
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .login-box, .register-box {
        max-width: 90%;
        margin: 0 auto;
    }
    
    .admin-sidebar {
        position: relative;
        order: 1;
    }
    
    .admin-main {
        order: 2;
        margin-bottom: 0;
    }
    
    /* Improve sales page in landscape */
    .page-header {
        margin-bottom: 15px;
    }
    
    .card-body {
        padding: 15px 12px;
    }
    
    .filter-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-tab {
        flex: 1;
        min-width: calc(50% - 4px);
        padding: 10px 12px;
    }
}
