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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 30px 0;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.3em;
    opacity: 0.9;
}

main {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.info-box {
    text-align: center;
    margin-bottom: 40px;
}

.info-box h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 2em;
}

.info-box p {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.6;
}

.code-example {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    color: #667eea;
    font-weight: bold;
    margin-top: 20px !important;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.diploma-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.status-badge {
    padding: 20px;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-badge.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.status-badge.error {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.status-badge .icon {
    font-size: 1.5em;
}

.diploma-info {
    padding: 30px;
}

.diploma-info h2 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

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

.info-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.info-item label {
    display: block;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 8px;
    font-size: 0.9em;
    text-transform: uppercase;
}

.info-item p {
    color: #333;
    font-size: 1.1em;
}

.codigo {
    font-family: 'Courier New', monospace;
    font-weight: bold !important;
    color: #764ba2 !important;
    background: #f0e6ff;
    padding: 8px;
    border-radius: 5px;
    display: inline-block;
}

.verification-note {
    margin-top: 30px;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 8px;
    border-left: 5px solid #4caf50;
}

.verification-note p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.blockchain-info {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    border-radius: 10px;
    border: 2px solid #667eea;
}

.blockchain-info h3 {
    color: #667eea;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.hash-code {
    font-family: 'Courier New', monospace;
    font-size: 0.85em !important;
    word-break: break-all;
    background: white;
    padding: 10px;
    border-radius: 5px;
    color: #333 !important;
    border: 1px solid #ddd;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.badge-success {
    background: #4caf50;
    color: white;
}

.badge-warning {
    background: #ff9800;
    color: white;
}

.badge-error {
    background: #f44336;
    color: white;
}

.blockchain-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.blockchain-note p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95em;
}

.error-info {
    padding: 30px;
    text-align: center;
}

.error-info h2 {
    color: #e53935;
    margin-bottom: 20px;
    font-size: 2em;
}

.error-info > p {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.suggestions {
    background: #fff3e0;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
    border-left: 5px solid #ff9800;
}

.suggestions h3 {
    color: #f57c00;
    margin-bottom: 15px;
}

.suggestions ul {
    list-style-position: inside;
    line-height: 2;
}

.contact {
    margin-top: 20px;
    font-weight: bold;
    color: #666;
}

.actions {
    text-align: center;
    margin-top: 30px;
}

.share-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0 0 0;
}

.copy-status {
    text-align: center;
    margin-top: 12px;
    color: #4caf50;
    font-weight: bold;
}

.linkedin-box{
    margin-top: 24px;
    padding: 20px;
    border: 2px dashed #667eea;
    border-radius: 10px;
    background: #f8fafc;
}
.linkedin-box h3{
    color: #334155;
    margin-bottom: 10px;
}
.mini-btn{
    margin-top: 8px;
    background: #e2e8f0;
    border: 0;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
.mini-btn:hover{ background:#cbd5e1; }
.hint{ color:#64748b; display:block; margin-top:10px; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    padding: 20px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    main {
        padding: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}
