/* ========================================
   Modern DevPI Theme - Primary Color: #005aaa
   ======================================== */

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    line-height: 1.6 !important;
    color: #333 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Header - Modern & Zentriert */
.header {
    background: linear-gradient(135deg, #005aaa 0%, #0072d6 100%) !important;
    border-bottom: none !important;
    padding: 30px 20px !important;
    box-shadow: 0 4px 15px rgba(0, 90, 170, 0.2) !important;
    text-align: center !important;
}

.header form#search {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
}

.header h1 {
    font-size: 36px !important;
    font-weight: 700 !important;
    margin: 0 0 20px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.header h1 a {
    color: #ffffff !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.header h1 a:hover {
    opacity: 0.9 !important;
}

/* Navigation */
#navigation {
    max-width: 1200px !important;
    margin: 20px auto 0 auto !important;
    display: flex !important;
    gap: 15px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

#navigation span, #navigation a {
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    font-size: 16px !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

#navigation a:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

#navigation .statusbadge {
    background: rgba(255, 200, 0, 0.9) !important;
    color: #000 !important;
    font-weight: 700 !important;
}

#navigation .statusbadge:hover {
    background: rgba(255, 200, 0, 1) !important;
}

/* Search Box - Zentriert & Modern */
#search input[type="text"] {
    width: 600px !important;
    max-width: 100% !important;
    padding: 15px 25px !important;
    font-size: 18px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    background: #ffffff !important;
    text-align: center !important;
}

#search input[type="text"]:focus {
    border-color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2) !important;
}

#search input[type="submit"] {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #005aaa !important;
    border: none !important;
    padding: 15px 50px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

#search input[type="submit"]:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3) !important;
    background: #ffffff !important;
}

#search .help {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px !important;
    margin-top: 10px !important;
}

#search .help a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: underline !important;
}

#search .help a:hover {
    color: #ffffff !important;
}

.query_doc {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 20px !important;
    border-radius: 12px !important;
    margin-top: 20px !important;
    text-align: left !important;
    color: #333 !important;
    max-width: 800px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Links */
a {
    color: #005aaa !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

a:hover {
    color: #0072d6 !important;
    text-decoration: underline !important;
}

/* Buttons - Modern */
.btn, button, input[type="submit"] {
    background: linear-gradient(135deg, #005aaa 0%, #0072d6 100%) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 12px 30px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 90, 170, 0.2) !important;
}

.btn:hover, button:hover, input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(0, 90, 170, 0.3) !important;
}

/* Main Content - Zentriert */
#content {
    max-width: 1200px !important;
    margin: 40px auto !important;
    padding: 40px 20px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 30px rgba(0, 90, 170, 0.1) !important;
    border-radius: 16px !important;
}

/* User Index List - Moderne Cards */
.user_index_list {
    text-align: center !important;
}

.user_index_list dl {
    margin: 0 !important;
    padding: 0 !important;
}

.user_index_list dt {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 30px 0 20px 0 !important;
    color: #005aaa !important;
}

.user_index_list dt a {
    color: #005aaa !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.user_index_list dt a:hover {
    color: #0072d6 !important;
}

.user_index_list dd {
    margin: 0 !important;
    padding: 0 !important;
}

.user_index_list ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
}

.user_index_list li {
    width: 100% !important;
    max-width: 600px !important;
}

.user_index_list li a {
    display: block !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px !important;
    padding: 25px 30px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #005aaa !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.user_index_list li a:hover {
    background: linear-gradient(135deg, #005aaa 0%, #0072d6 100%) !important;
    color: #ffffff !important;
    border-color: #005aaa !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0, 90, 170, 0.25) !important;
}

.user_index_list li a span {
    display: inline-block !important;
    background: rgba(0, 90, 170, 0.1) !important;
    padding: 5px 15px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-left: 10px !important;
    color: #005aaa !important;
}

.user_index_list li a:hover span {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

/* Index Navigation - Zentriert */
.indexnav {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 30px 0 !important;
    flex-wrap: wrap !important;
}

.indexnav a {
    color: #005aaa !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    background: #f8f9fa !important;
    border: 2px solid #e0e0e0 !important;
}

.indexnav a:hover {
    background: #005aaa !important;
    color: #ffffff !important;
    border-color: #005aaa !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
}

.indexnav a.current {
    background: #005aaa !important;
    color: #ffffff !important;
    border-color: #005aaa !important;
}

/* Package List - Zentriert & Card Style */
.package-list, .packagelist {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    gap: 20px !important;
    margin: 30px 0 !important;
}

.package-entry, .package {
    background: #ffffff !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.package-entry:hover, .package:hover {
    border-color: #005aaa !important;
    box-shadow: 0 8px 25px rgba(0, 90, 170, 0.15) !important;
    transform: translateY(-4px) !important;
}

.package-entry h3, .package h3 {
    font-size: 20px !important;
    margin: 0 0 10px 0 !important;
    color: #005aaa !important;
}

.package-entry h3 a, .package h3 a {
    color: #005aaa !important;
    font-weight: 600 !important;
}

/* Badges - Modern */
.badge {
    background: linear-gradient(135deg, #005aaa 0%, #0072d6 100%) !important;
    color: #ffffff !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    margin: 5px !important;
}

/* Tables - Besser sichtbar */
table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

th {
    background: #005aaa !important;
    color: #ffffff !important;
    padding: 15px !important;
    text-align: left !important;
    font-weight: 600 !important;
}

td {
    padding: 15px !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

tr:hover {
    background: #f8f9fa !important;
}

/* Footer - Modern & Zentriert */
footer {
    max-width: 1200px !important;
    margin: 40px auto 20px auto !important;
    padding: 30px 20px !important;
    text-align: center !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 90, 170, 0.08) !important;
}

footer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}

footer li {
    color: #666 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Custom Logo Styling */
#header .logo {
    max-height: 45px !important;
    width: auto !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #005aaa;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #004488;
}

/* Responsive */
@media (max-width: 768px) {
    #header > div, #header .container {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .package-list, .packagelist {
        grid-template-columns: 1fr !important;
    }

    #search, .search-form {
        flex-direction: column !important;
    }
}
