/* MYSYSAD - Production Stylesheet */

/* ===== BASE STYLES ===== */
body {
    background-color: #ffffff;
    color: #000000;
    font-family: "Arial", "Helvetica", sans-serif;
    font-size: 13px;
    margin: 10px;
    padding: 0;
    line-height: 1.3;
    transition: background-color 0.2s, color 0.2s;
}

a {
    color: #000000;
    text-decoration: underline;
    cursor: pointer;
}

a:hover {
    text-decoration: none;
    background-color: #ffffe0;
}

hr {
    border: 0;
    border-top: 1px solid #000;
    margin: 10px 0;
}

/* ===== DARK MODE ===== */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode a {
    color: #8be9fd;
}

body.dark-mode a:hover {
    background-color: #444;
    color: #fff;
    text-decoration: none;
}

body.dark-mode .header {
    border-bottom-color: #555;
}

body.dark-mode .search-box {
    background-color: #333;
    border-color: #555;
}

body.dark-mode input#filter {
    background-color: #222;
    color: #fff;
    border-color: #555;
}

body.dark-mode .col-center {
    border-left-color: #333;
    border-right-color: #333;
}

body.dark-mode .section-title {
    background-color: #8be9fd;
    color: #000;
}

body.dark-mode .group {
    border-color: #555 !important;
}

body.dark-mode hr {
    border-top-color: #333;
}

body.dark-mode .footer {
    background-color: #222;
    border-top-color: #555;
    color: #888;
}

body.dark-mode .main-headline {
    color: #ff5555;
}

body.dark-mode #refresh-btn {
    border-color: #555;
}

body.dark-mode #refresh-btn:hover {
    background-color: #444;
}

body.dark-mode #feed-selector {
    background-color: #333;
    color: #8be9fd;
    border-color: #555;
}

/* ===== LAYOUT ===== */
.container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }
}

.col-left, .col-right {
    padding: 10px;
}

.col-center {
    padding: 10px;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

/* ===== HEADER ===== */
.header {
    text-align: center;
    padding: 10px;
    border-bottom: 3px solid #000;
    margin-bottom: 10px;
}

.site-title {
    font-size: 48px;
    font-weight: bold;
    font-family: 'Georgia', serif;
    margin: 0;
    padding: 0;
    letter-spacing: -2px;
}

.tagline {
    font-size: 11px;
    margin: 5px 0 0 0;
    font-style: italic;
}

.dark-mode-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    border: none;
    background: none;
    padding: 5px;
}

/* ===== MAIN HEADLINE ===== */
.main-headline {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    line-height: 1.3;
    color: #b00;
}

/* ===== SECTION TITLES ===== */
.section-title {
    background-color: #000;
    color: #fff;
    padding: 5px;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    margin: 15px 0 10px 0;
    text-transform: uppercase;
}

/* ===== GROUPS ===== */
.group {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
}

.group-title {
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.group li {
    margin: 5px 0;
    font-size: 12px;
}

/* ===== FEED ITEMS ===== */
.feed-item {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

body.dark-mode .feed-item {
    border-bottom-color: #333;
}

.feed-item a {
    font-weight: bold;
    font-size: 13px;
}

.feed-meta {
    font-size: 11px;
    color: #666;
    margin-top: 3px;
}

body.dark-mode .feed-meta {
    color: #999;
}

.source-tag {
    display: inline-block;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: bold;
    font-size: 10px;
}

.tag-hn {
    background: #ff6600;
    color: #fff;
}

.tag-sysadmin {
    background: #4a90e2;
    color: #fff;
}

.tag-netsec {
    background: #ff5722;
    color: #fff;
}

.tag-gov {
    background: #2196f3;
    color: #fff;
}

.tag-cve {
    background: #f44336;
    color: #fff;
}

/* ===== SEARCH BOX ===== */
.search-box {
    margin: 15px 0;
    padding: 10px;
    border: 2px solid #000;
    background-color: #f9f9f9;
}

input#filter {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

#refresh-btn:hover {
    background-color: #ffffe0;
}

#feed-selector {
    cursor: pointer;
    font-size: 11px;
    border: 2px solid #000;
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    background: #fff;
    color: #000;
}

