/* Custom Styles for Dazzli CMS */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Font */
.open-sans-<uniquifier> {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
    font-variation-settings:
      "wdth" 100;
  }

  body {
    font-family: 'Open Sans', sans-serif;  /* Apply Open Sans to the whole body */
    font-weight: normal;
}

h1 {
    font-family: 'Open Sans', sans-serif;  /* Apply Open Sans to headings */
    font-weight: bold;
}

p {
    font-family: 'Open Sans', sans-serif;
    font-weight: normal;
}



/* Header & Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Content areas */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Blog specific styles */
.blog-post-card {
    margin-bottom: 1.5rem;
}

.blog-post-card .card-img-top {
    border-radius: 8px 8px 0 0;
    height: 200px;
    object-fit: cover;
}

.blog-post-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-post-content {
    line-height: 1.7;
}

/* Category badge */
.category-badge {
    background-color: #007bff;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
}

/* Tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag-badge {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
}

.tag-badge:hover {
    background-color: #e9ecef;
}

/* Tags Search bar */
.search-container {
    position: relative; /* Needed for absolute positioning of the icon */
}

.clear-icon {
    position: absolute;
    top: 50%;
    right: 10px; /* Adjust as needed for spacing */
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.5; /* Make it subtle when no text */
}

.clear-icon:hover {
    opacity: 0.8;
}

.clear-icon i {
    font-size: 1em; /* Adjust icon size */
}

/* Hide the clear icon when the input is empty (initially) */
.search-container:not(:has(input:not(:placeholder-shown))) .clear-icon {
    display: none;
}

/* Show the clear icon when there is text in the input */
.search-container:has(input:not(:placeholder-shown)) .clear-icon {
    display: block; /* Or inline-flex, etc. */
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Dashboard styles */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Content checking results */
.content-check-results {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

.content-check-passed {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.content-check-failed {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.content-issue {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.severity-error {
    border-left: 4px solid #dc3545;
}

.severity-warning {
    border-left: 4px solid #ffc107;
}

.severity-info {
    border-left: 4px solid #17a2b8;
}

/* Form styling */
.form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Footer */
footer {
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.social-links a {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

