
/* Tool Specific Styles for DKIM Generator */

.card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    margin-bottom: 28px;
    transition: box-shadow 0.3s;
}

/* Inputs / Selects */
.card label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-main);
    margin-top: 16px;
}

.card label:first-child {
    margin-top: 0;
}

.card input,
.card select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--text-main);
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.card input:focus,
.card select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.card select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 24px;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

#status {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-weight: 600;
    color: var(--accent);
}

/* Output Areas */
.output-section {
    display: none;
    flex-direction: column;
    gap: 24px;
    animation: fadeUp 0.4s ease-out;
}

.output-block pre {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    padding: 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: monospace;
    min-height: 80px;
    color: var(--text-main);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.output-label-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8px;
}

.output-label-wrap label {
    margin: 0;
}

.btn-copy {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    background: var(--surface);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.btn-copy:hover {
    border-color: var(--success);
    color: var(--success);
}

.btn-copy.copied {
    background: var(--success) !important;
    color: white !important;
    border-color: var(--success) !important;
}

/* Definitions Card */
.definitions-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--card-shadow);
    margin-top: 30px;
}

.definitions-card h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}

.definitions-card .card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 24px;
    line-height: 1.6;
}

.def-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.def-item {
    display: flex;
    gap: 16px;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 20px;
    transition: transform 0.2s ease;
}

body.dark-mode .def-item {
    background: rgba(30, 41, 59, 0.4);
}

.def-item:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.def-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    font-size: 1.5rem;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
}

body.dark-mode .def-badge {
    background: rgba(99, 102, 241, 0.25);
    color: #818cf8;
}

.def-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.def-text strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.def-text span {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .card,
    .definitions-card {
        padding: 20px;
        border-radius: 16px;
    }

    .def-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .def-badge {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}
