/* Gradient Generator Styles */
.gradient-generator-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 100px;
    padding: 0;
}

@media (max-width: 768px) {
    .gradient-generator-wrapper {
        margin-bottom: 50px;
    }
}

.gradient-generator-card {
    flex: 1;
    background: #2a2a2a;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid #404040;
}

.gradient-generator-card-header {
    background: #3a3a3a;
    color: white;
    padding: 20px;
    font-weight: 600;
    font-size: 18px;
}

.gradient-generator-card-content {
    padding: 20px;
}

.gradient-generator-result-card {
    flex: 1;
    background: #2a2a2a;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid #404040;
}

.gradient-generator-result-content {
    padding: 20px;
}

.color-panel {
    margin-bottom: 20px;
}

.color-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.color-stop {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #3a3a3a;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #ddd;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-color: #ff0000;
    transition: all 0.3s ease;
    z-index: 1;
}

.color-swatch {
    position: relative;
    width: 40px;
    height: 40px;
}

.color-preview:hover {
    border-color: #6E00FF;
    transform: scale(1.05);
}

.color-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8"><rect width="4" height="4" fill="%23fff"/><rect x="4" y="4" width="4" height="4" fill="%23fff"/><rect x="4" y="0" width="4" height="4" fill="%23ddd"/><rect x="0" y="4" width="4" height="4" fill="%23ddd"/></svg>');
    z-index: 1;
}

.color-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: inherit;
    z-index: 2;
}

.color-picker {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    background: none;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.color-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #555;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: #1a1a1a;
    color: #fff;
}

@media (max-width: 1250px) {
    .color-input {
        width: 100%;
        max-width: 150px;
    }
}



.color-picker-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.color-input:focus {
    outline: none;
    border-color: #6E00FF;
    box-shadow: 0 0 0 2px rgba(110, 0, 255, 0.1);
}

.color-input.invalid {
    border-color: #ff4757;
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.1);
}

.position-input {
    width: 70px;
    padding: 8px;
    border: 1px solid #555;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    background: #1a1a1a;
    color: #fff;
    user-select: all;
    -webkit-user-select: all;
    -moz-user-select: all;
    -ms-user-select: all;
}

.position-input:focus {
    outline: none;
    border-color: #6E00FF;
    box-shadow: 0 0 0 2px rgba(110, 0, 255, 0.1);
    user-select: all;
    -webkit-user-select: all;
    -moz-user-select: all;
    -ms-user-select: all;
}

.opacity-input {
    width: 70px;
    padding: 8px;
    border: 1px solid #555;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    background: #1a1a1a;
    color: #fff;
}

.input-with-suffix {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.input-with-suffix input {
    padding-right: 18px;
}

.input-with-suffix.suffix-percent::after {
    content: '%';
    position: absolute;
    right: 8px;
    color: #aaa;
    font-size: 12px;
}

.opacity-input:focus {
    outline: none;
    border-color: #6E00FF;
    box-shadow: 0 0 0 2px rgba(110, 0, 255, 0.1);
}

.remove-color {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.remove-color:hover {
    background: #ff3742;
}

.add-color-btn {
    background: #6E00FF;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-content: center;
}

.add-color-btn:hover {
    background: #5a00d9;
}

/* Gradient Type Controls */
.gradient-type-controls {
    margin-bottom: 20px;
}

.gradient-type-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.gradient-type-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #555;
    background: #3a3a3a;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #fff;
}

.gradient-type-btn.active {
    border-color: #6E00FF;
    background: #6E00FF;
    color: white !important;
}

.gradient-type-btn.active i {
    color: white !important;
}

.gradient-type-btn:hover:not(.active) {
    background: #212121;
}

/* Linear Gradient Controls */
.linear-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.angle-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.angle-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.angle-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6E00FF;
    cursor: pointer;
}
.angle-slider {
    touch-action: pan-y;
}

.angle-display {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #555;
}

.angle-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6E00FF;
    cursor: pointer;
    border: none;
}

