/**
 * Custom Styles for WM-Toolbox (Webmücke)
 * Incorporating brand colours:
 * - Blue: #139CD9
 * - Green: #7AB925
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #080c1a;
    --bg-dark-card: #101830;
    --bg-dark-hover: #162244;

    --brand-blue: #139CD9;
    --brand-green: #7AB925;

    --text-white: #ffffff;
    --text-muted: #cbd5e1;
    --text-dark: #2c3e50;
    --text-black: #111111;

    --border-color: #1e293b;
    --border-color-glow: #1e3a61;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Custom Typography & Selections */
::selection {
    background-color: var(--brand-blue);
    color: #fff;
}

/* Navigation / Header styling */
.navbar {
    background-color: var(--bg-dark-card) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 22px;
}

.navbar-brand .logo-text-blue {
    color: var(--brand-blue);
}

.navbar-brand .logo-text-green {
    color: var(--brand-green);
}

.navbar-logo-img {
    height: 35px;
    margin-right: 10px;
}

/* Cards & Glassmorphism */
.custom-card {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.custom-card:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 15px 35px rgba(19, 156, 217, 0.15);
}

/* Tool selection tiles */
.tool-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.tool-tile .tile-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(19, 156, 217, 0.1), rgba(122, 185, 37, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--brand-blue);
    font-size: 24px;
    transition: all 0.3s ease;
    border: 1px solid rgba(19, 156, 217, 0.2);
}

.tool-tile:hover .tile-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
    color: #fff;
    border-color: transparent;
}

.tool-tile h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
    transition: color 0.3s;
}

.tool-tile:hover h3 {
    color: var(--brand-blue);
}

.tool-tile p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tool-tile .tile-action {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-green);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.tool-tile:hover .tile-action {
    color: #fff;
    transform: translateX(5px);
}

/* Form Styling overrides for Dark Mode */
.form-label {
    font-weight: 500;
    color: #ffffff;
    font-size: 14px;
}

.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(19, 156, 217, 0.15);
    color: #fff;
}

.form-select option {
    background-color: #101830;
    /* var(--bg-dark-card) */
    color: #ffffff;
}

.form-select option:hover,
.form-select option:focus,
.form-select option:active {
    background-color: var(--brand-blue) !important;
    color: #ffffff !important;
}

/* Buttons with Brand Accents */
.btn-brand-primary {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #0d7cb1 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-brand-primary:hover {
    box-shadow: 0 5px 15px rgba(19, 156, 217, 0.4);
    transform: translateY(-1px);
    color: #fff;
}

.btn-brand-secondary {
    background: linear-gradient(135deg, var(--brand-green) 0%, #5d9319 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-brand-secondary:hover {
    box-shadow: 0 5px 15px rgba(122, 185, 37, 0.4);
    transform: translateY(-1px);
    color: #fff;
}

.btn-outline-brand {
    border: 1px solid var(--brand-blue);
    color: var(--brand-blue);
    font-weight: 600;
    background: transparent;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-outline-brand:hover {
    background-color: var(--brand-blue);
    color: #fff;
    box-shadow: 0 5px 15px rgba(19, 156, 217, 0.2);
}

/* Code Output / Copy Section */
.code-output-container {
    background-color: #0b0f19;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: relative;
}

.code-output {
    font-family: 'Courier New', Courier, monospace;
    color: var(--brand-green);
    padding: 20px;
    margin: 0;
    overflow-x: auto;
    font-size: 13px;
    white-space: pre-wrap;
}

.btn-copy-code {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-copy-code:hover {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
}

/* Live Previews styling */
.preview-card {
    background-color: #1e293b;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.preview-header {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.preview-body {
    padding: 20px;
}

/* Back Link buttons */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 25px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--brand-green);
}

/* Custom Alert Messages */
.alert-custom-info {
    background-color: rgba(19, 156, 217, 0.1);
    border: 1px solid rgba(19, 156, 217, 0.2);
    color: #8be0ff;
}

.alert-custom-success {
    background-color: rgba(122, 185, 37, 0.1);
    border: 1px solid rgba(122, 185, 37, 0.2);
    color: #a4f54e;
}

.alert-custom-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ff9b9b;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Custom Drag and Drop style for upload */
.dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.01);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.dropzone:hover {
    border-color: var(--brand-blue);
    background-color: rgba(19, 156, 217, 0.02);
}

.dropzone-icon {
    font-size: 40px;
    color: var(--brand-blue);
    margin-bottom: 15px;
}