body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.hero-section h1 {
    color: white;
}

.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

footer {
    margin-top: auto;
}

.input-group button {
    border-left: none;
}

.badge {
    font-size: 0.9em;
    padding: 0.5em 0.75em;
}

.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
}

/* Главная страница — стиль, напоминающий экран входа Nextcloud */
body.page-index {
    background: #ededed;
    background-image: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
}

body.page-index .nc-navbar {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.page-index .navbar-brand {
    color: #0082c9 !important;
    font-weight: 600;
    font-size: 1.25rem;
}

body.page-index .navbar .nav-link {
    color: #222 !important;
}

body.page-index .navbar .nav-link:hover {
    color: #0082c9 !important;
}

body.page-index .nc-main {
    max-width: 100%;
}

body.page-index .nc-footer {
    background: #f0f0f0;
    color: #666;
    border-top: 1px solid #ddd;
    font-size: 0.875rem;
}

body.page-index .nc-home {
    min-height: calc(100vh - 56px - 80px);
}

body.page-index .nc-hero {
    min-height: 42vh;
}

body.page-index .nc-card {
    width: 100%;
    max-width: 28rem;
    background: #fff;
    border-radius: 3px;
    border: 1px solid #dbdbdb;
    padding: 2rem 2rem 1.75rem;
}

body.page-index .nc-logo {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #0082c9 0%, #006aa3 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    box-shadow: 0 2px 8px rgba(0, 130, 201, 0.35);
}

body.page-index .nc-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #222;
    letter-spacing: -0.02em;
}

body.page-index .nc-lead {
    font-size: 0.95rem;
    line-height: 1.45;
}

body.page-index .btn-nc-primary {
    --bs-btn-bg: #0082c9;
    --bs-btn-border-color: #0082c9;
    --bs-btn-hover-bg: #006aa3;
    --bs-btn-hover-border-color: #006aa3;
    --bs-btn-active-bg: #006aa3;
    --bs-btn-active-border-color: #006aa3;
    --bs-btn-focus-shadow-rgb: 0, 130, 201;
    border-radius: 3px;
    font-weight: 500;
}

body.page-index .nc-actions .btn-lg {
    border-radius: 3px;
    font-weight: 500;
}

body.page-index .nc-hint {
    line-height: 1.4;
}

body.page-index .nc-features .nc-feature {
    border-radius: 3px;
    border: 1px solid #e0e0e0 !important;
}

body.page-index .nc-feature-icon {
    font-size: 1.75rem;
    color: #0082c9;
}

body.page-index .nc-feature .card-title {
    color: #222;
    font-weight: 600;
}
