/* ==================================
   ankushbansal.in - Tools Styles
   Dark Tactical Theme for Utilities
   ================================== */

/* Tool Layout */
.tool-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.tool-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(102, 187, 106, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Main Tool Container - Dark Theme */
.tool-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-lg);
    background: rgba(13, 26, 13, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 187, 106, 0.2);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
    .tool-container {
        grid-template-columns: 1fr;
    }
}

/* Tool Form Card - Dark */
.tool-card {
    background: rgba(0, 20, 0, 0.8);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    border: 1px solid rgba(102, 187, 106, 0.2);
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-group label {
    display: flex;
    justify-content: space-between;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.input-hint {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.8rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
}

/* Tool Input - Dark Theme */
.tool-input {
    width: 100%;
    background: rgba(0, 15, 0, 0.9);
    border: 1px solid rgba(102, 187, 106, 0.3);
    border-radius: 4px;
    padding: 0.875rem 1rem;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    transition: all 0.2s ease;
}

.tool-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 25, 0, 0.9);
    box-shadow: 0 0 0 3px rgba(102, 187, 106, 0.2);
}

.tool-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.required-mark {
    color: var(--accent-color);
    margin-left: 2px;
}

/* Generic Tool Panel - Dark */
.tool-panel {
    background: rgba(0, 20, 0, 0.9);
    border: 1px solid rgba(102, 187, 106, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tool-panel:hover {
    border-color: rgba(102, 187, 106, 0.4);
    box-shadow: 0 6px 30px rgba(102, 187, 106, 0.1);
}

.tool-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(102, 187, 106, 0.2);
}

.tool-panel-title {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Result Box - Dark Tactical */
.result-box {
    position: sticky;
    top: 6rem;
}

.result-card {
    background: linear-gradient(135deg, rgba(0, 30, 0, 0.95) 0%, rgba(0, 20, 0, 0.95) 100%);
    border: 1px solid rgba(102, 187, 106, 0.3);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    color: white;
}

.preview-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: block;
    font-weight: 700;
}

.url-preview {
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem;
    border-radius: 4px;
    color: #66BB6A;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    min-height: 80px;
    margin-bottom: 1.5rem;
    border: 1px dashed rgba(102, 187, 106, 0.3);
}

.copy-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-gradient);
    border: none;
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(102, 187, 106, 0.4);
    padding: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 187, 106, 0.5);
}

.copy-btn:active {
    transform: scale(0.98);
}

/* Presets - Dark Theme */
.presets-area {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(102, 187, 106, 0.2);
}

.preset-chip {
    display: inline-block;
    background: rgba(102, 187, 106, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(102, 187, 106, 0.2);
}

.preset-chip:hover {
    background: rgba(102, 187, 106, 0.2);
    color: #ffffff;
    border-color: rgba(102, 187, 106, 0.4);
}

/* Tools Grid (Index) - Dark Theme */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tool-entry-card {
    background: rgba(13, 26, 13, 0.95);
    border-radius: 4px;
    padding: 2rem;
    border: 1px solid rgba(102, 187, 106, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tool-entry-card:hover {
    transform: translateY(-8px);
    background: rgba(20, 40, 20, 0.95);
    border-color: rgba(102, 187, 106, 0.4);
    box-shadow: 0 10px 40px rgba(102, 187, 106, 0.15);
}

.tool-entry-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(102, 187, 106, 0.3));
}

.tool-entry-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tool-entry-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(102, 187, 106, 0.2);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(102, 187, 106, 0.3);
}

/* Checkbox Styling - Dark */
.tool-card input[type="checkbox"] {
    accent-color: var(--primary-color);
}

.tool-card label {
    color: rgba(255, 255, 255, 0.9);
}

/* Textarea - Dark */
textarea.tool-input {
    min-height: 200px;
    resize: vertical;
}

/* Select Dropdown - Dark */
select.tool-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2366BB6A' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Button Styling */
.tool-btn {
    background: transparent;
    border: 1px solid rgba(102, 187, 106, 0.3);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: monospace;
    transition: all 0.2s;
}

.tool-btn:hover {
    background: rgba(102, 187, 106, 0.1);
    border-color: var(--primary-color);
}

.tool-btn.primary {
    background: var(--primary-gradient);
    color: #000;
    border: none;
    font-weight: bold;
}

.tool-btn.primary:hover {
    box-shadow: 0 0 20px rgba(102, 187, 106, 0.4);
}