html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.hero {
    text-align: center;
    margin-bottom: 48px;
}

.hero h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.hero p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 24px;
}

.hero-link {
    color: #0078d4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.hero-link:hover {
    text-decoration: underline;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.category-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    border-color: #0078d4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    width: 32px;
    height: 32px;
}

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.articles-section {
    margin-bottom: 48px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 16px;
}

.article-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.article-card:hover {
    border-color: #0078d4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.article-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-card h3 svg {
    width: 20px;
    height: 20px;
    fill: #0078d4;
}

.article-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.auth-container {
    max-width: 480px;
    margin: 0 auto;
}

.auth-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 48px;
}

.auth-card h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-align: center;
}

.auth-card .subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.1);
}

.form-group .error-message {
    color: #d13438;
    font-size: 12px;
    margin-top: 4px;
}

.btn-submit {
    width: 100%;
    background-color: #0078d4;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 8px;
}

.btn-submit:hover {
    background-color: #006cbe;
}

.auth-links {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #666;
}

.auth-links a {
    color: #0078d4;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #0078d4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 500;
}

.profile-info h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.profile-info p {
    font-size: 14px;
    color: #666;
}

.profile-section {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.profile-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.info-item span {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
}

.success-message {
    background-color: #107c10;
    color: white;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.error-message {
    background-color: #d13438;
    color: white;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.admin-container {
    display: flex;
    min-height: calc(100vh - 200px);
}

.admin-sidebar {
    width: 250px;
    background: #f3f2f1;
    padding: 20px;
    border-right: 1px solid #e1dfdd;
    flex-shrink: 0;
}

.admin-sidebar h3 {
    margin-bottom: 20px;
    color: #323130;
    font-weight: 600;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #323130;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.nav-item:hover {
    background-color: #e1dfdd;
    color: #323130;
    text-decoration: none;
}

.nav-item.active {
    background-color: #0078d4;
    color: white;
}

.admin-content {
    flex: 1;
    padding: 20px;
}
