/* ===== CONSOLIDATED GENERAL STYLES ===== */
/* This file consolidates general theme styles and removes redundant declarations */

/* ===== RESET AND BASE STYLES ===== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ===== TYPOGRAPHY ===== */

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
    font-weight: 600;
    line-height: 1.2;
    color: #2c3e50;
}

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: 0 0 1rem 0;
}

a {
    color: #1E6292;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #ff6b35;
    text-decoration: underline;
}

/* ===== LAYOUT CONTAINERS ===== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

/* ===== MAIN CONTENT AREA ===== */

.pkp_structure_main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    background: #ffffff;
}

.pkp_structure_content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* ===== SIDEBAR STYLES ===== */

.pkp_structure_sidebar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.pkp_structure_sidebar h2,
.pkp_structure_sidebar h3 {
    color: #1E6292;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* ===== BUTTONS ===== */

.btn,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #1E6292;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: #ff6b35;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn:focus,
button:focus,
input[type="submit"]:focus,
input[type="button"]:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

.btn-secondary {
    background: #6c757d;
}

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

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

.btn-outline:hover {
    background: #1E6292;
    color: white;
}

/* ===== FORMS ===== */

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #1E6292;
    box-shadow: 0 0 0 3px rgba(30, 98, 146, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== TABLES ===== */

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

tr:hover {
    background: rgba(30, 98, 146, 0.05);
}

/* ===== CARDS ===== */

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: #f8f9fa;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* ===== ALERTS ===== */

.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.alert-error,
.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

/* ===== BREADCRUMBS ===== */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    list-style: none;
    background: transparent;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li + li::before {
    content: "/";
    margin: 0 0.5rem;
    color: #6c757d;
}

.breadcrumb a {
    color: #1E6292;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ff6b35;
    text-decoration: underline;
}

/* ===== PAGINATION ===== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #1E6292;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #1E6292;
    color: white;
    border-color: #1E6292;
}

.pagination .current {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

/* ===== FOOTER ===== */

.pkp_structure_footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.pkp_structure_footer a {
    color: #bdc3c7;
}

.pkp_structure_footer a:hover {
    color: #ff6b35;
}

/* ===== UTILITY CLASSES ===== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

/* ===== RESPONSIVE UTILITIES ===== */

@media (max-width: 767px) {
    .d-md-none { display: none; }
    .d-md-block { display: block; }
    
    .container {
        padding: 0 10px;
    }
    
    .pkp_structure_content {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .pkp_structure_sidebar {
        padding: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .d-lg-none { display: none; }
    .d-lg-block { display: block; }
    
    .container {
        padding: 0 20px;
    }
}

@media (min-width: 1024px) {
    .d-xl-none { display: none; }
    .d-xl-block { display: block; }
    
    .row {
        margin: 0 -20px;
    }
    
    .col {
        padding: 0 20px;
    }
}

/* ===== PRINT STYLES ===== */

@media print {
    .pkp_structure_head,
    .pkp_structure_footer,
    .pkp_structure_sidebar,
    .btn,
    button {
        display: none;
    }
    
    .pkp_structure_main {
        margin: 0;
        padding: 0;
    }
    
    .pkp_structure_content {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    table {
        page-break-inside: avoid;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* Focus indicators */
*:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* Skip links */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card,
    .pkp_structure_content {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        /* background-color: #1a1a1a; */
        background-color: #FFFFFF;
        color: #e0e0e0;
    }
    
    .pkp_structure_content,
    .card {
        /* background: #2d2d2d; */
        background: #FFFFFF;
        color: #e0e0e0;
    }
    
    .pkp_structure_sidebar {
        /* background: #333; */
        background: #FFFFFF;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="url"],
    textarea,
    select {
        /* background: #2d2d2d; */
        background: #FFFFFF;
        color: #e0e0e0;
        border-color: #555;
    }
    
    table {
        /* background: #2d2d2d; */
        background: #FFFFFF;
    }
    
    th {
        background: #333;
        color: #e0e0e0;
    }
    
    tr:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}
