﻿/* Reset & Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    background: #f5f7fa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #007bff;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* Header */
header {
    background: #170B33;
    color: white;
    padding: 1rem 1.5rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    header .logo {
        font-weight: bold;
        font-size: 3.2rem;
        text-align: center;
        font-family: 'Bauhaus', sans-serif;
        color: #ffffff;
        text-shadow: 0 0 8px rgba(0, 247, 255, 0.6);
        transition: transform 0.3s ease, text-shadow 0.3s ease;
    }

        header .logo:hover {
            transform: scale(1.05);
            text-shadow: 0 0 10px #00f7ff, 0 0 20px #00f7ff, 0 0 30px #00f7ff;
        }

    header .tagline {
        font-family: 'Bauhaus', sans-serif;
        font-size: 1.1rem;
        color: #a3a3a3;
        margin-top: 0rem;
        letter-spacing: 0.05em;
        text-shadow: 0 0 3px rgba(255, 255, 255, 0.2);
        user-select: none;
    }

/* Layout */
.container {
    display: flex;
    flex: 1;
    padding: 1rem 1.5rem;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ad-left, .ad-right {
    width: 180px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #666;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.bottom-ad {
    max-width: 1200px;
    width: 100%;
    margin: 0rem auto 1.5rem auto;
    background: #ddd;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Main Content */
main {
    flex: 1;
    background: white;
    padding: 1.5rem;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

/* IP Lookup Section */
#ipLookup {
    margin-bottom: 2rem;
}

    #ipLookup label {
        font-weight: bold;
        display: block;
        margin-bottom: 0.5rem;
    }

#ipInput {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}
#domainInput {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}


#lookupBtn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

    #lookupBtn:hover {
        background-color: #0056b3;
    }
/* IP display blocks */
.ip-display {
    font-size: 1.2rem; /* slightly bigger */
    color: #333; /* or your existing text color */
    margin-bottom: 12px;
}

    .ip-display strong {
        font-weight: 500;
        color: #007acc; /* highlight color */
        margin-right: 6px;
    }

    /* Or if your HTML doesn’t have <strong>, you can target labels with a span: */

    .ip-display span.label {
        font-weight: 500;
        color: #007acc;
        margin-right: 6px;
    }
#result {
    overflow-x: auto;
    margin-top: 1rem;
}

.result-table {
    /*width: 100%;*/
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

    .result-table th,
    .result-table td {
        border: 1px solid #ccc;
        padding: 8px 12px;
        text-align: left;
        vertical-align: top;
     
    }

    .result-table th {
        font-weight: bold;
        /*background-color: #0078D7;*/
        /*color: white;*/
        font-weight: bold;
        text-align: left;
        width: 30%;
    }

    .result-table td {
        /*width: 70%;*/
    }

    .result-table tr:nth-child(even) {
        background-color: #fafafa;
    }

    .result-table tr:hover {
        background-color: #e6f0ff;
    }

.label {
    font-weight: 600;
}



/* Tools Section (3 Columns) */
.links-section {
    margin-bottom: 2rem;
}

    .links-section h3 {
        margin-bottom: 0.75rem;
        border-bottom: 2px solid #007bff;
        padding-bottom: 0.3rem;
    }

.links-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 2rem;
}

    .links-columns ul {
        list-style-type: none;
        padding-left: 0;
        margin: 0;
    }

    .links-columns li {
        margin-bottom: 0.45rem;
    }

/* Tips Section */
.tips-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

    .tips-section h3 {
        border-bottom: 2px solid #007bff;
        padding-bottom: 0.3rem;
        margin-bottom: 0.75rem;
    }

.tips-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 2rem;
    max-height: 350px;
    overflow-y: auto;
}

    .tips-columns ul {
        list-style-type: disc;
        padding-left: 1.25rem;
        margin: 0;
    }

    .tips-columns li {
        margin-bottom: 0.45rem;
        font-size: 0.95rem;
    }
/* chmod */
.chmod-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem 2rem;
    padding: 1rem;
    border-radius: 10px;
    background: #ffffff; /* white background */
    color: #333333;
    /*box-shadow: 0 0 12px rgba(0, 122, 204, 0.3);*/
    /* border: 1px solid rgba(0, 122, 204, 0.4); */ /* removed border */
    margin-bottom: 1rem;
    width: 100%; /* full width */
    max-width: none; /* no max width */
}

    .chmod-inputs label {
        font-weight: bold;
        margin-bottom: 0.25rem;
        display: block;
        color: #007ACC; /* blue label text for accent */
    }

.chmod-box, #fileType {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    box-shadow: none;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

    .chmod-box:focus, #fileType:focus {
        border-color: #007ACC;
        box-shadow: 0 0 8px rgba(0, 122, 204, 0.5);
    }

.chmod-symbol {
    display: inline-block;
    background: #f0f0f0;
    padding: 8px 12px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    color: #333;
    box-shadow: 0 0 8px rgba(0, 122, 204, 0.3);
    white-space: pre; /* Keeps spacing for monospace layout */
}

/* Colored role classes */
.symbol-owner {
    color: #e74c3c; /* Red */
}

.symbol-group {
    color: #3498db; /* Blue */
}

.symbol-others {
    color: #27ae60; /* Green */
}

.chmod-inputs button {
    padding: 6px 12px;
    background-color: white;
    color: #007ACC;
    border: 1.5px solid #007ACC;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 122, 204, 0.5);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.9rem;
    align-self: flex-start;
    margin-top: 0rem;
    width: 80px;
}

    .chmod-inputs button:hover {
        background-color: #007ACC;
        color: white;
    }

/* Responsive tweak */
@media (max-width: 500px) {
    .chmod-inputs {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 1rem 0;
        max-width: 100%;
    }
}

/* Footer */
footer {
    background: #FFFFFF;
    border-top: 1px solid #ccc;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    padding: 1rem 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 1rem;
    }

    .ad-left, .ad-right {
        width: 100%;
        height: 60px;
        margin-bottom: 1rem;
    }

    main {
        box-shadow: none;
        border-radius: 0;
    }

    .links-columns,
    .tips-columns {
        grid-template-columns: 1fr;
    }

    header .tagline {
        font-size: 0.9rem;
        text-align: center;
        letter-spacing: normal;
    }


}
