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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #f5f7fa 0%, #e8ecf0 100%);
    background-attachment: fixed;
    color: #2c3e50;
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(220, 53, 69, 0.03), transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(230, 126, 34, 0.03), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

header {
    background: linear-gradient(135deg, #1c1c3c 0%, #2a2a5c 100%);
    border-bottom: 4px solid #dc3545;
    padding: 40px 0;
    margin-bottom: 0;
    text-align: center;
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.15);
    position: relative;
    overflow: hidden;
}

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 1200 400"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="400" fill="url(%23grid)" /></svg>');
    opacity: 0.3;
    pointer-events: none;
}

header h1 {
    color: white;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

nav {
    background: white;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: #2c3e50;
    text-decoration: none;
    padding: 16px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
}

nav a:hover {
    color: #dc3545;
    border-bottom-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

/* Profile Layout */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
.profile-card {
    background: white;
    border: 1px solid #f0f2f5;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.5), rgba(230, 126, 34, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.09);
    transform: translateY(-6px);
    border-color: rgba(220, 53, 69, 0.1);
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8ecf0;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc3545 0%, #e67e22 100%);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.2);
    border: 4px solid white;
}

.profile-name {
    font-size: 1.8rem;
    color: #1c1c3c;
    margin-bottom: 5px;
    font-weight: 700;
}

.profile-uuid {
    font-size: 0.85rem;
    color: #7f8c8d;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

.profile-level {
    font-size: 1.3rem;
    color: #e67e22;
    margin-top: 10px;
    font-weight: 700;
}

/* Stats Section */
.stats-section {
    margin-bottom: 25px;
}

.stats-title {
    font-size: 1rem;
    color: #1c1c3c;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
}

.stat-bar {
    margin-bottom: 12px;
}

.stat-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.stat-label-name {
    color: #2c3e50;
    font-weight: 600;
}

.stat-label-value {
    color: #dc3545;
    font-weight: 700;
}

.stat-bar-bg {
    background: #e8ecf0;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    border: none;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc3545, #e67e22);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    font-weight: 600;
}

.attributes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.attribute {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05), rgba(230, 126, 34, 0.05));
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.attribute:hover {
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
}

.attribute-value {
    font-size: 1.5rem;
    color: #dc3545;
    font-weight: 700;
}

.attribute-name {
    font-size: 0.8rem;
    color: #7f8c8d;
    text-transform: uppercase;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

/* Bio Section */
.bio-section {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
}

.bio-title {
    font-size: 1rem;
    color: #1c1c3c;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
}

.bio-text {
    color: #2c3e50;
    line-height: 1.8;
    font-style: italic;
}

.bio-empty {
    color: #95a5a6;
    font-style: italic;
}

/* Loading & Error States */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #dc3545;
}

.error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border: 2px solid #dc3545;
    border-radius: 12px;
    padding: 20px;
    color: #c0392b;
    text-align: center;
    margin: 20px 0;
    font-weight: 500;
}

.success {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.05));
    border: 2px solid #27ae60;
    border-radius: 12px;
    padding: 20px;
    color: #229954;
    text-align: center;
    margin: 20px 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 2rem;
    }

    nav a {
        display: inline-block;
        margin: 5px 10px;
        padding: 12px 16px;
    }

    .attributes-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Styling */
footer {
    text-align: center;
    margin-top: 80px;
    padding: 40px 30px;
    color: #7f8c8d;
    border-top: 3px solid #ecf0f1;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    font-size: 0.9rem;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.04);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Organization & Card Styles */
.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.org-card {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    border: 1px solid rgba(220, 53, 69, 0.08);
}

.org-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #dc3545 0%, #e67e22 50%, #3498db 100%);
}

.org-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(220, 53, 69, 0.05), transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.org-card:hover {
    background: linear-gradient(135deg, #fafbfc 0%, white 100%);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
    transform: translateY(-12px);
    border-color: rgba(220, 53, 69, 0.2);
}

.org-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: inline-block;
    padding: 15px;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08), rgba(230, 126, 34, 0.08));
    border-radius: 12px;
    width: fit-content;
}

.org-name {
    font-size: 1.5rem;
    color: #1c1c3c;
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.3px;
    flex-grow: 1;
}

.org-type {
    color: #dc3545;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1.2px;
    font-weight: 700;
    display: inline-block;
    padding: 6px 12px;
    background: rgba(220, 53, 69, 0.08);
    border-radius: 6px;
}

.org-stats {
    display: flex;
    justify-content: space-around;
    margin-top: auto;
    padding-top: 15px;
    border-top: 2px solid #f0f2f5;
    gap: 10px;
}

.org-stat {
    text-align: center;
    flex: 1;
}

.org-stat-number {
    font-size: 1.8rem;
    color: #dc3545;
    font-weight: 900;
    display: block;
}

.org-stat-label {
    font-size: 0.7rem;
    color: #95a5a6;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.org-description {
    color: #34495e;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 10px 0;
}

/* Buttons */
button {
    background: linear-gradient(135deg, #dc3545 0%, #c0392b 100%);
    border: none;
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.25);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(220, 53, 69, 0.4);
    background: linear-gradient(135deg, #e63651 0%, #d63847 100%);
}

button:hover::before {
    width: 300px;
    height: 300px;
}

button:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #1c1c3c;
    font-size: 0.9rem;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    background: white;
    border: 2px solid #ecf0f1;
    color: #2c3e50;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #ecf0f1;
    color: #2c3e50;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-btn.active {
    background: linear-gradient(135deg, #dc3545, #e67e22);
    color: white;
    border-color: transparent;
}

.filter-btn:hover {
    border-color: #dc3545;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(46, 204, 113, 0.05));
    border-left: 4px solid #3498db;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    color: #2c3e50;
}

.info-box strong {
    color: #1c1c3c;
}

/* Response Messages */
.response {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.85rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1c1c3c 0%, #2a2a5c 50%, #1c2a48 100%);
    color: white;
    padding: 100px 30px;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(28, 28, 60, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero::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 1200 600"><defs><pattern id="dots" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="1200" height="600" fill="url(%23dots)" /></svg>');
    opacity: 0.6;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(220, 53, 69, 0.1), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 0.5px;
}
