* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #F8FAFC;
    color: #1E293B;
    line-height: 1.5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card {
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: #2563EB;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.card-new {
    border: 2px dashed #CBD5E1;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.card-new:hover {
    border-color: #2563EB;
    background: #EFF6FF;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.card-new-icon {
    width: 48px;
    height: 48px;
    background: #2563EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin-bottom: 12px;
}

.card-new-text {
    color: #2563EB;
    font-size: 16px;
    font-weight: 600;
}

.card-header {
    margin-bottom: 12px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 4px;
    word-break: break-word;
}

.card-id {
    font-size: 12px;
    color: #94A3B8;
    font-family: 'Monaco', 'Courier New', monospace;
}

.card-content {
    flex-grow: 1;
    color: #64748B;
    font-size: 14px;
    margin-bottom: 12px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #F1F5F9;
    font-size: 13px;
    color: #94A3B8;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-badge {
    background: #EFF6FF;
    color: #2563EB;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}


.section-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 32px 0;
    border: none;
    border-top: 1px dashed #CBD5E1;
}

.top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.meta-info {
    color: #64748B;
    font-size: 14px;
    margin-bottom: 24px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #F1F5F9;
    color: #64748B;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-back:hover {
    background-color: #E2E8F0;
}

.btn-delete {
    padding: 12px 24px;
    background-color: #EF4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete:hover {
    background-color: #DC2626;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #64748B;
}

.spinner {
    border: 3px solid #E2E8F0;
    border-top: 3px solid #2563EB;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.info-section {
    border-top: 2px dashed #E2E8F0;
    padding-top: 24px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.info-label {
    font-weight: 600;
    color: #64748B;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}


.button-group {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #2563EB;
    color: white;
}

.btn-primary:hover {
    background: #1D4ED8;
}

.btn-danger {
    background: #EF4444;
    color: white;
}

.btn-danger:hover {
    background: #DC2626;
}

.btn-secondary {
    background: white;
    color: #64748B;
    border: 2px solid #E2E8F0;
}

.btn-secondary:hover {
    border-color: #CBD5E1;
    color: #1E293B;
}

.error-message {
    background: #FEE2E2;
    color: #991B1B;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #EF4444;
    transition: opacity 0.5s ease;
    opacity: 1;
}

.error-message.fade-out {
    opacity: 0;
}