/* ============================================
   MD5 GENERATOR - UNIQUE STANDALONE STYLES
   No conflict with main style.css
   ============================================ */

.md5-tool-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.md5-tool-header h1 {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 12px;
}

.md5-tool-header p {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.md5-generator-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.md5-ad-space {
    width: 160px;
    min-width: 160px;
    min-height: 600px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.md5-ad-space i {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: #b0b7c3;
}

.md5-ad-space small {
    font-size: 0.7rem;
    margin-top: 4px;
    color: #b0b7c3;
}

.md5-generator-card {
    flex: 1;
    max-width: 560px;
    min-width: 0;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.md5-input-section {
    margin-bottom: 20px;
}

.md5-input-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
}

.md5-hash-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    line-height: 1.6;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.md5-hash-input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.md5-hash-input::placeholder {
    color: #9ca3af;
}

.md5-char-count {
    text-align: right;
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 8px;
}

.md5-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.md5-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    background: #f8fafc;
    padding: 7px 14px;
    border-radius: 20px;
    transition: all 0.2s;
}

.md5-checkbox-item:hover {
    background: #eef2ff;
}

.md5-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #ef4444;
    cursor: pointer;
}

.md5-clear-btn {
    background: #f3f4f6;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.md5-clear-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.md5-generate-btn {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 16px 24px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 8px 18px -5px rgba(37,99,235,0.25);
}

.md5-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -5px rgba(37,99,235,0.35);
}

.md5-hash-output-section {
    margin-top: 20px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.md5-output-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #374151;
}

.md5-hash-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.md5-hash-text {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    word-break: break-all;
    flex: 1;
    color: #1f2937;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
}

.md5-copy-btn {
    background: #f3f4f6;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.md5-copy-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.md5-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 16px;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
}

.md5-info-box i {
    color: #f59e0b;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.md5-info-box p {
    color: #92400e;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Features Grid */
.md5-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.md5-feature-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.md5-feature-card:hover {
    transform: translateY(-5px);
}

.md5-feature-icon {
    font-size: 32px;
    color: #ef4444;
    margin-bottom: 16px;
}

.md5-feature-card h3 {
    color: #1f2937;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.md5-feature-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Info Block */
.md5-info-block {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background: white;
    border-radius: 16px;
    padding: 35px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.md5-why-text {
    flex: 1;
}

.md5-why-text h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #0f172a;
}

.md5-why-text p {
    font-size: 1rem;
    color: #334155;
    line-height: 1.8;
    margin-bottom: 16px;
}

.md5-why-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f0f4ff, #e8edff);
    border-radius: 14px;
    padding: 30px;
    font-size: 3rem;
    color: #2563eb;
}

.md5-usage-examples {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.md5-usage-examples h3 {
    color: #374151;
    margin-bottom: 12px;
    font-size: 1rem;
}

.md5-usage-examples ul {
    list-style: none;
    padding: 0;
}

.md5-usage-examples ul li {
    color: #4b5563;
    padding: 6px 0;
    font-size: 0.95rem;
}

/* Content Block */
.md5-content-block {
    max-width: 800px;
    margin: 0 auto;
    padding: 35px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.md5-content-block h2 {
    color: #0f172a;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.md5-content-block p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

/* Recent Hashes */
.md5-recent-hashes {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.md5-recent-hashes h2 {
    color: #0f172a;
    margin-bottom: 8px;
}

.md5-recent-subtitle {
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.md5-recent-item {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.md5-recent-item:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.md5-recent-input {
    color: #374151;
    margin-bottom: 6px;
    font-weight: 500;
}

.md5-recent-input:hover {
    color: #ef4444;
}

.md5-recent-hash {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #6b7280;
    word-break: break-all;
}

.md5-recent-time {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 6px;
}

.md5-empty-state {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

.md5-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
}

.md5-empty-state p {
    font-size: 1rem;
}

.md5-clear-recent-btn {
    margin-top: 15px;
    background: #fee2e2;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    color: #dc2626;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.md5-clear-recent-btn:hover {
    background: #fecaca;
}

/* FAQ */
.md5-faq-section {
    max-width: 800px;
    margin: 36px auto;
}

.md5-section-title {
    text-align: center;
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 30px;
    font-weight: 700;
}

.md5-accordion {
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    overflow: hidden;
    background: white;
}

.md5-accordion-item {
    border-bottom: 1px solid #f0f2f5;
}

.md5-accordion-item:last-child {
    border-bottom: none;
}

.md5-accordion-question {
    width: 100%;
    background: white;
    border: none;
    padding: 16px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    color: #0f172a;
}

.md5-accordion-question:hover {
    background: #fafbfc;
}

.md5-accordion-question i {
    font-size: 0.8rem;
    color: #2563eb;
    transition: transform 0.3s;
}

.md5-accordion-item.active .md5-accordion-question i {
    transform: rotate(180deg);
}

.md5-accordion-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.6;
    transition: all 0.3s;
}

.md5-accordion-item.active .md5-accordion-answer {
    max-height: 300px;
    padding: 0 20px 14px;
}

/* CTA */
.md5-cta-section {
    text-align: center;
    padding: 50px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
}

.md5-cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.md5-cta-section p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    line-height: 1.7;
}

.md5-cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #764ba2;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s;
}

.md5-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 1100px) {
    .md5-ad-space { display: none; }
}

@media (max-width: 768px) {
    .md5-tool-header h1 { font-size: 1.8rem; }
    .md5-tool-header p { font-size: 1rem; }
    .md5-generator-wrapper { flex-direction: column; }
    .md5-generator-card { padding: 20px 15px; }
    .md5-features-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .md5-feature-card { padding: 20px 15px; }
    .md5-info-block { flex-direction: column; padding: 25px 20px; }
    .md5-why-illustration { display: none; }
    .md5-why-text h2 { font-size: 1.5rem; }
    .md5-content-block { padding: 25px 20px; }
    .md5-content-block h2 { font-size: 1.5rem; }
    .md5-section-title { font-size: 1.5rem; }
    .md5-cta-section { padding: 30px 20px; }
    .md5-cta-section h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .md5-tool-header h1 { font-size: 1.4rem; }
    .md5-features-grid { grid-template-columns: 1fr; }
    .md5-options-row { flex-direction: column; align-items: flex-start; }
    .md5-clear-btn { width: 100%; justify-content: center; }
    .md5-generate-btn { width: 100%; padding: 12px 20px; font-size: 1rem; }
    .md5-hash-display { flex-direction: column; align-items: stretch; }
    .md5-hash-text { font-size: 14px; text-align: center; }
    .md5-copy-btn { align-self: center; }
    .md5-recent-hashes { padding: 20px 15px; }
    .md5-recent-hash { font-size: 12px; }
    .md5-empty-state { padding: 25px 15px; }
    .md5-empty-state i { font-size: 36px; }
    .md5-clear-recent-btn { width: 100%; justify-content: center; }
    .md5-section-title { font-size: 1.3rem; }
    .md5-cta-section { padding: 25px 18px; border-radius: 12px; }
    .md5-cta-section h2 { font-size: 1.3rem; }
    .md5-cta-btn { width: 100%; text-align: center; }
    .md5-hash-input { padding: 12px; font-size: 15px; }
    .md5-info-block { padding: 20px 15px; }
    .md5-content-block { padding: 20px 15px; }
    .md5-accordion-question { padding: 15px; font-size: 0.95rem; }
}