* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    color: #f0f6fc;
    background-color: #0d1117;
    font-family: Arial, Helvetica, sans-serif;
}

.admin-header {
    width: 100%;
    background-color: #161b22;
    border-bottom: 1px solid #30363d;
}

.admin-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 1400px;
    min-height: 68px;
    margin: 0 auto;
    padding: 10px 16px;
}

.admin-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #f0f6fc;
    text-decoration: none;
}

.admin-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    color: #3fb950;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 10px;
    font-size: 20px;
}

.admin-header-title {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-header-title strong {
    font-size: 17px;
    line-height: 1.2;
}

.admin-header-title small {
    overflow: hidden;
    margin-top: 3px;
    color: #8b949e;
    font-size: 12px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-return-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    color: #c9d1d9;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    text-decoration: none;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.admin-return-link span {
    display: none;
}

.admin-return-link:hover {
    color: #ffffff;
    background-color: #30363d;
    border-color: #3fb950;
}

@media (min-width: 768px) {
    .admin-header-container {
        min-height: 74px;
        padding: 12px 24px;
    }

    .admin-header-title strong {
        font-size: 19px;
    }

    .admin-header-title small {
        font-size: 13px;
    }

    .admin-return-link {
        width: auto;
        height: auto;
        padding: 10px 14px;
        gap: 8px;
    }

    .admin-return-link span {
        display: inline;
    }
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-logout-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    color: #ffb4b4;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    text-decoration: none;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.admin-logout-link span {
    display: none;
}

.admin-logout-link:hover {
    color: #ffffff;
    background-color: #a40e26;
    border-color: #da3633;
}

@media (min-width: 768px) {
    .admin-logout-link {
        width: auto;
        height: auto;
        padding: 10px 14px;
        gap: 8px;
    }

    .admin-logout-link span {
        display: inline;
    }
}