/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.6); /* Slightly translucent white background */
    background-image: url('background-image.jpg'); /* Optional: Add background image */
    background-size: cover; /* Optional: Ensure the background covers the entire screen */
    background-position: center; /* Optional: Center the background */
    min-height: 100vh; /* Ensure the body takes full height */
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 100%; /* Make sure the body takes up at least the full width */
}

/* Container for all content */
.container {
    background-color: rgba(173, 216, 230, 0.2); /* Slight blue background for the entire container */
    padding: 30px;
    border-radius: 10px; /* Rounded corners for the container */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); /* Soft shadow around the whole container */
    width: 100%; /* Use full width of screen */
    margin: 0 auto;
    background-image: url('background-image.jpg'); /* Optional background image */
    background-size: cover;
    background-position: center;
}

/* Header Styling */
header {
    width: 100%;
    display: flex;
    justify-content: center; /* Center the header */
}

header h1 {
    text-align: center;
    background-color: #ADD8E6; /* Light Blue Background */
    font-size: 3em; /* Make the title larger */
    color: #333;
    padding: 20px;
    margin: 0;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Soft shadow for elegance */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Stylish font */
    letter-spacing: 1px; /* Slight letter spacing */
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: rgba(255, 255, 255, 0.9); /* Slightly translucent table */
    border-radius: 8px; /* Rounded corners for the table */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Table Header and Data Cells */
th, td {
    text-align: center;
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

/* Narrow columns (Serial Number, Customer Name, Device Name, Start Date, Action, Update, Closed Date) */
th:nth-child(1), td:nth-child(1), /* Serial Number */
th:nth-child(2), td:nth-child(2), /* Customer Name */
th:nth-child(3), td:nth-child(3), /* Device Name */
th:nth-child(5), td:nth-child(5), /* Start Date */
th:nth-child(6), td:nth-child(6), /* Closed Date */
th:nth-child(7), td:nth-child(7), /* Action */
th:nth-child(9), td:nth-child(9)  /* Update */
{
    width: 120px; /* Smaller width for customer, device name, and other narrow columns */
}

/* Wider column (Issue and Remarks) */
th:nth-child(4), td:nth-child(4), /* Issue */
th:nth-child(8), td:nth-child(8)  /* Remarks */
{
    width: 300px; /* Larger width for Remarks and Issue */
}

/* Textarea Styles */
textarea {
    width: 100%;
    min-height: 50px;
    resize: vertical;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Input and Select Fields */
input, select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Add Issue Form Styles */
#add-issue {
    width: 50%;
    margin: 20px auto;
    background-color: rgba(255, 255, 255, 0.8); /* Slightly translucent form */
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

#add-issue form {
    display: flex;
    flex-direction: column;
}

#add-issue label {
    font-size: 14px;
    margin-bottom: 5px;
}

#add-issue button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#add-issue button:hover {
    background-color: #45a049;
}

/* Export Button Styles */
#export-section {
    text-align: center;
    margin: 20px 0;
}

#export-btn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
}

#export-btn:hover {
    background-color: #45a049;
}

/* Table Row Hover Effects */
tr:hover {
    background-color: #f1f1f1;
}

/* Center Table Container */
#scrum-updates {
    max-width: 90%;
    margin: 0 auto;
    overflow-x: auto;
}

/* Center Content */
#scrum-updates, #add-issue, #export-section {
    width: 80%;
    margin: 0 auto;
}

/* Footer */
footer {
    text-align: center;
    font-size: 12px;
    color: #aaa;
    margin-top: 20px;
}

/* Responsive Design */

/* For Tablets and Smaller Devices */
@media screen and (max-width: 768px) {
    body {
        padding: 10px; /* Reduce padding for smaller devices */
    }

    .container {
        padding: 15px;
        width: 100%; /* Make the container full-width */
        box-sizing: border-box; /* Ensure it fits within the screen */
    }

    header h1 {
        font-size: 2.5em; /* Make the header font smaller */
        padding: 15px;
    }

    #add-issue {
        width: 90%; /* Form width to fit smaller screens */
    }

    table {
        font-size: 14px; /* Smaller text for smaller devices */
    }

    th, td {
        padding: 6px; /* Reduced padding for smaller screens */
    }

    textarea, input, select {
        font-size: 14px; /* Slightly smaller font size */
    }

    #export-btn {
        font-size: 14px;
        padding: 8px 15px;
    }

    .update-btn {
        font-size: 14px;
        padding: 5px 10px;
    }
}

/* For Mobile Devices */
@media screen and (max-width: 480px) {
    header h1 {
        font-size: 2em; /* Reduce header font size */
        padding: 10px;
    }

    #add-issue {
        width: 100%; /* Make form full width */
    }

    table {
        font-size: 12px; /* Smaller font size */
    }

    th, td {
        padding: 5px; /* Further reduced padding */
    }

    textarea, input, select {
        font-size: 12px; /* Adjust font size for mobile */
    }

    #export-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .update-btn {
        font-size: 12px;
        padding: 5px 8px;
    }

    .container {
        padding: 10px;
    }
}
