/* === PREMIUM MINIMALIST STYLES - SECRET NOTES === */
.tool-container {
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1e293b;
}

/* Stats Cards */
.tool-container .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.tool-container .stat-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.tool-container .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.tool-container .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color, #3b82f6);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.tool-container .stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Premium Main Cards */
.tool-container .premium-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid #eef2f6;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02);
    margin-bottom: 2.5rem;
    position: relative;
}

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

.tool-container .card-title svg {
    color: var(--primary-color);
}

/* Form Styles */
.tool-container input[type="text"],
.tool-container textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    font-size: 1rem;
    color: #1e293b;
    transition: all 0.2s ease;
    margin-bottom: 1.25rem;
}

.tool-container input[type="text"]:focus,
.tool-container textarea:focus {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

.tool-container textarea {
    min-height: 150px;
    resize: vertical;
}

/* Expiry Options */
.tool-container .expiry-options {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: #f1f5f9;
    border-radius: 1rem;
}

.tool-container .expiry-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #475569;
}

.tool-container .expiry-btn {
    padding: 0.65rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-container .expiry-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tool-container .expiry-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Button Group */
.tool-container .button-group {
    display: flex;
    gap: 1rem;
}

.tool-container .premium-card .btn,
.tool-container .modal-footer .btn {
    flex: 1;
    height: 52px;
    border-radius: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.tool-container .btn-primary {
    background: var(--primary-color);
    color: #ffffff;
}

.tool-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px rgba(59, 130, 246, 0.4);
}

.tool-container .btn-outline {
    background: #f1f5f9;
    color: #475569;
}

.tool-container .btn-outline:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Note List */
.tool-container .notes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.tool-container .note-item {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.tool-container .note-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.tool-container .note-header {
    margin-bottom: 1rem;
}

.tool-container .note-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-container .note-date {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.tool-container .note-content {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.tool-container .note-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-container .note-expiry {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tool-container .note-expiry.good {
    background: #ecfdf5;
    color: #059669;
}

.tool-container .note-expiry.warning {
    background: #fffbeb;
    color: #d97706;
}

.tool-container .note-expiry.bad {
    background: #fef2f2;
    color: #dc2626;
}

.tool-container .note-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.tool-container .note-actions .btn-action {
    height: 40px;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-container .note-actions .btn-action:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

.tool-container .note-actions .btn-delete:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

/* Modal Modernization */
.tool-container .modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.tool-container .modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    border-radius: 1.5rem;
    position: relative;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    animation: modalSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlide {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tool-container .modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.tool-container .modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: scale(1.1);
}

.tool-container .modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.tool-container .modal-body {
    font-size: 1rem;
    color: #475569;
    line-height: 1.8;
    white-space: pre-wrap;
    padding: 1.5rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin: 1.5rem 0;
}

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

.tool-container .feature-card {
    background: #ffffff;
    padding: 2.25rem;
    border-radius: 1rem;
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
}

.tool-container .feature-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-4px);
}

.tool-container .feature-icon {
    color: #1e293b;
    margin-bottom: 1.25rem;
}

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

.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;
}

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

    .tool-container .button-group {
        flex-direction: column;
    }

    .tool-container .stat-card {
        padding: 1rem;
    }
}