/* MD5 Decrypt Tool Styles */

/* Tool Container - Full Page Layout */
.md5-decrypt-tool {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 0;
    margin: 0;
}

.tool-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Tool Header */
.tool-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.tool-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.tool-header h1 i {
    color: #059669;
    font-size: 2.2rem;
}

.tool-description {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Decrypt Interface */
.decrypt-interface {
    margin-bottom: 2rem;
}

.decrypt-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid #e5e7eb;
}

/* Input Section */
.input-section {
    margin-bottom: 0;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hash-input-group {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.hash-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
    transition: all 0.2s ease-in-out;
    font-family: 'Courier New', monospace;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hash-input:focus {
    outline: none;
    border-color: #059669;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.hash-input::placeholder {
    font-family: system-ui, -apple-system, sans-serif;
    letter-spacing: normal;
}

.paste-btn {
    position: absolute;
    right: 0.75rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.paste-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.paste-btn:active {
    transform: translateY(0);
}

/* Validation Info */
.validation-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.validation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.validation-item:last-child {
    margin-bottom: 0;
}

.validation-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.validation-status {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 500;
}

.validation-status.valid {
    color: #059669;
}

.validation-status.invalid {
    color: #dc2626;
}

.validation-status.neutral {
    color: #6b7280;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    margin-top: 1.5rem;
}

.decrypt-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.decrypt-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.decrypt-btn:active:not(:disabled) {
    transform: translateY(0);
}

.decrypt-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: #9ca3af;
}



/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 12px;
    border: 1px solid #93c5fd;
    margin-bottom: 2rem;
}

.spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 4px solid #bfdbfe;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    color: #1d4ed8;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.loading-indicator small {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Results Section */
.results-section {
    margin-bottom: 2rem;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.success-result {
    border-left: 4px solid #059669;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

.failure-result {
    border-left: 4px solid #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fef7f7 100%);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.result-header i {
    font-size: 1.5rem;
}

.success-result .result-header i {
    color: #059669;
}

.failure-result .result-header i {
    color: #dc2626;
}

.result-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.result-content {
    margin-top: 1rem;
}

.result-item {
    margin-bottom: 1rem;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-value-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-value {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #f9fafb;
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: #1f2937;
}

.copy-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.failure-message {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.failure-reasons {
    color: #6b7280;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.failure-reasons li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Info Section */
.info-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-title i {
    color: #3b82f6;
}

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

.info-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.info-card:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-icon {
    margin-bottom: 1rem;
}

.info-icon i {
    font-size: 2rem;
    color: #3b82f6;
}

.info-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.info-text {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Examples Section */
.examples-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.examples-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.examples-title i {
    color: #f59e0b;
}

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

.example-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

.example-item:hover {
    background: #dbeafe;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.example-hash {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    word-break: break-all;
    line-height: 1.4;
}

.example-hint {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Messages */
.message {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.success-message {
    border-left: 4px solid #059669;
    color: #047857;
}

.success-message i {
    color: #059669;
}

.error-message {
    border-left: 4px solid #dc2626;
    color: #b91c1c;
}

.error-message i {
    color: #dc2626;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .tool-container {
        padding: 1rem;
    }

    .tool-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .tool-header h1 i {
        font-size: 1.8rem;
    }

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

    .decrypt-card {
        padding: 1.5rem;
    }



    .hash-input {
        font-size: 1rem;
        padding: 1.25rem 4rem 1.25rem 0.875rem;
        min-height: 55px;
    }

    .paste-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        right: 0.5rem;
    }

    .result-value-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
    }

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

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

    .example-hash {
        font-size: 0.75rem;
    }

    .message {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    .validation-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .related-tools-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .related-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .related-tool-link {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
        flex-direction: column;
        gap: 4px;
    }

    .related-tool-link i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .tool-header h1 {
        font-size: 1.75rem;
    }

    .decrypt-card {
        padding: 1rem;
    }

    .hash-input {
        font-size: 0.95rem;
        min-height: 50px;
        padding: 1rem 3.5rem 1rem 0.875rem;
    }

    .paste-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
        right: 0.4rem;
    }

    .example-hash {
        font-size: 0.7rem;
    }

    .info-card {
        padding: 1rem;
    }

    .result-card {
        padding: 1.5rem;
    }

    .related-tools-section {
        padding: 1rem;
    }

    .related-tools-grid {
        grid-template-columns: 1fr;
    }

    .related-tool-link {
        flex-direction: row;
        gap: 8px;
        justify-content: flex-start;
        text-align: left;
    }
}

/* Related Tools Section */
.related-tools-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.related-tools-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.related-tools-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.related-tools-header h3 i {
    color: #059669;
}

.related-tools-header p {
    color: #6b7280;
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
}

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

.related-tool-link {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #059669;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border: 1px solid #e5e7eb;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.related-tool-link:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.related-tool-link i {
    font-size: 0.875rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.font-bold {
    font-weight: 700;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.pb-2 {
    padding-bottom: 0.5rem;
}

.border-b {
    border-bottom: 1px solid #e5e7eb;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.max-w-5xl {
    max-width: 64rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.text-gray-800 {
    color: #1f2937;
}

.w-full {
    width: 100%;
}

.list-disc {
    list-style-type: disc;
}

.pl-5 {
    padding-left: 1.25rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-6 {
    gap: 1.5rem;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.p-4 {
    padding: 1rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.text-sm {
    font-size: 0.875rem;
}

.border {
    border: 1px solid #e5e7eb;
}

.overflow-hidden {
    overflow: hidden;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.transition-colors {
    transition: background-color 0.15s ease-in-out;
}

.border-t {
    border-top: 1px solid #e5e7eb;
}

.bg-yellow-50 {
    background-color: #fefce8;
}

.border-yellow-200 {
    border-color: #fde047;
}

.text-yellow-600 {
    color: #ca8a04;
}

.text-yellow-800 {
    color: #92400e;
}

.text-yellow-700 {
    color: #a16207;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.text-left {
    text-align: left;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.font-semibold {
    font-weight: 600;
}

.items-start {
    align-items: flex-start;
}

.flex {
    display: flex;
}

/* Responsive Grid for Medium Screens */
@media (min-width: 768px) {
    .md\\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* FAQ and Collapsible Section Styles */
.space-y-4 > * + * {
    margin-top: 1rem;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.overflow-hidden {
    overflow: hidden;
}

.font-semibold {
    font-weight: 600;
}

.w-full {
    width: 100%;
}

.text-left {
    text-align: left;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.hover\\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.transition-colors {
    transition-property: background-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.border-t {
    border-top-width: 1px;
    border-color: #e5e7eb;
}
