/* ============================================== */
/* File: assets/css/style.css */
/* Black & White Design - No external dependencies */
/* ============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #000;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    border-bottom: 2px solid #000;
    padding: 20px 0;
    margin-bottom: 40px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #000;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link, .nav-btn {
    text-decoration: none;
    color: #000;
    background: none;
    border: 1px solid #000;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.nav-link:hover, .nav-btn:hover {
    background: #000;
    color: #fff;
}

/* Buttons */
.btn, .btn-primary, .btn-secondary, button[type="submit"] {
    display: inline-block;
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-secondary {
    background: #fff;
    color: #000;
    border: 1px solid #000;
}

.btn:hover, .btn-primary:hover, button[type="submit"]:hover {
    opacity: 0.8;
}

/* Cards Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #000;
    transition: border-color 0.2s, box-shadow 0.2s;
    border-radius: 10px;
}



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

.category-card-icon svg {
    width: 32px;
    height: 32px;
    stroke: #000;
}

.category-card-icon {
    height: 60%;
}

.category-card-title {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Category Page */
.category-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.category-description {
    font-size: 1.1rem;
    color: #333;
    margin: 15px 0;
}

.metadata {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
}

/* Numbered Tools List */
.numbered-tools {
    list-style: none;
    margin: 30px 0;
}

.numbered-tools li {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.numbered-tools li h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.numbered-tools li h2 a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px dotted #000;
}

.numbered-tools li h2 a:hover {
    border-bottom: 1px solid #000;
}

/*.numbered-tools li:before {
    content: counter(item) ". ";
    counter-increment: item;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 10px;
}*/

.numbered-tools {
    counter-reset: item;
}

.numbered-tools li {
    counter-increment: item;
}

.tool-description {
    color: #333;
    margin-top: 8px;
}

/* Pagination */
.pagination {
    margin: 40px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a {
    padding: 8px 14px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #000;
}

.pagination a.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.pagination a:hover:not(.active) {
    border-color: #000;
}

/* Admin Controls */
.admin-controls {
    margin: 30px 0;
    padding: 20px;
    border: 1px dashed #ccc;
    background: #f9f9f9;
}

.admin-controls button,
.tool-admin-actions button {
    background: #000;
    color: #fff;
    border: none;
    padding: 6px 12px;
    margin: 5px;
    cursor: pointer;
    font-size: 0.85rem;
}

.tool-admin-actions {
    margin-top: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    font-family: inherit;
}

.modal-content button {
    width: 100%;
    margin-top: 10px;
}

/* Notes Page */
.notes-list {
    margin: 40px 0;
}

.note-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
    scroll-margin-top: 80px;
}

.note-item h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.note-date {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.note-content {
    line-height: 1.7;
}

.note-content p {
    margin: 15px 0;
}

.note-admin-actions {
    margin-top: 15px;
}

.note-admin-actions button {
    background: #000;
    color: #fff;
    border: none;
    padding: 5px 12px;
    margin-right: 8px;
    cursor: pointer;
}

.notes-index {
    list-style: none;
    margin: 30px 0;
}

.notes-index li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.notes-index a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.notes-index a:hover {
    text-decoration: underline;
}

.note-date-index {
    float: right;
    color: #666;
    font-size: 0.85rem;
}

/* Admin Dashboard */
.admin-dashboard .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    border: 1px solid #000;
    padding: 20px;
    text-align: center;
}

.stat-card h3 {
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 15px 0;
}

.stat-card a {
    color: #000;
    text-decoration: underline;
}

.quick-actions {
    margin: 40px 0;
}

.quick-actions .btn {
    margin-right: 10px;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.data-table th,
.data-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.data-table th {
    background: #f5f5f5;
}

.data-table a {
    color: #000;
    margin-right: 10px;
}

.disabled {
    color: #999;
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid #eee;
    text-align: center;
    color: #666;
}

.footer-links  {
      padding: 5px;
}

.footer-text a {
  font-size: 0.92rem;
    color: #373535;
    padding: 5px;
    text-decoration: none;
}


/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .category-header h1 {
        font-size: 1.8rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.categories-grid h3 
 {
    font-size: 1.1rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.2rem;
    color: #444;
    max-width: 700px;
    margin: 0 auto;
}

/* Suggest Tool Section */
.suggest-tool {
    margin: 40px 0;
    text-align: center;
}

.related-content {
    margin: 40px 0;
    padding: 20px;
    background: #f5f5f5;
}

.related-content ul {
    list-style: none;
    margin-top: 15px;
}

.related-content li {
    margin: 8px 0;
}

.related-content a {
    color: #000;
}

/* Auth Forms */
.auth-container {
    max-width: 500px;
    margin: 40px auto;
}
.auth-form input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    font-size: 1rem;
}
.auth-form button {
    width: 100%;
    margin-top: 15px;
}
.error-message {
    background: #fff0f0;
    border-left: 4px solid #d00;
    padding: 12px;
    margin: 15px 0;
    color: #a00;
}
.success-message {
    background: #f0fff0;
    border-left: 4px solid #0a0;
    padding: 12px;
    margin: 15px 0;
    color: #060;
}
.verification-message {
    text-align: center;
    font-size: 1.2rem;
    margin: 50px 0;
}
.admin-form label {
    display: block;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
}
.admin-form input, .admin-form select, .admin-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
}
.about-content h2 {
    margin: 30px 0 15px;
}
.about-content p {
    margin: 15px 0;
}


/* Two-column layout for single category*/
.category-two-column .row {
    display: flex;
    gap: 40px;
}

.categories-sidebar {
    flex: 1;
    min-width: 260px;
}

.categories-sidebar h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
}

.sidebar-categories-list {
    list-style: none;
    padding: 0;
}

.sidebar-categories-list li {
    margin-bottom: 12px;
}

.sidebar-categories-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #000;
    padding: 8px 12px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.sidebar-categories-list a:hover {
    background: #f5f5f5;
    border-left-color: #000;
}

.sidebar-categories-list a.active {
    background: #f0f0f0;
    border-left-color: #000;
    font-weight: 500;
}

.sidebar-categories-list a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.category-content {
    flex: 3;
}

/* Mobile dropdown (hidden on desktop) */
.mobile-categories-dropdown {
    display: none;
    margin-bottom: 30px;
}

.mobile-categories-dropdown label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.mobile-categories-dropdown select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 1rem;
}

/* Responsive: on small screens, hide sidebar, show dropdown */
@media (max-width: 768px) {
    .category-two-column .row {
        flex-direction: column;
        gap: 20px;
    }
    
    .categories-sidebar {
        display: none;
    }
    
    .mobile-categories-dropdown {
        display: block;
    }
}


/* Flash messages */
.flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background: #fff;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    max-width: 350px;
    font-size: 0.9rem;
}
.flash-success { border-left-color: #0a0; background: #f0fff0; color: #060; }
.flash-error { border-left-color: #d00; background: #fff0f0; color: #a00; }
.flash-close {
    margin-left: 15px;
    cursor: pointer;
    font-weight: bold;
}