:root {
    --widgetBG: #14171a;
    --widgetPanel: #232e22;
    --widgetInk: #e6edf3;
    --muted: #9aa6b2;
    --accent: #0e4c0e;
    --danger: #ef4444;
    --warn: #fbbf24;
    --ok: #22c55e;
    --textHeader: #1f590d;
    --widgetHeader: #2c7f12;
    --widgetBorderRadius: 15px;
}

.widget h2 {
    margin: 20px;
}

h3 {
    border-bottom: 1px solid #003400;
    padding-left: 3px;
    padding-bottom: 3px;
}

#content ul.monitor {
  list-style-image: url("data:image/svg+xml, %3Csvg%20fill%3D%22%23000000%22%20viewBox%3D%220%200%2024%2024%22%20id%3D%22monitor%22%20data-name%3D%22Line%20Color%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20class%3D%22icon%20line-color%22%3E%3Cg%20id%3D%22SVGRepo_bgCarrier%22%20stroke-width%3D%220%22%3E%3C%2Fg%3E%3Cg%20id%3D%22SVGRepo_tracerCarrier%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3C%2Fg%3E%3Cg%20id%3D%22SVGRepo_iconCarrier%22%3E%3Cpolygon%20id%3D%22secondary%22%20points%3D%2216%2020%2015%2016%209%2016%208%2020%2016%2020%22%20style%3D%22fill%3A%20none%3B%20stroke%3A%20%23000000%3B%20stroke-linecap%3A%20round%3B%20stroke-linejoin%3A%20round%3B%20stroke-width%3A%202%3B%22%3E%3C%2Fpolygon%3E%3Cpath%20id%3D%22primary%22%20d%3D%22M6%2C20H18m2-4H4a1%2C1%2C0%2C0%2C1-1-1V5A1%2C1%2C0%2C0%2C1%2C4%2C4H20a1%2C1%2C0%2C0%2C1%2C1%2C1V15A1%2C1%2C0%2C0%2C1%2C20%2C16Z%22%20style%3D%22fill%3A%20none%3B%20stroke%3A%20%23000000%3B%20stroke-linecap%3A%20round%3B%20stroke-linejoin%3A%20round%3B%20stroke-width%3A%202%3B%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  list-style-type: square;
}

#content a.citation {
    color: #22c55e;
}

div.text {
    margin: 50px 0px;
}

div.text p {
    padding-left: 3px;
}

/*View Counts*/
#viewDisplay {
    position: relative;
    top: -65px;
    float: right;
}

#viewCount {
    position: relative;
    font-size: 1.3em;
    top: -18px;
}

/*Password Generator*/
.widget {
    width: 100%;
    max-width: 1000px;
    background: var(--widgetPanel);
    color: var(--widgetInk);
    border-radius: var(--widgetBorderRadius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    margin: auto;
    padding: 0px;
    animation: fadeIn .6s ease-in-out;
}

.passGen-header {
    background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%);
    color: #ffffff;
    padding: 30px;
    text-align: center;
    position: relative;
    border-bottom: 2px solid #555555;
    border-radius: var(--widgetBorderRadius) var(--widgetBorderRadius) 0px 0px;
}

.dictionary-term {
    border-bottom: 1px dashed #000000;
    cursor: help;
}

#dictionary-widget {
    position: fixed;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 600px;
    max-width: 30vw;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    font-family: Open Sans, Helvetica, Arial, sans-serif;;
}

#wordName {
    font-size: 39px;
    line-height: 52px;
    font-style: normal;
    font-weight: 700;
    margin-bottom: 0;
    margin-right: 10px;
    order: 0;
    font-family: Playfair Display, serif;
}

#wordType {
    color: #4a7d95;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 34px;
    font-family: Playfair Display, serif;
}

#wordDefinition {
    color: #0A1B27;
    font-size: 19px;
    line-height: 28px;
}

#wordSyllables {
    color: #757575;
    font-size: 19px;
    line-height: 28px;
}

#pronounceWord {
    color: #757575;
    font-size: 19px;
    line-height: 28px;
    font-weight: bold;
}

#isAltWord {
    background-color: #be6e51;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 140px;
  background-color: #555555;
  color: #ffffff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  margin-left: -75px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.codebox{
    color: #000000;
}

/*Phishing Test*/
.simulator-header {
    background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%);
    color: #ffffff;
    padding: 30px;
    text-align: center;
    position: relative;
    border-bottom: 2px solid #555555;
}

.simulator-header h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: #4dabf7;
    width: 33.33%;
    transition: width 0.5s ease;
}

.scenario-counter {
    font-size: 1.1rem;
    opacity: 0.9;
}

.score-board {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 30px;
    background: #182117;
    border-bottom: 1px solid #33572f;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-item .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e0e0e0;
}

