/* Drive Direct Link Generator Premium Styles - Scoped to .tool-container */

.tool-container {
    width: 100%;
}

/* Premium Card Refinements */
.tool-container .premium-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.tool-container .premium-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.tool-container .card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.tool-container .card-title svg {
    color: #4285f4;
    /* Google Blue */
}

/* Result Cards */
.tool-container .result-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.tool-container .result-card:hover {
    background: #ffffff;
    border-color: #4285f4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.08);
}

.tool-container .file-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.tool-container .file-name svg {
    color: #4285f4;
}

.tool-container .original-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 1rem;
}

/* Input/Action Groups in Results */
.tool-container .result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tool-container .result-input-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    gap: 8px;
}

.tool-container .result-input-group input {
    flex: 1;
    padding: 0 1rem;
    height: 48px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

/* Buttons */
.tool-container .premium-card .btn,
.tool-container .button-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
    gap: 8px;
}

.tool-container .btn-primary {
    background: #4285f4;
    color: white;
}

.tool-container .btn-primary:hover {
    background: #3367d6;
    transform: translateY(-2px);
}

.tool-container .btn-secondary {
    background: #34a853;
    color: white;
}

.tool-container .btn-secondary:hover {
    background: #2d8e47;
    transform: translateY(-2px);
}

.tool-container .btn-outline {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #64748b;
}

.tool-container .btn-outline:hover {
    border-color: #4285f4;
    color: #4285f4;
    background: rgba(66, 133, 244, 0.05);
}

/* Form Styling */
.tool-container textarea {
    width: 100%;
    height: 180px;
    padding: 1.5rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 1.25rem;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1e293b;
    resize: vertical;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.tool-container textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #4285f4;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.1);
}

/* Modal Styling */
.tool-container .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.tool-container .modal {
    background: #ffffff;
    border-radius: 1.5rem;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlide {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tool-container .modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tool-container .modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-container .modal-close {
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.tool-container .modal-close:hover {
    color: #ef4444;
}

.tool-container .modal-body {
    padding: 2rem;
    overflow-y: auto;
}

.tool-container .modal-text-content {
    background: #f8fafc;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
}

.tool-container .modal-text-content pre {
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #1e293b;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Features Grid - Ultra Minimalist Style */
.tool-container .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.tool-container .feature-card {
    background: #ffffff;
    padding: 2.25rem;
    border-radius: 1rem;
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.tool-container .feature-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04);
}

.tool-container .feature-icon {
    width: auto;
    height: auto;
    background: transparent !important;
    color: #1e293b !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.25rem;
}

.tool-container .feature-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5px;
}

.tool-container .feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.85rem;
}

.tool-container .feature-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-container .animate-fade {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 640px) {
    .tool-container .premium-card {
        padding: 1.5rem;
    }

    .tool-container .result-input-group {
        min-width: 100%;
    }

    .tool-container .btn {
        width: 100%;
    }
}