﻿/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4; /* Light gray background */
    color: #111;
    padding: 20px;
    line-height: 1.6;
}


.logo-img {
    height: 60px;
    width: auto;
}

/* =====================
   NAVBAR
   ===================== */

.navbar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 25px;
    background-color: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Links styled as buttons */
.nav-link {
    color: #808080;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 6px 12px;
    border-radius: 6px;
    text-shadow: 1px 1px 2px grey;
    transition: all 0.3s ease;
}

/* Hover */
.nav-link:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.1);
}

/* =====================
   DROPDOWN
   ===================== */

.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    left: 0;
    /* Lighter background */
    background-color: #e0e0e0; /* light gray instead of dark */
    /* Minimum width */
    min-width: 170px;
    /* Rounded corners */
    border-radius: 8px;
    /* Hide by default */
    display: none;
    /* Reduced padding for smaller height */
    padding: 3px 0;
    /* Softer shadow */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}


/* Dropdown links */
.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    color: #222;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    color: #fff;
}

/* Divider */
.dropdown-menu hr {
    border: none;
    height: 1px;
    background-color: #444;
    margin: 6px 0;
}

/* Show menu */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Link Container - Grid Layout */
.link-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Default: 4 links per row */
    gap: 5px;
    width: 100%;
    margin-top: 5px;
}

    /* Styling for Each Link (as Buttons) */
    .link-container a {
        display: block; /* Treat links as block elements */
        font-size: 18px;
        text-decoration: none;
        /*color: white;*/
        background-color: #f0f0f0;
        padding: 6px 6px;
        border-radius: 10px;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        width: 100%; /* Make sure the buttons take up full width */
    }

        /* Hover Effect for Link Buttons */
        .link-container a:hover {
            background-color: lightgrey ; /* Darker blue on hover */
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
            transform: translateY(-2px); /* Lift effect */
        }
/* ================================
   One Note Page  Styling
   ================================ */
.onenote-form {
    background: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 8px;
    max-width: 800px;
}

.onenote-output {
    background: #111;
    color: #0f0;
    padding: 15px;
    white-space: pre-wrap;
    max-height: 500px;
    overflow-y: auto;
    border-radius: 8px;
}


/* ================================
   Status Page Table Styling
   ================================ */

.status-table-wrapper {
    background: #ffffff;
    padding: 10px;
    margin-top: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Table Layout */
.status-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

    /* Table Header */
    .status-table thead th {
        background-color: #f0f0f0;
        color: #333;
        text-align: left;
        padding: 6px;
        border-bottom: 2px solid #ddd;
    }

    /* Table Rows */
    .status-table tbody tr {
        border-bottom: 1px solid #eee;
    }

        .status-table tbody tr:hover {
            background-color: #fafafa;
        }

    /* Table Cells */
    .status-table td {
        padding: 4px;
        vertical-align: middle;
    }

/* Service Name */
.service-name {
    font-weight: 600;
}

/* URL Styling */
.service-url a {
    color: #0066cc;
    text-decoration: none;
}

    .service-url a:hover {
        text-decoration: underline;
    }

/* Status Cell */
.status-cell {
    text-align: center;
    width: 120px;
}

/* Status Badges */
.status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    color: white;
    min-width: 80px;
}

    /* Status Colors */
    .status.up {
        background-color: #2ecc71; /* green */
    }

    .status.down {
        background-color: #e74c3c; /* red */
    }

    .status.paused {
        background-color: #f39c12; /* orange */
    }

/* Footer Text */
.status-updated {
    margin-top: 15px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* Responsive Design for Different Screen Sizes */
@media (max-width: 1024px) {
    .link-container {
        grid-template-columns: repeat(3, 1fr); /* 3 links per row on medium screens */
    }
}

@media (max-width: 768px) {
    .link-container {
        grid-template-columns: repeat(2, 1fr); /* 2 links per row on small screens */
    }

        .link-container a {
            width: 100%; /* Ensure links take full width */
        }

    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .link-container {
        grid-template-columns: 1fr; /* 1 link per row on very small screens */
    }

        .link-container a {
            width: 100%; /* Full-width links */
        }
}

/* General Styling for Headers */
h2 {
    font-size: 2.5rem;
    color: #333;
    margin-top: 20px;
    text-align: left;
    font-weight: 600;
}

    h2 + p {
        font-size: 1.2rem;
        color: #555;
    }

/* Optional Styling for Containers and Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Styling */
footer {
    background: none;
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 3rem;
}

/* Responsive Layout for Footer */
@media (max-width: 768px) {
    footer {
        padding: 1rem;
    }
}


/* Responsive Table */
@media (max-width: 768px) {
    .status-table thead {
        display: none;
    }

    .status-table,
    .status-table tbody,
    .status-table tr,
    .status-table td {
        display: block;
        width: 100%;
    }

        .status-table tr {
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 10px;
            background: white;
        }

        .status-table td {
            text-align: left;
            padding: 8px 10px;
        }

    .status-cell {
        text-align: left;
    }
}
