/*
Theme Name: MBA Paglaum
Theme URI: https://example.com/mba-paglaum
Author: MBA Paglaum
Author URI: https://example.com
Description: MBA Paglaum Insurance Management System - A complete solution for tracking clients, policies, and weekly premium collections. Features a modern dashboard interface with real-time statistics, client management, policy tracking, and comprehensive reporting.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mba-paglaum
Tags: insurance, business, admin, dashboard, crm, management, mba, paglaum

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #F8FAFC;
    color: #1F2937;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Container */
.site-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 50%, #8B5CF6 100%);
    color: white;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header h1 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #FFFFFF, #E0E7FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.main-navigation {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.main-navigation a {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
    border-radius: 2rem;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-navigation a:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #E5E7EB;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4F46E5 0%, #0EA5E9 100%);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.15);
    border-color: #C7D2FE;
}

.stat-icon {
    font-size: 3rem;
    line-height: 1;
    flex-shrink: 0;
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.375rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-content p {
    color: #6B7280;
    font-size: 0.9375rem;
    font-weight: 500;
}

.stat-content small {
    color: #9CA3AF;
    font-size: 0.8125rem;
    display: block;
    margin-top: 0.375rem;
}

/* Card Styles */
.card {
    background: white;
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.75rem;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #D1D5DB;
}

.card h2 {
    color: #1d2327;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #000199;
    font-size: 24px;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table th {
    background: #f6f7f7;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    color: #1d2327;
}

table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f1;
}

table tr:hover {
    background: #f6f7f7;
}

/* Badge Styles */
.badge {
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.summary-item {
    background: linear-gradient(135deg, #f0f6fc 0%, #e3f2fd 100%);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #000199;
}

.summary-item strong {
    display: block;
    color: #50575e;
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-item span {
    font-size: 28px;
    font-weight: bold;
    color: #000199;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 30px;
    color: #646970;
    margin-top: 40px;
    background: white;
    border-radius: 12px;
}

/* Pagination Styles */
.pagination {
    flex-wrap: wrap;
}

.pagination-btn:hover:not(.disabled),
.pagination-number:hover {
    opacity: 0.8;
    transform: translateY(-1px);
    transition: all 0.2s;
}

.pagination-btn.disabled {
    cursor: not-allowed;
}

/* Responsive Table */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.responsive-table thead th {
    background: #F9FAFB;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #E5E7EB;
    font-size: 0.875rem;
    color: #374151;
}

.responsive-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #F3F4F6;
    vertical-align: middle;
}

.responsive-table th,
.responsive-table td {
    word-wrap: normal;
    overflow: visible;
}

/* Table container */
div[style*="overflow-x: auto"] {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    /* Hide columns on mobile */
    .hide-mobile {
        display: none !important;
    }
    
    .responsive-table thead th {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .responsive-table tbody td {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Pagination responsive */
    .pagination {
        font-size: 0.875rem;
    }
    
    .pagination span:last-child {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .site-header h1 {
        font-size: 24px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    /* Mobile padding adjustments */
    .site-container,
    div[style*="padding: 2rem"] {
        padding: 1rem !important;
    }
    
    /* Responsive tables */
    table {
        font-size: 0.875rem;
    }
    
    table th,
    table td {
        padding: 0.5rem !important;
    }
    
    /* Responsive forms */
    .insurance-form {
        padding: 1rem !important;
    }
    
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Responsive cards */
    .card {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .card h2 {
        font-size: 1.25rem !important;
    }
    
    /* Ensure content doesn't overflow */
    * {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Hide columns on tablet */
    .hide-tablet {
        display: none !important;
    }
    
    .site-container,
    div[style*="padding: 2rem"] {
        padding: 1.5rem !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .responsive-table th,
    .responsive-table td {
        font-size: 0.9rem;
    }
}
