/* Database Model Viewer Styles */

.database-model-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.model-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.model-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.model-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.model-header::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" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.model-header h2, .model-header h3 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: #ffffff !important;
}

.model-header p {
    margin-top: 10px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    color: #ffffff !important;
}

.model-body {
    padding: 30px;
}

.table-schema {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e6ed;
}

.table-schema th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 15px;
    text-align: right;
    border-bottom: 2px solid #e0e6ed;
}

.table-schema td {
    padding: 12px 15px;
    border-bottom: 1px solid #edf2f7;
    color: #2d3748;
}

.table-schema tr:last-child td {
    border-bottom: none;
}

.column-name {
    font-family: 'Consolas', 'Monaco', monospace;
    color: #5e35b1;
    font-weight: 600;
}

.data-type {
    font-size: 0.8rem;
    color: #718096;
    background: #edf2f7;
    padding: 2px 8px;
    border-radius: 4px;
}

.key-icon {
    color: #ecc94b;
    margin-left: 5px;
}

@media (max-width: 768px) {
    .model-header h2 {
        font-size: 1.4rem;
    }
    
    .model-body {
        padding: 15px;
    }
    
    .table-schema {
        display: block;
        overflow-x: auto;
    }
}
 