/* General Styling & Reset */
:root {
    --color-primary: #0f3460;
    --color-secondary: #4ecdc4;
    --color-danger: #e74c3c;
    --color-background: #1a1a2e;
    --color-card: #2c2c54;
    --color-text-light: #e0e0f8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* Using a standard web font */
}

body {
    background-color: var(--color-background);
    color: var(--color-text-light);
    line-height: 1.6;
    padding: 20px 0;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    border-bottom: 4px solid var(--color-secondary);
}

header h1 {
    color: #ff6b6b;
    font-size: 2.2em;
}
header p {
    color: #b0c4de;
    font-size: 1em;
    margin-top: 5px;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Card Structure */
.card {
    background-color: var(--color-card);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    flex: 1; /* Allows flexible sizing */
    min-width: 300px; /* Ensures usability on small screens */
}

h2 {
    color: var(--color-secondary);
    border-bottom: 3px solid rgba(78, 205, 196, 0.5);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.subtext {
    font-size: 0.9em;
    color: #bbb;
    margin-bottom: 20px;
}

/* Form Elements */
input[type="text"], input[type="number"], textarea, select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #5c6bc0;
    border-radius: 8px;
    background-color: #1a1a2e;
    color: var(--color-text-light);
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--color-secondary);
    outline: none;
}

.selection-group, .input-group {
    margin-bottom: 20px;
}
.selection-group label, .input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--color-secondary);
}

/* Buttons */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.1s;
    text-transform: uppercase;
    width: 100%;
    margin-top: 10px;
    font-size: 1em;
}

.btn.primary {
    background-color: var(--color-secondary);
    color: var(--color-background);
}
.btn.primary:hover {
    background-color: #3aa899;
    transform: translateY(-2px);
}

.btn.danger {
    background-color: var(--color-danger);
    color: white;
}
.btn.danger:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

/* Status and Progress */
.status-display {
    padding: 15px;
    border: 1px solid #5c6bc0;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #121220;
}
#scanState {
    font-weight: bold;
    color: #ff6b6b;
}
.progress-bar-container {
    background-color: #444;
    border-radius: 8px;
    margin-top: 10px;
    height: 12px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background-color: #ff6b6b;
    transition: width 0.5s ease-in-out;
}

/* Logging and Data Feed */
.logs-area {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #5c6bc0;
}
.data-feed {
    min-height: 150px;
    background-color: #121220;
    padding: 10px;
    border-radius: 6px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 0.9em;
    border: 1px solid #333;
}

/* Media Queries for Tablet/Desktop Layout */
@media (min-width: 992px) {
    .container {
        justify-content: space-between;
    }
    .card {
        flex-basis: 30%; /* Gives more space to each section */
    }
    #hack-section {
        flex-basis: 40%; /* Slightly larger for the main action */
    }
}