/* Base styles and variables */
:root {
    --primary-color: #d42426;
    --primary-hover: #b91e20;
    --secondary-color: #1f8a43;
    --secondary-hover: #166b33;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 4px;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8f9fa;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><g fill="%23d42426" fill-opacity="0.05"><circle cx="25" cy="25" r="3" /><circle cx="75" cy="25" r="3" /><circle cx="25" cy="75" r="3" /><circle cx="75" cy="75" r="3" /><circle cx="50" cy="50" r="3" /></g></svg>');
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

header p {
    color: var(--gray-color);
    font-size: 1.1rem;
}

/* Main content styles */
main {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* Input section */
.input-section {
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover, .primary-btn:focus {
    background-color: var(--primary-hover);
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: white;
}

.secondary-btn:hover, .secondary-btn:focus {
    background-color: var(--secondary-hover);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    color: var(--primary-color);
    margin-top: 0.5rem;
    min-height: 1.5rem;
    font-size: 0.9rem;
}

/* Participants section */
.participants-section {
    margin-bottom: 2rem;
}

.participants-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.participants-section h2 span {
    font-size: 1rem;
    color: var(--gray-color);
    margin-left: 0.5rem;
}

.participants-list {
    list-style-type: none;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
}

.participants-list:empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--gray-color);
}

.participants-list:empty::after {
    content: "No participants added yet";
}

.participants-list li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.participants-list li:last-child {
    border-bottom: none;
}

.participants-list li:hover {
    background-color: var(--light-color);
}

.remove-btn {
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.remove-btn:hover {
    color: var(--primary-color);
}

/* Action section */
.action-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-section .btn {
    flex: 1;
    justify-content: center;
}

/* Results section */
.results-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

.results-section h2 {
    margin-bottom: 1rem;
}

.api-call-info {
    margin-bottom: 1.5rem;
}

.api-call-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--gray-color);
}

pre {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: var(--border-radius);
    white-space: pre-wrap;
    word-break: break-all;
    font-family: monospace;
    font-size: 0.9rem;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.copy-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.copy-confirmation {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Footer styles */
footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Utility classes */
.hidden {
    display: none;
}

/* Responsive styles */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    .action-section {
        flex-direction: column;
    }
    
    .container {
        padding: 1rem;
    }
    
    main {
        padding: 1.5rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
}

/* Assignments list styles */
.assignments-container {
    margin-bottom: 1.5rem;
}

.assignments-list {
    list-style-type: none;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.assignments-list li {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
}

.assignments-list li:last-child {
    border-bottom: none;
}

.assignments-list li:nth-child(even) {
    background-color: var(--light-color);
}

.assignment-arrow {
    margin: 0 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.gifter, .receiver {
    flex: 1;
}

.gifter {
    text-align: right;
    font-weight: 500;
}

.receiver {
    font-weight: 500;
} 