/* Custom Design System for AL Concursos */

:root {
    --bg-netflix: #111111;
    --bg-netflix-nav: rgba(17, 17, 17, 0.95);
    --bg-netflix-card: #181818;
    --bg-netflix-footer: #0c0c0c;
    --color-primary: #00f2fe;
    --color-secondary: #4facfe;
    --glow-color: rgba(0, 242, 254, 0.4);
    --text-muted: #a3a3a3;
}

body.bg-netflix {
    background-color: var(--bg-netflix);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1 0 auto;
}

/* Typography styles */
.font-weight-bold {
    font-weight: 700;
}
.x-small {
    font-size: 0.75rem;
}

/* Custom Nav styling */
.bg-netflix-nav {
    background-color: var(--bg-netflix-nav);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-logo {
    transition: transform 0.3s ease;
}
.navbar-logo:hover {
    transform: scale(1.05);
}

.logo-text-glow {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* Glassmorphism Login Card */
.login-body {
    background: linear-gradient(135deg, #0d0b1a 0%, #15102a 50%, #06040a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: rgba(24, 24, 24, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.1);
}

.form-control-netflix {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-control-netflix:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
    color: #ffffff;
    outline: none;
}

.btn-netflix-primary {
    background: linear-gradient(45deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
    transition: all 0.3s ease;
}

.btn-netflix-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
    color: #ffffff;
}

/* Netflix Layout (Category rows & grids) */
.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 12px;
    color: #ffffff;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 4px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.materials-row {
    margin-bottom: 40px;
}

/* Card Netflix-style with hover scaling */
.card-netflix {
    background-color: var(--bg-netflix-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.card-netflix-img-wrapper {
    position: relative;
    padding-top: 135%; /* Aspect Ratio do Livro / PDF */
    overflow: hidden;
    background-color: #262626;
}

.card-netflix-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-netflix-body {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-netflix-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-netflix-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-netflix-meta {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-netflix-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0) 100%);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

/* Hover effects */
.card-netflix:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.2);
}

.card-netflix:hover .card-netflix-img {
    transform: scale(1.08);
}

/* Featured Material Banner */
.featured-banner {
    background: linear-gradient(90deg, rgba(20, 20, 20, 0.95) 0%, rgba(20, 20, 20, 0.8) 50%, rgba(20, 20, 20, 0.2) 100%), var(--featured-bg, #181818);
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.featured-content {
    max-width: 550px;
    z-index: 2;
}

.featured-badge {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: #000000;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Custom Scrollbar for horizontal listings (if needed) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #111111;
}
::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* Admin Dashboard layout */
.admin-sidebar {
    background-color: #1a1a24;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.admin-sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.05);
    color: #ffffff;
}

.admin-sidebar .nav-link.active {
    background: linear-gradient(45deg, rgba(79, 172, 254, 0.15) 0%, rgba(0, 242, 254, 0.15) 100%);
    color: var(--color-primary);
    border-left: 3px solid var(--color-primary);
    font-weight: 600;
}

.admin-card-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.admin-card-stat:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 242, 254, 0.2);
}

.admin-table {
    color: #ffffff !important;
}

.admin-table th {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    font-weight: 600;
    color: var(--color-primary);
}

.admin-table td {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    vertical-align: middle;
}

.admin-form-card {
    background: #18181f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
}

/* Permissoes grid */
.permission-grid-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.permission-grid-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(0,242,254,0.2);
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}
