/* 
 * Lost in the Shell Bank - Reusable Components
 * Buttons, Cards, Forms, Alerts
 */

/* Shell-themed cards */
.shell-card {
    background: rgba(26, 31, 60, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shell-card:hover {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 229, 255, 0.15);
    transform: translateY(-2px);
}

.shell-card.compromised {
    border-color: rgba(255, 20, 147, 0.3);
    box-shadow: 0 8px 32px rgba(255, 20, 147, 0.1);
}

.shell-card.breached {
    border-color: rgba(178, 75, 255, 0.3);
    box-shadow: 0 8px 32px rgba(178, 75, 255, 0.1);
}

.shell-card.owned {
    border-color: rgba(0, 255, 65, 0.3);
    box-shadow: 0 8px 32px rgba(0, 255, 65, 0.1);
}

/* Button styles Lost in the Shell */
.btn-shell {
    background: linear-gradient(45deg, var(--shell-cyan), var(--shell-purple));
    color: var(--shell-black);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
    cursor: pointer;
    font-family: 'Orbitron', monospace;
}

.btn-shell:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.5);
    background: linear-gradient(45deg, var(--shell-purple), var(--shell-cyan));
}

.btn-shell:active {
    transform: translateY(0);
}

.btn-shell.danger {
    background: linear-gradient(45deg, var(--shell-magenta), var(--shell-purple));
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

.btn-shell.danger:hover {
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.5);
}

.btn-shell.success {
    background: linear-gradient(45deg, var(--shell-green), var(--shell-cyan));
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.3);
}

.btn-shell.success:hover {
    box-shadow: 0 8px 25px rgba(0, 255, 65, 0.5);
}

.btn-shell.warning {
    background: linear-gradient(45deg, var(--shell-gold), var(--shell-cyan));
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-shell.warning:hover {
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

/* Form elements */
.form-shell {
    background: rgba(26, 31, 60, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    width: 100%;
}

.form-shell:focus {
    outline: none;
    border-color: var(--shell-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    background: rgba(26, 31, 60, 0.8);
}

.form-shell::placeholder {
    color: var(--shell-silver);
    opacity: 0.6;
}

.form-label {
    display: block;
    color: var(--shell-cyan);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Orbitron', monospace;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

/* Alert messages */
.alert-shell {
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    border-left: 4px solid;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.alert-shell.error {
    background: rgba(255, 20, 147, 0.1);
    border-color: var(--shell-magenta);
    color: #ffffff;
}

.alert-shell.success {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--shell-green);
    color: #ffffff;
}

.alert-shell.info {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--shell-cyan);
    color: #ffffff;
}

.alert-shell.warning {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--shell-gold);
    color: #ffffff;
}

/* Loading spinner */
.shell-loader {
    border: 3px solid rgba(0, 229, 255, 0.3);
    border-top: 3px solid var(--shell-cyan);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: shell-spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes shell-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress bars */
.progress-shell {
    background: rgba(26, 31, 60, 0.6);
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

.progress-shell-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--shell-cyan), var(--shell-green));
    border-radius: 6px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-shell-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Modal windows */
.modal-shell {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-shell.active {
    opacity: 1;
    visibility: visible;
}

.modal-shell-content {
    background: rgba(26, 31, 60, 0.95);
    border: 1px solid var(--shell-cyan);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-shell.active .modal-shell-content {
    transform: scale(1);
}

/* Tables */
.table-shell {
    width: 100%;
    border-collapse: collapse;
    background: rgba(26, 31, 60, 0.6);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.table-shell th {
    background: rgba(0, 229, 255, 0.1);
    color: var(--shell-cyan);
    padding: 12px 16px;
    text-align: left;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0, 229, 255, 0.3);
}

.table-shell td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.table-shell tr:hover {
    background: rgba(0, 229, 255, 0.05);
}

.table-shell tr:last-child td {
    border-bottom: none;
}

/* Code blocks */
.code-shell {
    background: rgba(10, 14, 31, 0.9);
    border: 1px solid var(--shell-green);
    border-radius: 6px;
    padding: 16px;
    font-family: 'Courier New', monospace;
    color: var(--shell-green);
    overflow-x: auto;
    position: relative;
}

.code-shell::before {
    content: '$ shell@lost-in-the-shell:~';
    display: block;
    color: var(--shell-cyan);
    margin-bottom: 8px;
    font-size: 0.85rem;
}

/* Tabs */
.tabs-shell {
    display: flex;
    background: rgba(26, 31, 60, 0.4);
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid rgba(0, 229, 255, 0.3);
}

.tab-shell {
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--shell-silver);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-shell.active {
    color: var(--shell-cyan);
    background: rgba(0, 229, 255, 0.1);
    border-bottom: 2px solid var(--shell-cyan);
}

.tab-shell:hover {
    color: var(--shell-cyan);
    background: rgba(0, 229, 255, 0.05);
}

.tab-content {
    background: rgba(26, 31, 60, 0.6);
    padding: 20px;
    border-radius: 0 0 8px 8px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-top: none;
}

/* Badges */
.badge-shell {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Orbitron', monospace;
}

.badge-shell.success {
    background: rgba(0, 255, 65, 0.2);
    color: var(--shell-green);
    border: 1px solid var(--shell-green);
}

.badge-shell.danger {
    background: rgba(255, 20, 147, 0.2);
    color: var(--shell-magenta);
    border: 1px solid var(--shell-magenta);
}

.badge-shell.warning {
    background: rgba(255, 215, 0, 0.2);
    color: var(--shell-gold);
    border: 1px solid var(--shell-gold);
}

.badge-shell.info {
    background: rgba(0, 229, 255, 0.2);
    color: var(--shell-cyan);
    border: 1px solid var(--shell-cyan);
}

/* Tooltips */
.tooltip-shell {
    position: relative;
    cursor: help;
}

.tooltip-shell::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 14, 31, 0.95);
    color: var(--shell-cyan);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--shell-cyan);
    z-index: 1000;
}

.tooltip-shell:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Dividers */
.divider-shell {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--shell-cyan), transparent);
    margin: 2rem 0;
    position: relative;
}

.divider-shell::after {
    content: '◆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--shell-black);
    color: var(--shell-cyan);
    padding: 0 10px;
    font-size: 0.8rem;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 31, 60, 0.4);
}

::-webkit-scrollbar-thumb {
    background: var(--shell-cyan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--shell-purple);
}

/* Selection */
::selection {
    background: rgba(0, 229, 255, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(0, 229, 255, 0.3);
    color: #ffffff;
}
