@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

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

body {
    background-color: #F5F5F5; /* Helles Grau */
    color: #333333; /* Dunkles Grau für Schrift */
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

header {
    background-color: #212121; /* Dunkles Grau */
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    height: 50px;
}
.button-group {
    display: flex;
    gap: 10px; /* Abstand zwischen den Buttons */
    margin: 20px 0; /* Abstand oben und unten */
    flex-wrap: wrap; /* Buttons werden umgebrochen, wenn der Platz nicht reicht */
}

/* Sicherstellen, dass die Buttons bei kleineren Bildschirmen gestapelt werden */
@media (max-width: 600px) {
    .button-group {
        flex-direction: column; /* Buttons untereinander anordnen */
        align-items: stretch; /* Buttons über die gesamte Breite strecken */
    }

    .button-group .button {
        width: 100%; /* Buttons nehmen die volle Breite ein */
        text-align: center; /* Text zentrieren */
    }
}
.logout {
    background-color: #FF5722; /* Orange */
    color: white;
    padding: 8px px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.logout i {
    margin-right: 5px;
}

.logout:hover {
    background-color: #E64A19; /* Dunkleres Orange */
}

.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

h1 {
    color: #333333;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 2rem;
}

h2 {
    color: #333333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

h2 i {
    color: #FF5722;
    margin-right: 8px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card h3 {
    color: #FF5722; /* Orange für Subdomain */
    margin-bottom: 10px;
    font-size: 1.25rem;
    font-weight: 600;
}

.card p {
    margin: 5px 0;
    font-size: 0.95rem;
    color: #555555;
}

.card p i {
    color: #FF5722;
    margin-right: 5px;
}

.card-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.button {
    background-color: #FF5722;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button i {
    margin-right: 5px;
}

.button:hover {
    background-color: #E64A19;
}

.button.delete {
    background-color: #D32F2F; /* Rot für Löschen */
}

.button.delete:hover {
    background-color: #B71C1C;
}

form {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0 zealous, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    color: #333333;
    font-weight: 500;
    margin-bottom: 8px;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #CCCCCC;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #FAFAFA;
    transition: border-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

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

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #FF5722;
}

.error {
    color: #D32F2F;
    background-color: #FFEBEE;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Tab-Styling */
.tabs {
    display: flex;
    border-bottom: 1px solid #CCCCCC;
    margin-bottom: 20px;
}

.tab-button {
    background-color: #F5F5F5;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #555555;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tab-button:hover {
    background-color: #E0E0E0;
}

.tab-button.active {
    background-color: #FFFFFF;
    color: #FF5722;
    border-bottom: 2px solid #FF5722;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Styling für den Support-Link in expired.php */
.container a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.container a:hover {
    text-decoration: none;
}

/* Styling für verbleibende Tage im Dashboard */
.remaining-days {
    background-color: #D32F2F; /* Rot */
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.85rem;
    margin-left: 5px;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Styling für bald ablaufende Abos */
.soon-expiring {
    margin-bottom: 30px;
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.expiring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.expiring-card {
    display: flex;
    align-items: center;
    background-color: #FFF3E0; /* Leichtes Orange als Hintergrund */
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #FF5722; /* Oranger Akzent links */
}

.warning-icon {
    font-size: 1.5rem;
    color: #FF5722;
    margin-right: 10px;
}

.expiring-details h3 {
    color: #FF5722;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.expiring-details p {
    font-size: 0.9rem;
    color: #555555;
    margin: 3px 0;
}

.no-expiring {
    color: #555555;
    font-style: italic;
}

/* Styling für die Suchleiste */
.search-bar {
    margin: 20px 0;
    max-width: 500px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #FF5722;
    font-size: 1rem;
}

#search-input {
    padding: 10px 15px 10px 35px; /* Platz für das Icon */
    border: 1px solid #CCCCCC;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #FAFAFA;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#search-input:focus {
    border-color: #FF5722;
    box-shadow: 0 0 5px rgba(255, 87, 34, 0.3);
}

@media (max-width: 600px) {
    .card-grid, .expiring-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-button {
        border-bottom: 1px solid #CCCCCC;
    }

    .tab-button.active {
        border-bottom: 1px solid #CCCCCC;
    }
}
/* Header Navigation and Logout Button */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #212121; /* Keep existing dark gray */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px; /* Space between buttons */
}

nav ul li {
    display: inline-block;
}

.nav-button, .logout {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #FF5722; /* Orange, matching .button */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    transform: skewX(-10deg); /* Skew for 3D effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1); /* 3D shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.nav-button:hover, .logout:hover {
    background-color: #E64A19; /* Darker orange on hover */
    transform: skewX(-10deg) scale(1.05); /* Slight scale for 3D pop */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), 0 3px 6px rgba(0, 0, 0, 0.2);
}

.nav-button i, .logout i {
    margin-right: 5px; /* Matches existing .button and .logout */
    transform: skewX(10deg); /* Counter-skew icon to appear upright */
}

.nav-button span, .logout span {
    transform: skewX(10deg); /* Counter-skew text to appear upright */
}

/* Burger-Menü und Navigation */
.burger-menu {
    display: none; /* Versteckt auf Desktop */
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 12px; /* Abstand zwischen nav und logout */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px; /* Space between buttons */
}

nav ul li {
    display: inline-block;
}

.nav-button, .logout {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #FF5722; /* Orange, matching .button */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    transform: skewX(-10deg); /* Skew for 3D effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1); /* 3D shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.nav-button:hover, .logout:hover {
    background-color: #E64A19; /* Darker orange on hover */
    transform: skewX(-10deg) scale(1.05); /* Slight scale for 3D pop */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), 0 3px 6px rgba(0, 0, 0, 0.2);
}

.nav-button i, .logout i {
    margin-right: 5px; /* Matches existing .button and .logout */
    transform: skewX(10deg); /* Counter-skew icon to appear upright */
}

.nav-button span, .logout span {
    transform: skewX(10deg); /* Counter-skew text to appear upright */
}

/* Responsive Adjustments mit Burger-Menü */
@media (max-width: 768px) {
    header {
        flex-direction: row; /* Logo und Burger-Menü nebeneinander */
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .burger-menu {
        display: block; /* Sichtbar in mobiler Ansicht */
    }

    .nav-container {
        display: none; /* Standardmäßig versteckt */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* Unterhalb des Headers */
        left: 0;
        background-color: #212121; /* Dunkler Hintergrund wie Header */
        padding: 15px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .nav-container.active {
        display: flex; /* Sichtbar wenn aktiv */
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    nav ul li {
        width: 100%;
    }

    .nav-button {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }

    .logout {
        width: 100%;
        justify-content: center;
        padding: 10px;
        margin-top: 10px; /* Abstand zur Navigation */
    }
}