/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles - Matching Nafezly */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e9ecef;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 35px;
    width: auto;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 20px;
    min-width: 600px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 9999;
}

.nav.show {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.nav-section h3 {
    color: #495057;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-section ul {
    list-style: none;
}

.nav-section li {
    margin-bottom: 0.3rem;
}

.nav-section a {
    text-decoration: none;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.nav-section a:hover,
.nav-section a.active {
    background-color: #f8f9fa;
    color: #007bff;
}

.nav-section i {
    font-size: 0.8rem;
    width: 16px;
}

.lang-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.lang-btn:hover {
    background: #e9ecef;
}

.menu-btn {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.menu-btn:hover {
    background: #e9ecef;
}

/* Main Content */
.main {
    padding: 1.5rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 0.7rem;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.2rem;
    color: #212529;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.hero-description {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* MD5 Generator Section */
.md5-section {
    margin-bottom: 2.5rem;
}

.md5-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

/* Mode Selector */
.mode-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #dee2e6;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.mode-btn:hover {
    border-color: #fd7e14;
    color: #fd7e14;
}

.mode-btn.active {
    background: #fd7e14;
    color: white;
    border-color: #fd7e14;
}

/* Input Modes */
.input-mode {
    margin-bottom: 2rem;
}

/* Text Mode */
.input-section {
    margin-bottom: 1.5rem;
}

.input-wrapper {
    margin-bottom: 1.5rem;
}

.input-wrapper label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.input-group {
    position: relative;
}

#textInput, #bulkInput {
    width: 100%;
    padding: 1rem;
    padding-left: 60px; /* Make room for action buttons */
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.4;
    transition: all 0.2s ease;
    background: #fff;
    resize: vertical;
    min-height: 100px;
    font-family: 'Cairo', sans-serif;
}

#textInput:focus, #bulkInput:focus {
    outline: none;
    border-color: #fd7e14;
    box-shadow: 0 0 0 3px rgba(253, 126, 20, 0.1);
}

.input-actions {
    position: absolute;
    left: 8px;
    top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn-action {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.btn-action:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #fd7e14;
}

.input-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.char-count, .lines-count {
    font-family: monospace;
}

.security-level {
    font-weight: 500;
}

.security-weak { color: #dc3545; }
.security-medium { color: #ffc107; }
.security-strong { color: #28a745; }

/* Action Button */
.action-wrapper {
    text-align: center;
    margin-bottom: 1.5rem;
}

.btn-generate {
    background: linear-gradient(135deg, #fd7e14, #e8590c);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 180px;
    justify-content: center;
}

.btn-generate:hover:not(:disabled) {
    background: linear-gradient(135deg, #e8590c, #dc3545);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(253, 126, 20, 0.3);
}

.btn-generate:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* File Upload Section */
.file-upload-section {
    margin-bottom: 2rem;
}

.file-drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 3rem 1rem;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.2s ease;
    cursor: pointer;
}

.file-drop-zone.drag-over {
    border-color: #fd7e14;
    background: rgba(253, 126, 20, 0.05);
}

.drop-zone-content i {
    font-size: 3rem;
    color: #fd7e14;
    margin-bottom: 1rem;
}

.drop-zone-content h3 {
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.drop-zone-content p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

#fileInput {
    display: none;
}

.btn-browse {
    background: #fd7e14;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-browse:hover {
    background: #e8590c;
}

/* File List */
.file-list {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #f1f3f4;
}

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

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: #fd7e14;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.file-details h4 {
    color: #495057;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.file-details p {
    color: #6c757d;
    font-size: 0.8rem;
    margin: 0;
}

.file-status {
    color: #28a745;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Bulk Mode */
.bulk-section {
    margin-bottom: 2rem;
}

.bulk-input-wrapper {
    margin-bottom: 1.5rem;
}

.bulk-input-wrapper label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.bulk-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.8rem;
    font-size: 0.85rem;
}

.btn-load-sample {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-load-sample:hover {
    background: #138496;
}

.bulk-action {
    text-align: center;
}

.btn-bulk-generate {
    background: #28a745;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-bulk-generate:hover {
    background: #1e7e34;
}

/* Output Section */
.output-section {
    margin-bottom: 2rem;
}

.output-wrapper label {
    display: block;
    font-weight: 600;
    color: #fd7e14;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.output-group {
    position: relative;
    margin-bottom: 1rem;
}

#md5Output {
    width: 100%;
    padding: 1rem;
    padding-left: 80px;
    border: 2px solid #fd7e14;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff8f3;
    font-family: 'Courier New', monospace;
    color: #495057;
    font-weight: 600;
    letter-spacing: 1px;
}

#md5Output:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(253, 126, 20, 0.1);
}

.output-actions {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
}

.btn-copy {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-copy:hover {
    background: #1e7e34;
    border-color: #1e7e34;
}

.btn-qr {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.btn-qr:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.btn-verify {
    background: #6f42c1;
    border-color: #6f42c1;
    color: white;
}

.btn-verify:hover {
    background: #5a32a3;
    border-color: #5a32a3;
}

.output-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #fd7e14;
}

.hash-length, .hash-strength {
    font-family: monospace;
}

/* Hash Details */
.hash-details {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.hash-details h4 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.detail-label {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
}

.detail-value {
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

/* Multiple Results */
.multiple-results {
    margin-bottom: 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.results-header h4 {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.results-actions {
    display: flex;
    gap: 0.5rem;
}

.results-actions .btn-action {
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    width: auto;
    height: auto;
}

.results-actions .btn-action:hover {
    background: #1e7e34;
}

.results-list {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.result-item {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f1f3f4;
    align-items: center;
}

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

.result-source {
    font-weight: 500;
    color: #495057;
    word-break: break-word;
}

.result-hash {
    font-family: 'Courier New', monospace;
    color: #fd7e14;
    font-size: 0.85rem;
    word-break: break-all;
    background: #fff8f3;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #fdd5a8;
}

.result-actions {
    display: flex;
    gap: 4px;
}

.result-actions .btn-action {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
}

/* Examples Section */
.examples-section {
    margin-bottom: 2rem;
}

.examples-section h3 {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.btn-example {
    background: white;
    color: #6c757d;
    border: 2px solid #dee2e6;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
    min-height: 80px;
    justify-content: center;
}

.btn-example:hover {
    border-color: #fd7e14;
    color: #fd7e14;
    background: #fff8f3;
    transform: translateY(-2px);
}

.btn-example i {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.btn-example span {
    font-weight: 500;
    line-height: 1.3;
}

/* Advanced Options */
.advanced-options {
    margin-bottom: 2rem;
    border-top: 1px solid #dee2e6;
    padding-top: 1.5rem;
}

.advanced-options h3 {
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.option-checkbox {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    border: 1px solid #e9ecef;
}

.option-checkbox:hover {
    background-color: #f8f9fa;
    border-color: #fd7e14;
}

.option-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.option-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #fd7e14;
    border-color: #fd7e14;
}

.option-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.option-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Salt Input */
.salt-input {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    margin-top: 1rem;
}

.salt-input label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.salt-input input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
}

.salt-input input:focus {
    outline: none;
    border-color: #fd7e14;
    box-shadow: 0 0 0 2px rgba(253, 126, 20, 0.1);
}

/* Info Section - Two Column Layout */
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-section .info-card,
.about-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

.info-section .info-card h2,
.about-card h2 {
    color: #495057;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-section .info-card i {
    color: #fd7e14;
}

.info-section .info-card p,
.about-card p {
    color: #6c757d;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* MD5 Guide */
.md5-guide {
    margin-bottom: 2.5rem;
}

.md5-guide h2 {
    text-align: center;
    color: #495057;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.guide-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.guide-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #fd7e14;
}

.guide-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.guide-header i {
    font-size: 2rem;
    color: #fd7e14;
}

.guide-header h3 {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.guide-card p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Popular Tools */
.popular-tools {
    margin-bottom: 2rem;
}

.popular-tools h2 {
    text-align: center;
    color: #495057;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.tool-card {
    background: white;
    padding: 1.2rem;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

.tool-card:hover,
.tool-card.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #fd7e14;
}

.tool-card i {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: #fd7e14;
}

.tool-card span {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    margin-bottom: 0.8rem;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
}

.footer-logo {
    height: 35px;
    margin-bottom: 0.8rem;
}

.footer-section p {
    color: #6c757d;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: #e9ecef;
    border-radius: 6px;
    text-align: center;
    line-height: 35px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: #fd7e14;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.4rem;
}

.footer-section ul a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-section ul a:hover {
    color: #fd7e14;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 0.85rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.modal-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.1rem;
}

.modal-close {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e9ecef;
    color: #495057;
}

.modal-body {
    padding: 1.5rem;
    text-align: center;
}

.qr-container {
    margin-bottom: 1rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #f8f9fa;
}

.btn-download-qr {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-download-qr:hover {
    background: #0056b3;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

/* Copy success animation */
@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.btn-copy.copied {
    animation: copySuccess 0.3s ease;
    background: #28a745 !important;
}

/* Progress bar for file processing */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: #fd7e14;
    transition: width 0.3s ease;
    width: 0%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        min-width: 280px;
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .md5-card {
        padding: 1.2rem;
    }

    .mode-selector {
        flex-direction: column;
        align-items: center;
    }

    .mode-btn {
        min-width: 200px;
    }

    #textInput, #bulkInput, #md5Output {
        padding-left: 15px;
        font-size: 0.9rem;
    }

    .input-actions,
    .output-actions {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: 0.8rem;
    }

    .examples-grid {
        grid-template-columns: 1fr 1fr;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .result-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }

    .info-section {
        grid-template-columns: 1fr;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .md5-card {
        padding: 1rem;
    }

    .btn-generate {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        min-width: 150px;
    }

    .examples-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .btn-example {
        padding: 0.8rem;
        min-height: 70px;
    }

    .btn-example i {
        font-size: 1.2rem;
    }

    .guide-grid {
        gap: 1rem;
    }

    .file-drop-zone {
        padding: 2rem 1rem;
    }

    .drop-zone-content i {
        font-size: 2rem;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

/* Additional utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: #6c757d; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }