/* Reset Browser Defaults */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* Global Professional Styles */
:root {
    --navbar-height: 72px;
    --navbar-height-mobile: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--navbar-height);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Frame Content */
.frame-content {
    flex: 1 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 0;
    margin: 0;
}

.frame-content.with-hero {
    padding-top: 0;
}

.frame-content.with-breadcrumb {
    padding-top: 1rem;
}

/* Container Padding */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    body {
        padding-top: var(--navbar-height-mobile);
    }

    .frame-content {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .frame-content {
        padding: 0;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #6c757d;
}

/* Links */
a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0d47a1;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-sm { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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

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

/* Loading State */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

/* Focus States */
*:focus {
    outline: 2px solid #1a237e;
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: #1a237e;
    color: white;
}

/* Print Styles */
@media print {
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .no-print {
        display: none !important;
    }
}