/* ========================================
   MODERN DESIGN - GLOBAL STYLES
   ======================================== */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --success-color: #11998e;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

/* Body */
body {
    background: var(--bg-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
}

/* Main Container */
main > .container {
    padding: 100px 15px 40px;
    max-width: 1400px;
}

/* Navbar Styles */
.navbar-modern {
    background: var(--primary-gradient) !important;
    border: none;
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 1.5rem;
}

.navbar-modern .navbar-brand {
    font-weight: 700;
    font-size: 1.35rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-modern .navbar-brand::before {
    content: '📱';
    font-size: 1.5rem;
}

.navbar-modern .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    margin: 0 0.25rem;
    transition: all 0.2s ease;
}

.navbar-modern .nav-link:hover,
.navbar-modern .nav-link.active {
    color: white !important;
    background: rgba(255,255,255,0.15);
}

.navbar-modern .nav-link i {
    margin-right: 0.5rem;
}

.navbar-modern .btn-logout {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.2s;
}

.navbar-modern .btn-logout:hover {
    background: rgba(255,255,255,0.25);
}

.navbar-modern .btn-outline-light {
    border-radius: 50px;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 1.5rem 0;
    height: auto;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

/* Breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

/* Modern Cards */
.card-modern {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.card-modern .card-header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-modern .card-body {
    padding: 1.5rem;
}

/* Modern Table Styles */
.table-modern {
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background: var(--bg-light);
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.table-modern tbody tr {
    transition: all 0.2s;
}

.table-modern tbody tr:hover {
    background: var(--bg-light);
}

.table-modern tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

/* Grid View Overrides */
.grid-view {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.grid-view table {
    margin-bottom: 0;
}

.grid-view th {
    background: var(--bg-light) !important;
    border: none !important;
    padding: 1rem 1.25rem !important;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.grid-view td {
    padding: 1rem 1.25rem !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-top: none !important;
    vertical-align: middle;
}

.grid-view tbody tr:hover {
    background: var(--bg-light);
}

.grid-view tbody tr:last-child td {
    border-bottom: none !important;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.grid-view .filters input:focus,
.grid-view .filters select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Pagination */
.pagination {
    margin: 1.5rem;
    justify-content: center;
}

.pagination .page-link {
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    margin: 0 0.125rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.pagination .page-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    color: white;
}

/* Summary */
.grid-view .summary {
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
}

/* Modern Buttons */
.btn-modern {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
    transition: all 0.2s;
}

.btn-modern:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary-gradient {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary-gradient:hover {
    color: white;
}

.btn-success-gradient {
    background: var(--success-gradient);
    color: white;
}

.btn-success-gradient:hover {
    color: white;
}

/* Status Badges */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.status-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.badge-modern {
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-success-soft {
    background: #DCFCE7;
    color: #16A34A;
    white-space: nowrap;
}

.badge-warning-soft {
    background: #FEF3C7;
    color: #D97706;
    white-space: nowrap;
}

.badge-secondary-soft {
    background: #e2e8f0;
    color: #475569;
}

.badge-info-soft {
    background: #DBEAFE;
    color: #2563EB;
    white-space: nowrap;
}

.badge-danger-soft {
    background: #FEE2E2;
    color: #DC2626;
    white-space: nowrap;
}

/* Action Buttons */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1rem;
}

.action-btn:hover {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.05);
}

.action-btn.danger:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Page Header */
.page-header-modern {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header-modern h1 {
    font-weight: 700;
    margin: 0;
    font-size: 1.75rem;
}

.page-header-modern .subtitle {
    opacity: 0.9;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* Form Controls */
.form-control-modern {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

.form-control-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Alerts */
.alert-modern {
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
}

.alert-success-modern {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.alert-danger-modern {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

/* Sorting Icons */
a.asc:after, a.desc:after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin-left: 6px;
    vertical-align: middle;
}

a.asc:after {
    border-bottom: solid 6px var(--primary-color);
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 6px var(--primary-color);
    border-bottom-width: 0;
}

/* Utilities */
.not-set {
    color: var(--text-muted);
    font-style: italic;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.error-summary {
    color: #991b1b;
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    margin: 0 0 1.5rem 0;
}

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

/* Hero Section */
.hero-section {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: 4rem 3rem;
    margin-bottom: 3rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-section .hero-content {
    position: relative;
    z-index: 1;
}

.hero-section .hero-icon {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-section .btn-hero {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    transition: all 0.3s;
}

.hero-section .btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Feature Cards */
.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    height: 100%;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card .feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.75rem;
}

.feature-card h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Stats Section */
.stats-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item .stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: var(--dark-gradient);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-section .btn-cta {
    background: white;
    color: #1e3c72;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    transition: all 0.3s;
}

.cta-section .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    main > .container {
        padding-top: 80px;
    }
    
    .hero-section {
        padding: 2.5rem 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .page-header-modern {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .navbar-modern .nav-link {
        padding: 0.75rem 1rem !important;
    }
}
{
    text-decoration: none;
}