/* ===== TOOLS WIDGET ===== */
.hidden {
    display: none;
}

.tools-widget {
    border: 3px solid #000;
    padding: 15px;
    margin: 20px 0;
    background: #fff;
}

body.dark-mode .tools-widget {
    background: #1a1a1a;
    border-color: #555;
}

.tool-categories {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    border-bottom: 3px solid #000;
    padding-bottom: 10px;
}

body.dark-mode .tool-categories {
    border-bottom-color: #555;
}

.tool-category {
    font-family: 'Courier New', monospace;
    background: #e0e0e0;
    border: 2px solid #000;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
}

body.dark-mode .tool-category {
    background: #2a2a2a;
    border-color: #555;
    color: #8be9fd;
}

.tool-category:hover {
    background: #d0d0d0;
}

body.dark-mode .tool-category:hover {
    background: #3a3a3a;
}

.tool-category.active {
    background: #000;
    color: #fff;
}

body.dark-mode .tool-category.active {
    background: #8be9fd;
    color: #000;
}

.category-content {
    display: none;
}

.category-content.active {
    display: block;
}

.tool-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tool-tab {
    font-family: 'Courier New', monospace;
    background: #f0f0f0;
    border: 2px solid #000;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

body.dark-mode .tool-tab {
    background: #333;
    border-color: #555;
    color: #8be9fd;
}

.tool-tab:hover {
    background: #ffffe0;
}

body.dark-mode .tool-tab:hover {
    background: #444;
}

.tool-tab.active {
    background: #000;
    color: #fff;
}

body.dark-mode .tool-tab.active {
    background: #8be9fd;
    color: #000;
}

.tool-panel {
    display: none;
}

.tool-panel.active {
    display: block;
}

.tool-input, .tool-output {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

body.dark-mode .tool-input,
body.dark-mode .tool-output {
    background: #222;
    color: #0f0;
    border-color: #555;
}

.tool-output {
    background: #f9f9f9;
}

body.dark-mode .tool-output {
    background: #111;
}

.tool-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 11px;
    margin: 5px 5px 5px 0;
}

body.dark-mode .tool-btn {
    background: #8be9fd;
    color: #000;
}

.tool-btn:hover {
    background: #b00;
}

body.dark-mode .tool-btn:hover {
    background: #ff5555;
}

.cidr-result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
    font-size: 11px;
}

.cidr-item {
    padding: 5px;
    background: #f5f5f5;
}

body.dark-mode .cidr-item {
    background: #333;
}

textarea.tool-input, textarea.tool-output {
    min-height: 80px;
    resize: vertical;
}

.match-highlight {
    background: #ffff00;
    font-weight: bold;
}

body.dark-mode .match-highlight {
    background: #ff5555;
    color: #000;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 20px 10px;
    font-size: 11px;
    margin-top: 30px;
    border-top: 2px solid #000;
    background-color: #f5f5f5;
    color: #666;
}

body.dark-mode .footer {
    background-color: #2a2a2a;
    border-top-color: #555;
}

/* ===== SHARING BUTTONS ===== */
.share-container {
    transition: background-color 0.2s;
}

.share-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.share-btn:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

/* Dark mode sharing buttons */
body.dark-mode .share-container {
    background: #2a2a2a;
    border-bottom-color: #555;
}

body.dark-mode .share-btn {
    background: #1a1a1a;
    color: #e0e0e0;
    border-color: #555;
}

body.dark-mode .share-btn:hover {
    background: #8be9fd;
    color: #000;
    border-color: #8be9fd;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .share-buttons {
        gap: 5px;
    }
    
    .share-btn {
        padding: 5px 8px;
        font-size: 10px;
    }
    
    .share-btn svg {
        width: 14px;
        height: 14px;
    }
}
