/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.5;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Typography */
h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
}

h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #1d1d1f;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    background-color: #0071e3;
    color: white;
}

.button:hover {
    background-color: #0077ED;
    transform: scale(1.02);
}

.button.secondary {
    background-color: #e8e8ed;
    color: #1d1d1f;
}

.button.secondary:hover {
    background-color: #d8d8d8;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1d1d1f;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

textarea {
    min-height: 120px;
    resize: vertical;
    font-family: ui-monospace, "SF Mono", Monaco, monospace;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

/* User info */
.user-info {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-details {
    text-align: right;
}

.user-name {
    font-size: 14px;
    color: #1d1d1f;
    display: block;
}

.user-role {
    font-size: 12px;
    color: #86868b;
    display: block;
    margin-top: 2px;
    text-transform: capitalize;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
    z-index: 1001;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    overflow-x: auto;
    max-width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th {
    text-align: left;
    padding: 16px;
    background-color: #f5f5f7;
    font-weight: 500;
    color: #1d1d1f;
    border-bottom: 1px solid #e8e8ed;
}

td {
    padding: 16px;
    vertical-align: top;
    border-bottom: 1px solid #e8e8ed;
}

/* Utilities */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
} 