@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap'); /* Hacker-like font */

body {
    font-family: 'VT323', monospace; /* Hacker font */
    background-color: #0d0d0d; /* Dark background */
    background-image: url('../assets/images/background.jpg'); /* Optional background image */
    background-size: cover;
    background-blend-mode: overlay; /* Blends image with background-color */
    margin: 0;
    padding: 20px;
    color: #00ff00; /* Neon green text */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Glitch effect for H1 */
.glitch {
    position: relative;
    color: #00ffff; /* Electric blue for glitch */
    font-size: 3.5em;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 5px;
    animation: glitch 1s infinite alternate; /* Glitch animation */
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff; /* Glow */
}

.glitch i {
    margin-right: 15px;
    color: #00ff00; /* Green terminal icon */
}

/* Glitch effect for text */
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: -2px;
    text-shadow: 1px 0 #ff00ff; /* Magenta shadow */
    animation: glitch-left 1.5s infinite alternate-reverse;
}

.glitch::after {
    left: 2px;
    text-shadow: -1px 0 #00ffff; /* Cyan shadow */
    animation: glitch-right 1.5s infinite alternate;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-left {
    0% { clip-path: inset(0% 0% 0% 0%); }
    25% { clip-path: inset(10% 0% 75% 0%); }
    50% { clip-path: inset(30% 0% 40% 0%); }
    75% { clip-path: inset(0% 0% 90% 0%); }
    100% { clip-path: inset(0% 0% 0% 0%); }
}

@keyframes glitch-right {
    0% { clip-path: inset(0% 0% 0% 0%); }
    25% { clip-path: inset(20% 0% 60% 0%); }
    50% { clip-path: inset(5% 0% 80% 0%); }
    75% { clip-path: inset(40% 0% 30% 0%); }
    100% { clip-path: inset(0% 0% 0% 0%); }
}


.subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), 0 0 40px rgba(0, 255, 0, 0.2); /* Neon glow effect */
    border: 1px solid #00ff00; /* Green border */
}

.card {
    background-color: rgba(20, 20, 20, 0.9);
    border: 1px solid #006600; /* Darker green border */
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
}

h2 {
    color: #00ffff; /* Electric blue for headings */
    border-bottom: 1px dashed #006600; /* Dashed green line */
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

h2 i {
    margin-right: 10px;
    color: #00ff00;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #00ff00;
    font-size: 1.1em;
}

input[type="text"],
input[type="number"],
textarea,
select {
    width: calc(100% - 22px); /* Account for padding and border */
    padding: 10px;
    background-color: #1a1a1a;
    border: 1px solid #006600;
    border-radius: 5px;
    font-size: 1em;
    color: #00ff00;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'VT323', monospace;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: #00ffff;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 150px;
    direction: ltr; /* Ensure code is LTR */
    text-align: left; /* Ensure code is left-aligned */
}

.action-item {
    background-color: #151515;
    border: 1px solid #005500;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: inset 0 0 5px rgba(0, 255, 0, 0.1);
}

.action-item > div {
    flex-basis: calc(50% - 15px); /* Two columns */
}

.action-item .form-group {
    margin-bottom: 0;
}

.action-controls {
    flex-basis: 100%;
    text-align: right;
    margin-top: 10px;
}

.action-controls button {
    background-color: #880000; /* Dark red for delete */
    color: white;
    border: 1px solid #ff0000;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'VT323', monospace;
}

.action-controls button:hover {
    background-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

button {
    background-color: #008800; /* Dark green for primary buttons */
    color: white;
    border: 1px solid #00ff00;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-family: 'VT323', monospace;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

button:hover {
    background-color: #00ff00;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
}

button i {
    margin-right: 8px;
}

.button-group button {
    margin-right: 10px; /* Space between buttons in a group */
    margin-top: 0; /* Override default button margin-top */
}
.button-group button:last-child {
    margin-right: 0;
}

.copy-btn {
    background-color: #004488; /* Dark blue for copy */
    border-color: #00aaff;
}
.copy-btn:hover {
    background-color: #00aaff;
    color: black;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.7);
}

.download-btn {
    background-color: #880088; /* Purple for download */
    border-color: #ff00ff;
}
.download-btn:hover {
    background-color: #ff00ff;
    color: black;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.7);
}

.add-action-btn {
    background-color: #006600;
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto;
    padding: 10px 20px;
    font-size: 1em;
    border-color: #00ff00;
}
.add-action-btn:hover {
    background-color: #00ff00;
    color: black;
}

.save-btn {
    background-color: #666600; /* Dark yellow for save */
    border-color: #ffff00;
    color: white;
}
.save-btn:hover {
    background-color: #ffff00;
    color: black;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.7);
}

.load-btn {
    background-color: #444444; /* Grey for load */
    border-color: #aaaaaa;
}
.load-btn:hover {
    background-color: #aaaaaa;
    color: black;
    box-shadow: 0 0 15px rgba(170, 170, 170, 0.7);
}

small {
    display: block;
    margin-top: 5px;
    color: #888; /* Lighter grey for small text */
    font-size: 0.9em;
}

.description-box {
    background-color: #1a1a1a;
    border: 1px dashed #006600;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    color: #00ff00;
    font-size: 1em;
    min-height: 50px;
}
.description-box p {
    margin: 0;
}

/* Tab Styles */
.tab-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-button {
    background-color: #222;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
    font-size: 1.1em;
    border-radius: 5px;
}

.tab-button.active {
    background-color: #00ff00;
    color: #0d0d0d;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
}

.tab-button:hover:not(.active) {
    background-color: #006600;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.tab-content {
    display: none;
}

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

.checkbox-group label {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 5px;
    font-size: 1em;
}
.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .glitch {
        font-size: 2.5em;
    }
    .container {
        padding: 20px;
        margin: 10px auto;
    }
    .action-item > div {
        flex-basis: 100%;
    }
    .action-controls {
        text-align: left; /* Adjust for mobile */
    }
    .button-group button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .button-group button:last-child {
        margin-bottom: 0;
    }
    .add-action-btn {
        width: 100%;
    }
    .tab-button {
        width: 100%;
        margin-bottom: 10px;
    }
    .tab-container {
        flex-direction: column;
        gap: 0;
    }
}