.angle-display {
    width: 60px;
    padding: 8px;
    border: 1px solid #555;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    color: white;
}

.radial-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radial-shape-controls {
    display: flex;
    gap: 10px;
}

.radial-shape-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid #555;
    background: #3a3a3a;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #fff;
}

.radial-shape-btn.active {
    border-color: #6E00FF;
    background: #6E00FF;
    color: white !important;
}

.radial-size-controls {
    display: flex;
    gap: 10px;
}

.radial-size-btn {
    flex: 1;
    padding: 8px;
    border: 2px solid #555;
    background: #3a3a3a;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    color: #fff;
}

.radial-size-btn.active {
    border-color: #6E00FF;
    background: #6E00FF;
    color: white !important;
}

.gradient-preview-container {
    position: relative;
}

.gradient-preview {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    border: 2px solid #555;
    position: relative;
    overflow: hidden;
    cursor: crosshair;
    background: linear-gradient(135deg, #ff0000 0%, #0000ff 100%);
    transition: border-color 0.2s ease;
    will-change: background;
}

.fullscreen-preview-btn {
    position: absolute;
    top: 10px;
    right: 60px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.fullscreen-preview-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.download-preview-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    border: none;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.download-preview-btn:hover {
    background: rgba(40, 167, 69, 1);
    transform: scale(1.1);
}

.gradient-preview.dragging {
    cursor: grabbing;
    border-color: #6E00FF;
    box-shadow: 0 0 0 2px rgba(110, 0, 255, 0.1);
}

.preview-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid #6E00FF;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
    will-change: transform;
}

.preview-handle:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.preview-handle.dragging {
    cursor: grabbing;
    transition: none;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(110, 0, 255, 0.4);
}

.linear-handle {
    top: 50%;
    left: 50%;
}

.radial-center-handle {
    top: 30%;
    left: 30%;
    background: white;
    border: 3px solid #6E00FF;
}

.css-code-container {
    margin-top: 20px;
}

.css-code-output {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid #555;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: #1a1a1a;
    color: #fff;
    resize: vertical;
    outline: none;
}

.copy-css-btn {
    background: #6E00FF;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
    width: 100%;
}

.copy-css-btn:hover {
    background: #5a00d9;
}

.copy-css-btn.copied {
    background: #27ae60;
}

.preset-gradients {
    margin-bottom: 20px;
}

.preset-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.preset-gradient {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    border: 2px solid #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-gradient:hover {
    transform: scale(1.05);
}

.random-gradient-btn {
    background: #ededed;
    color: black;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
    transition: 0.3s;
}

.random-gradient-btn:hover {
    background: #c4c4c4;
}

@media (max-width: 1250px) {
    .gradient-generator-wrapper {
        gap: 16px;
    }

    .gradient-generator-card-content,
    .gradient-generator-result-content {
        padding: 16px;
    }

    .gradient-preview {
        height: 260px;
    }

    .gradient-type-btn {
        padding: 6px;
    }

    .radial-shape-btn {
        padding: 6px;
    }
}

@media (max-width: 992px) {
    .gradient-generator-wrapper {
        flex-direction: column;
    }

    .gradient-preview {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .gradient-preview {
        height: 220px;
    }
}

@media (max-width: 550px) {
    .gradient-generator-wrapper {
        flex-direction: column;
    }

    .gradient-generator-card,
    .gradient-generator-result-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .gradient-preview {
        height: 200px;
    }

    .color-controls {
        gap: 10px;
    }

    .color-stop {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .gradient-type-buttons {
        flex-direction: column;
    }

    .radial-shape-controls,
    .radial-size-controls {
        flex-direction: column;
    }
}

.color-stop,
.gradient-preview,
.preview-handle {
    transition: all 0.3s ease;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #6E00FF;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

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

.gradient-generator-divider {
    border: none;
    border-top: 1px solid #555;
    margin: 20px 0;
}

.fullscreen-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.fullscreen-preview-content {
    position: relative;
    width: 80%;
    height: 80%;
    max-width: 1500px;
    max-height: 700px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.fullscreen-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 10;
}

.fullscreen-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.fullscreen-gradient-preview {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff0000 0%, #0000ff 100%);
}



.password-generator-faq-container {
    width: 100%;
    margin: 0 auto;
    border-radius: 8px;
}

.password-generator-faq-item {
    margin-bottom: 8px;
}

.password-generator-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 24px 0;
    font-size: 18px;
    color: #100025;
    font-weight: 500;
    line-height: 28px;
    font-family: 'Inter', sans-serif;
}

.password-generator-faq-answer {
    display: none;
    font-size: 16px;
    font-weight: 400;
    color: #6E7D88;
    line-height: 24px;
}

.password-generator-faq-answer li {
    list-style-type: unset !important;
}
.password-generator-faq-answer ul {
    margin-left: 20px !important;
}

.password-generator-faq-answer ol {
    margin-left: 20px !important;
}

.password-generator-divider {
    border: 0;
    border-top: 0.1px solid #EEE;
    margin: 0;
}

.tool-password-generator-content-page {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
}

.tool-password-generator-content-page ul li {
    list-style-type: initial;
    margin-left: 15px;
}

.tool-password-generator-content-page ol li {
    list-style-type: initial;
    margin-left: 15px;
}


/* Export Modal Styles */
.export-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.export-modal-content {
    background: #2a2a2a;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #404040;
}

.export-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #404040;
}

.export-modal-header h3 {
    color: white;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.export-close-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.export-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.export-modal-body {
    padding: 24px;
}

.export-preview {
    margin-bottom: 24px;
}

.export-gradient-preview {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    border: 2px solid #555;
    background: linear-gradient(135deg, #ff0000 0%, #0000ff 100%);
}

.export-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.export-option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.export-option-group label {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.export-size-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.export-size-btn {
    padding: 12px;
    border: 2px solid #555;
    background: #3a3a3a;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #fff;
    text-align: center;
}

.export-size-btn.active {
    border-color: #6E00FF;
    background: #6E00FF;
    color: white !important;
}

.export-size-btn:hover:not(.active) {
    background: #4a4a4a;
}

.custom-size {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.custom-size-input {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.custom-size-input label {
    color: #ccc;
    font-size: 12px;
    font-weight: 500;
}

.custom-size input {
    padding: 10px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #1a1a1a;
    color: white;
    text-align: center;
}

.custom-size input:focus {
    outline: none;
    border-color: #6E00FF;
    box-shadow: 0 0 0 2px rgba(110, 0, 255, 0.1);
}

.custom-size span {
    color: #999;
    font-weight: bold;
    margin: 0 5px;
}

.export-format-buttons {
    display: flex;
    gap: 10px;
}

.export-format-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #555;
    background: #3a3a3a;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #fff;
    text-align: center;
}

.export-format-btn.active {
    border-color: #6E00FF;
    background: #6E00FF;
    color: white !important;
}

.export-format-btn:hover:not(.active) {
    background: #4a4a4a;
}

.export-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #404040;
    justify-content: flex-end;
}

.export-cancel-btn {
    padding: 10px 20px;
    border: 1px solid #555;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: #999;
    font-weight: 500;
    transition: all 0.3s ease;
}

.export-cancel-btn:hover {
    background: #3a3a3a;
    color: white;
}

.export-download-btn {
    padding: 10px 20px;
    background: #28a745;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    font-weight: 600;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.export-download-btn:hover {
    background: #218838;
}

/* Responsive Design for Export Modal */
@media (max-width: 768px) {
    .export-modal-content {
        width: 95%;
        margin: 10px;
    }

    .export-size-buttons {
        grid-template-columns: 1fr;
    }

    .export-format-buttons {
        flex-direction: column;
    }

    .custom-size {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .custom-size span {
        text-align: center;
        margin: 4px 0;
    }

    .export-modal-footer {
        flex-direction: column;
    }
}