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

:root {
    --redhat-red: #ee0000;
    --redhat-dark-red: #a30000;
    --redhat-gray: #4c4c4c;
    --redhat-light-gray: #f5f5f5;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--redhat-gray);
    background-color: var(--redhat-light-gray);
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--redhat-red);
}

h1, h2, h3 {
    color: var(--redhat-red);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    background-color: black;
    color: white;
    padding: 15px;
    border-radius: 5px;
}

h2 {
    margin: 15px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

h3 {
    margin: 10px 0;
}

.calculator-section {
    margin-bottom: 30px;
}

.permission-grid {
    display: grid;
    grid-template-columns: 100px repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.header, .row-header {
    font-weight: bold;
    text-align: center;
    padding: 5px;
}

.permission-grid div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.special-permissions {
    margin: 20px 0;
}

.special-permission-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    justify-content: flex-end;
}

.special-permission {
    margin: 5px 0;
    display: flex;
    align-items: center;
    min-width: 180px;
}

.special-permission input {
    margin-right: 5px;
}

.results, .umask-results {
    background-color: var(--redhat-light-gray);
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    border-left: 3px solid var(--redhat-red);
}

.result-item {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.result-item label {
    width: 180px;
    font-weight: bold;
}

.result-item input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.umask-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.umask-input input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100px;
}

.umask-input button {
    padding: 8px 15px;
    background-color: var(--redhat-red);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.umask-input button:hover {
    background-color: var(--redhat-dark-red);
}

input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

input[type="checkbox"]:checked {
    accent-color: var(--redhat-red);
}

.section-description {
    margin-bottom: 15px;
    color: var(--redhat-gray);
    line-height: 1.5;
    font-size: 0.95rem;
}

.footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 0.9rem;
    color: var(--redhat-gray);
}

.footer a {
    color: var(--redhat-red);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

i.fas {
    margin-right: 5px;
    width: 16px;
    text-align: center;
}

.row-header i.fas {
    font-size: 1.1rem;
}

h2 i.fas, h3 i.fas {
    color: var(--redhat-red);
}

.umask-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.umask-grid {
    flex: 1;
    min-width: 200px;
    background-color: white;
    border-radius: 5px;
    padding: 15px 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.umask-grid h4 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--redhat-gray);
}

.umask-permission-grid {
    font-size: 0.9rem;
    gap: 8px;
    margin: 0 auto;
    max-width: 95%;
    grid-template-columns: 40px repeat(3, 1fr);
}

.umask-permission-grid div {
    min-height: 30px;
}

.umask-permission-grid .header {
    font-size: 0.8rem;
    padding: 3px;
    font-weight: bold;
}

.umask-permission-grid input[type="checkbox"] {
    transform: scale(1.1);
    margin: 0;
}

.umask-value {
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
    font-size: 1.2rem;
}

.umask-toggle {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.umask-toggle label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.default-perm:checked, .result-perm:checked {
    accent-color: #4CAF50;
}

.umask-perm:checked {
    accent-color: #f44336;
}

.visual-umask {
    background-color: var(--redhat-light-gray);
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    border-left: 3px solid var(--redhat-red);
} 