.score-item .label {
    font-size: 0.9rem;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.email-container {
    padding: 40px;
    min-height: 400px;
}

.email-card {
    background: #333333;
    border: 2px solid #444444;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.email-header {
    background: #3a3a3a;
    padding: 50px 25px;
    border-bottom: 2px solid #555555;
}

.email-from {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.from-label {
    font-weight: bold;
    margin-right: 10px;
    color: #999999;
}

.from-address {
    color: #4dabf7;
    cursor: help;
    position: relative;
}

.from-address:hover {
    text-decoration: underline;
}

.from-address .fromtooltip {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #333333;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    margin-bottom: 5px;
}

.from-address:hover .fromtooltip {
    opacity: 1;
}

.email-subject {
    font-size: 1.3rem;
    font-weight: bold;
    color: #f0f0f0;
}

.email-body {
    padding: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #cccccc;
    background: #2a2a2a;
}

a.email-link#email-link {
    color: #4dabf7;
    text-decoration: underline;
    cursor: pointer;
    position: relative;
    display: inline-block;
}

a.email-link#email-link:hover {
    color: #74c0fc;
}

.url-preview {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    margin-bottom: 5px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.email-link:hover .url-preview {
    opacity: 1;
}

.widget .decision-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 30px;
}

.widget .decision-btn {
    flex: 1;
    max-width: 250px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.widget .btn-safe {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.widget .btn-phishing {
    background: linear-gradient(135deg, #dc3545 0%, #f86734 100%);
    color: white;
}

.widget button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.feedback-container {
    padding: 40px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-card {
    background: #333333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.feedback-header {
    padding: 25px;
    color: white;
    text-align: center;
}

.feedback-header.correct {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.feedback-header.incorrect {
    background: linear-gradient(135deg, #dc3545 0%, #f86734 100%);
}

.feedback-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.feedback-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

.feedback-body {
    padding: 30px;
}

.explanation {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #cccccc;
    margin-bottom: 20px;
}

.red-flags {
    background: #3a3019;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.red-flags h3#redflagsh3 {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 0px;
}

.red-flags ul {
    list-style: none;
    padding: 0;
}

.red-flags li {
    color: #ffdd57;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.red-flags li:before {
    content: "⚠️";
    position: absolute;
    left: 0;
}

.widget .next-btn {
    display: block;
    margin: 30px auto 0;
    padding: 12px 40px;
    background: linear-gradient(135deg, #555555 0%, #777777 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.widget .next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #666666 0%, #888888 100%);
}

.final-report {
    padding: 40px;
    text-align: center;
}

.grade-display {
    margin: 30px 0;
}

.grade-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.grade-a { background: linear-gradient(135deg, #28a745 0%, #20c997 100%); }
.grade-b { background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%); }
.grade-c { background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%); }
.grade-d { background: linear-gradient(135deg, #ff9800 0%, #ff6b6b 100%); }
.grade-f { background: linear-gradient(135deg, #dc3545 0%, #c92a2a 100%); }

.final-score {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.takeaways {
    background: #3a3a3a;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
    border: 1px solid #555555;
}

.takeaways h3#takeawayh3 {
    color: #f0f0f0;
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-align: center;
    border-bottom: 0px;
}

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

.takeaways li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.6;
}

.takeaways li:before {
    content: "✓";
    position: absolute;
    left: 10px;
    color: #28a745;
    font-weight: bold;
}

.restart-btn {
    padding: 15px 50px;
    background: linear-gradient(135deg, #555555 0%, #777777 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 30px;
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .simulator-header h1 {
        font-size: 1.5rem;
    }

    .score-board {
        gap: 30px;
        padding: 20px;
    }

    .score-item .number {
        font-size: 2rem;
    }

    .email-container {
        padding: 20px;
    }

    .email-body {
        padding: 20px;
        font-size: 1rem;
    }

    .decision-buttons {
        flex-direction: column;
        align-items: center;
    }

    .decision-btn {
        width: 100%;
        max-width: 300px;
    }

    .feedback-container {
        padding: 20px;
    }

    .final-report {
        padding: 20px;
    }
}

/*Breach Sim*/
/* Card Container */
.widget header {
    padding: 18px 22px;
    font-size: 22px;
    font-weight: 800;
    border-bottom: 2px solid #C9B35C;
    background: var(--accent);
    color: #fff;
}

.widget .body {
    padding: 24px 22px;
}

/* Inputs & Buttons */
.widget input {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08);
    background: #0f1214;
    color: var(--widgetInk);
    width: 100%;
    max-width: 400px;
    font-size: 16px;
    margin-bottom: 12px;
}

.widget input:focus {
    outline: 2px solid var(--accent);
    border-color: var(--accent);
}

.widget button {
    padding: 12px 22px;
    border-width: 0px;
    border-radius: 10px;
    background: #204520;
    border: #aba575 2px solid;
    color: #e1e7ce;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}

.widget button:active{
    opacity: 0.8;
}

/* Result Boxes */
.results {
    margin-top: 24px;
}

.site {
    background: #0f1214;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn .4s ease;
}

.comp {
    font-weight: 700;
}

.safe {
    color: var(--ok);
}

.pwned {
    color: var(--danger);
}

.muted {
    color: var(--muted);
    font-size: 14px;
}

/* Warning Page Special */
.warning-text {
    font-size: 18px;
    font-weight: bold;
    color: var(--danger);
    margin: 16px 0;
    line-height: 1.5;
}

#pwDisplay {
    font-size: 16px;
    color: var(--warn);
    margin: 10px 0;
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}
